Changeset 1825546
- Timestamp:
- 02/20/2018 06:50:01 PM (8 years ago)
- Location:
- fv-community-news
- Files:
-
- 3 deleted
- 29 edited
- 33 copied
-
tags/3.2.1 (copied) (copied from fv-community-news/trunk)
-
tags/3.2.1/config/default.config.php (copied) (copied from fv-community-news/trunk/config/default.config.php)
-
tags/3.2.1/config/services.config.php (copied) (copied from fv-community-news/trunk/config/services.config.php)
-
tags/3.2.1/fv-community-news.php (copied) (copied from fv-community-news/trunk/fv-community-news.php) (7 diffs)
-
tags/3.2.1/fvcn-includes (deleted)
-
tags/3.2.1/fvcn-theme/fvcn/form-post.php (copied) (copied from fv-community-news/trunk/fvcn-theme/fvcn/form-post.php)
-
tags/3.2.1/fvcn-theme/single-fvcn.php (copied) (copied from fv-community-news/trunk/fvcn-theme/single-fvcn.php)
-
tags/3.2.1/fvcn-theme/taxonomy-fvcn.php (copied) (copied from fv-community-news/trunk/fvcn-theme/taxonomy-fvcn.php)
-
tags/3.2.1/public/images/menu-old.png (deleted)
-
tags/3.2.1/public/images/[email protected] (deleted)
-
tags/3.2.1/public/js/dashboard.js (copied) (copied from fv-community-news/trunk/public/js/dashboard.js)
-
tags/3.2.1/readme.txt (copied) (copied from fv-community-news/trunk/readme.txt) (2 diffs)
-
tags/3.2.1/src/Admin/Admin.php (copied) (copied from fv-community-news/trunk/src/Admin/Admin.php)
-
tags/3.2.1/src/Admin/Dashboard/Widget/RecentPosts.php (copied) (copied from fv-community-news/trunk/src/Admin/Dashboard/Widget/RecentPosts.php)
-
tags/3.2.1/src/Admin/Post/Moderation.php (copied) (copied from fv-community-news/trunk/src/Admin/Post/Moderation.php)
-
tags/3.2.1/src/Admin/Settings/AbstractSettings.php (copied) (copied from fv-community-news/trunk/src/Admin/Settings/AbstractSettings.php)
-
tags/3.2.1/src/Admin/Settings/Form.php (copied) (copied from fv-community-news/trunk/src/Admin/Settings/Form.php) (1 diff)
-
tags/3.2.1/src/Admin/Settings/Settings.php (copied) (copied from fv-community-news/trunk/src/Admin/Settings/Settings.php)
-
tags/3.2.1/src/Config/AbstractConfig.php (modified) (1 diff)
-
tags/3.2.1/src/Config/Memory.php (modified) (1 diff)
-
tags/3.2.1/src/Config/WordPress.php (modified) (1 diff)
-
tags/3.2.1/src/Container/Container.php (modified) (1 diff)
-
tags/3.2.1/src/Factory/Hook/Controller.php (copied) (copied from fv-community-news/trunk/src/Factory/Hook/Controller.php)
-
tags/3.2.1/src/Factory/Post (copied) (copied from fv-community-news/trunk/src/Factory/Post)
-
tags/3.2.1/src/Factory/View/AjaxForm.php (copied) (copied from fv-community-news/trunk/src/Factory/View/AjaxForm.php)
-
tags/3.2.1/src/Hook/Akismet.php (modified) (1 diff)
-
tags/3.2.1/src/Hook/Collection.php (copied) (copied from fv-community-news/trunk/src/Hook/Collection.php) (2 diffs)
-
tags/3.2.1/src/Hook/Controller.php (copied) (copied from fv-community-news/trunk/src/Hook/Controller.php) (1 diff)
-
tags/3.2.1/src/Hook/EnqueueScripts.php (modified) (3 diffs)
-
tags/3.2.1/src/Hook/Head.php (modified) (1 diff)
-
tags/3.2.1/src/Hook/HookInterface.php (modified) (1 diff)
-
tags/3.2.1/src/Hook/Init.php (modified) (8 diffs)
-
tags/3.2.1/src/Hook/WidgetsInit.php (modified) (1 diff)
-
tags/3.2.1/src/Post/Controller.php (copied) (copied from fv-community-news/trunk/src/Post/Controller.php) (1 diff)
-
tags/3.2.1/src/Post/Form.php (copied) (copied from fv-community-news/trunk/src/Post/Form.php)
-
tags/3.2.1/src/Post/Mapper.php (copied) (copied from fv-community-news/trunk/src/Post/Mapper.php)
-
tags/3.2.1/src/Template/common-functions.php (copied) (copied from fv-community-news/trunk/src/Template/common-functions.php)
-
tags/3.2.1/src/Template/fvcn-core-theme.php (copied) (copied from fv-community-news/trunk/src/Template/fvcn-core-theme.php)
-
tags/3.2.1/src/Template/options-functions.php (copied) (copied from fv-community-news/trunk/src/Template/options-functions.php)
-
tags/3.2.1/src/Template/post-functions.php (copied) (copied from fv-community-news/trunk/src/Template/post-functions.php) (7 diffs)
-
tags/3.2.1/src/Template/tag-functions.php (copied) (copied from fv-community-news/trunk/src/Template/tag-functions.php) (1 diff)
-
tags/3.2.1/src/Template/user-functions.php (copied) (copied from fv-community-news/trunk/src/Template/user-functions.php) (3 diffs)
-
tags/3.2.1/src/Validator/NotEmpty.php (copied) (copied from fv-community-news/trunk/src/Validator/NotEmpty.php)
-
tags/3.2.1/src/Validator/ValidatorChain.php (copied) (copied from fv-community-news/trunk/src/Validator/ValidatorChain.php)
-
tags/3.2.1/src/View/AjaxForm.php (copied) (copied from fv-community-news/trunk/src/View/AjaxForm.php)
-
tags/3.2.1/src/Widget/ListPosts.php (copied) (copied from fv-community-news/trunk/src/Widget/ListPosts.php)
-
trunk/fv-community-news.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Admin/Settings/Form.php (modified) (1 diff)
-
trunk/src/Config/AbstractConfig.php (modified) (1 diff)
-
trunk/src/Config/Memory.php (modified) (1 diff)
-
trunk/src/Config/WordPress.php (modified) (1 diff)
-
trunk/src/Container/Container.php (modified) (1 diff)
-
trunk/src/Hook/Akismet.php (modified) (1 diff)
-
trunk/src/Hook/Collection.php (modified) (2 diffs)
-
trunk/src/Hook/Controller.php (modified) (1 diff)
-
trunk/src/Hook/EnqueueScripts.php (modified) (3 diffs)
-
trunk/src/Hook/Head.php (modified) (1 diff)
-
trunk/src/Hook/HookInterface.php (modified) (1 diff)
-
trunk/src/Hook/Init.php (modified) (8 diffs)
-
trunk/src/Hook/WidgetsInit.php (modified) (1 diff)
-
trunk/src/Post/Controller.php (modified) (1 diff)
-
trunk/src/Template/post-functions.php (modified) (7 diffs)
-
trunk/src/Template/tag-functions.php (modified) (1 diff)
-
trunk/src/Template/user-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fv-community-news/tags/3.2.1/fv-community-news.php
r1810381 r1825546 5 5 * Plugin URI: https://frankverhoeven.me/wordpress-plugin-fv-community-news/ 6 6 * Description: Allow visitors of your site to submit articles. 7 * Version: 3.2 7 * Version: 3.2.1 8 8 * Author: Frank Verhoeven 9 9 * Author URI: https://frankverhoeven.me/ … … 27 27 * @var string 28 28 */ 29 const VERSION = '3.2 ';29 const VERSION = '3.2.1'; 30 30 /** 31 31 * @var string … … 56 56 * @return void 57 57 */ 58 public function start() : void58 public function start() 59 59 { 60 60 $this->loadFiles(); … … 73 73 * @return void 74 74 */ 75 private function loadFiles() : void75 private function loadFiles() 76 76 { 77 77 include_once __DIR__ . '/src/Autoloader.php'; … … 99 99 * @return void 100 100 */ 101 public static function activation() : void101 public static function activation() 102 102 { 103 103 do_action('fvcn_activation'); … … 110 110 * @return void 111 111 */ 112 public static function deactivation() : void112 public static function deactivation() 113 113 { 114 114 do_action('fvcn_deactivation'); … … 120 120 * @return void 121 121 */ 122 public static function uninstall() : void122 public static function uninstall() 123 123 { 124 124 do_action('fvcn_uninstall'); -
fv-community-news/tags/3.2.1/readme.txt
r1810381 r1825546 6 6 Requires at least: 4.8 7 7 Tested up to: 4.9 8 Stable tag: 3.2 8 Stable tag: 3.2.1 9 9 10 10 Give the visitors of your site the ability to submit their news to you, and list it in a nice news feed. … … 134 134 135 135 136 = 3.2.1 = 137 138 * Fix: PHP 7.0 Compatiblity 139 140 136 141 = 3.2 = 137 142 -
fv-community-news/tags/3.2.1/src/Admin/Settings/Form.php
r1810381 r1825546 140 140 141 141 <?php if ($this->advanced) echo '<input type="hidden" name="mode" value="advanced">'; ?> 142 <p class="submit"> 143 <input type="submit" name="submit" class="button-primary" value="<?php _e('Save Changes', 'fvcn'); ?>"> 144 </p> 142 <?php \submit_button(); ?> 145 143 </form> 146 144 </div> -
fv-community-news/tags/3.2.1/src/Config/AbstractConfig.php
r1806332 r1825546 73 73 * @param string $key 74 74 */ 75 abstract public function delete(string $key) : void;75 abstract public function delete(string $key); 76 76 77 77 /** -
fv-community-news/tags/3.2.1/src/Config/Memory.php
r1806332 r1825546 73 73 * @param string $key 74 74 */ 75 public function delete(string $key) : void75 public function delete(string $key) 76 76 { 77 77 if (isset($this->config[$key])) { -
fv-community-news/tags/3.2.1/src/Config/WordPress.php
r1806332 r1825546 76 76 * @param string $key 77 77 */ 78 public function delete(string $key) : void78 public function delete(string $key) 79 79 { 80 80 if (isset($this->config[$key])) { -
fv-community-news/tags/3.2.1/src/Container/Container.php
r1806332 r1825546 80 80 * @return void 81 81 */ 82 public function add(string $id, $entry) : void82 public function add(string $id, $entry) 83 83 { 84 84 if ($this->has($id)) { -
fv-community-news/tags/3.2.1/src/Hook/Akismet.php
r1806332 r1825546 31 31 * @return void 32 32 */ 33 public function doHook() : void33 public function doHook() 34 34 { 35 35 if (!defined('AKISMET_VERSION')) { -
fv-community-news/tags/3.2.1/src/Hook/Collection.php
r1810381 r1825546 159 159 * @return void 160 160 */ 161 public function register() : void161 public function register() 162 162 { 163 163 $this->registerHooks($this->actions); … … 172 172 * @return void 173 173 */ 174 protected function registerHooks(array $hooks) : void174 protected function registerHooks(array $hooks) 175 175 { 176 176 foreach ($hooks as $tag => $filters) { -
fv-community-news/tags/3.2.1/src/Hook/Controller.php
r1810381 r1825546 30 30 * @return void 31 31 */ 32 public function doHook() : void32 public function doHook() 33 33 { 34 34 if ('post' == strtolower($_SERVER['REQUEST_METHOD'])) { -
fv-community-news/tags/3.2.1/src/Hook/EnqueueScripts.php
r1806332 r1825546 32 32 * @return void 33 33 */ 34 public function doHook() : void34 public function doHook() 35 35 { 36 36 $this->enqueueScripts(); … … 43 43 * @return void 44 44 */ 45 protected function enqueueScripts() : void45 protected function enqueueScripts() 46 46 { 47 47 $ajaxForm = $this->container->get(AjaxForm::class); … … 56 56 * @return void 57 57 */ 58 protected function enqueueStyles() : void58 protected function enqueueStyles() 59 59 { 60 60 if (!fvcn_theme_is_compat_active() && file_exists(get_stylesheet_directory() . '/fvcn/css/fvcn-theme.css')) { -
fv-community-news/tags/3.2.1/src/Hook/Head.php
r1806332 r1825546 15 15 * @return void 16 16 */ 17 public function doHook() : void17 public function doHook() 18 18 { 19 19 echo '<meta name="generator" content="FV Community News">' . "\n"; -
fv-community-news/tags/3.2.1/src/Hook/HookInterface.php
r1806332 r1825546 15 15 * @return void 16 16 */ 17 public function doHook() : void;17 public function doHook(); 18 18 } -
fv-community-news/tags/3.2.1/src/Hook/Init.php
r1806332 r1825546 43 43 * @return void 44 44 */ 45 public function doHook() : void45 public function doHook() 46 46 { 47 47 $this->setupVariables(); … … 67 67 * @return void 68 68 */ 69 protected function setupVariables() : void69 protected function setupVariables() 70 70 { 71 71 $pluginDir = plugin_dir_path(FvCommunityNews::FILE); … … 91 91 * @return void 92 92 */ 93 protected function install() : void93 protected function install() 94 94 { 95 95 $installer = new Installer($this->config); … … 113 113 * @return void 114 114 */ 115 protected function loadTextDomain() : void115 protected function loadTextDomain() 116 116 { 117 117 $locale = apply_filters('fvcn_locale', get_locale()); … … 138 138 * @return void 139 139 */ 140 protected function registerPostType() : void140 protected function registerPostType() 141 141 { 142 142 $postType = new PostType(); … … 156 156 * @return void 157 157 */ 158 protected function registerShortCodes() : void158 protected function registerShortCodes() 159 159 { 160 160 add_shortcode(PostFormShortcode::SHORTCODE_TAG, function() { … … 176 176 * @return void 177 177 */ 178 protected function setupAjaxForm() : void178 protected function setupAjaxForm() 179 179 { 180 180 $this->container->get(FvCommunityNews\View\AjaxForm::class); … … 186 186 * @return void 187 187 */ 188 protected function setupAdmin() : void188 protected function setupAdmin() 189 189 { 190 190 $this->container->get(FvCommunityNews\Admin\Admin::class); -
fv-community-news/tags/3.2.1/src/Hook/WidgetsInit.php
r1806332 r1825546 19 19 * @return void 20 20 */ 21 public function doHook() : void21 public function doHook() 22 22 { 23 23 FormWidget::register(); -
fv-community-news/tags/3.2.1/src/Post/Controller.php
r1810381 r1825546 114 114 * @return void 115 115 */ 116 public function adjustPostRating() : void116 public function adjustPostRating() 117 117 { 118 118 $actions = [ -
fv-community-news/tags/3.2.1/src/Template/post-functions.php
r1810381 r1825546 7 7 * 8 8 */ 9 function fvcn_post_slug() : void9 function fvcn_post_slug() 10 10 { 11 11 echo fvcn_get_post_slug(); … … 72 72 * @return void 73 73 */ 74 function fvcn_the_post() : void74 function fvcn_the_post() 75 75 { 76 76 /* @var WP_Query $wpQuery */ … … 85 85 * @param int $postId 86 86 */ 87 function fvcn_post_id(int $postId = 0) : void87 function fvcn_post_id(int $postId = 0) 88 88 { 89 89 echo fvcn_get_post_id($postId); … … 147 147 * @param int $postId 148 148 */ 149 function fvcn_post_permalink(int $postId = 0) : void149 function fvcn_post_permalink(int $postId = 0) 150 150 { 151 151 echo fvcn_get_post_permalink($postId); … … 191 191 * @param int $postId 192 192 */ 193 function fvcn_post_link(int $postId = 0) : void193 function fvcn_post_link(int $postId = 0) 194 194 { 195 195 echo fvcn_get_post_link($postId); … … 216 216 * @param int $postId 217 217 */ 218 function fvcn_post_title(int $postId = 0) : void218 function fvcn_post_title(int $postId = 0) 219 219 { 220 220 echo fvcn_get_post_title($postId); … … 239 239 * @param int $postId 240 240 */ 241 function fvcn_post_content(int $postId = 0) : void241 function fvcn_post_content(int $postId = 0) 242 242 { 243 243 echo fvcn_get_post_content($postId); -
fv-community-news/tags/3.2.1/src/Template/tag-functions.php
r1810381 r1825546 9 9 * @return void 10 10 */ 11 function fvcn_tag_cloud($args = '') : void11 function fvcn_tag_cloud($args = '') 12 12 { 13 13 $default = ['taxonomy' => PostType::TAG_TYPE_KEY]; -
fv-community-news/tags/3.2.1/src/Template/user-functions.php
r1810381 r1825546 51 51 * @param int $userId 52 52 */ 53 function fvcn_user_id(int $userId = 0) : void53 function fvcn_user_id(int $userId = 0) 54 54 { 55 55 echo fvcn_get_user_id($userId); … … 80 80 * 81 81 */ 82 function fvcn_current_user_id() : void82 function fvcn_current_user_id() 83 83 { 84 84 echo fvcn_get_current_user_id(); … … 101 101 * 102 102 */ 103 function fvcn_current_user_name() : void103 function fvcn_current_user_name() 104 104 { 105 105 echo fvcn_get_current_user_name(); -
fv-community-news/trunk/fv-community-news.php
r1810381 r1825546 5 5 * Plugin URI: https://frankverhoeven.me/wordpress-plugin-fv-community-news/ 6 6 * Description: Allow visitors of your site to submit articles. 7 * Version: 3.2 7 * Version: 3.2.1 8 8 * Author: Frank Verhoeven 9 9 * Author URI: https://frankverhoeven.me/ … … 27 27 * @var string 28 28 */ 29 const VERSION = '3.2 ';29 const VERSION = '3.2.1'; 30 30 /** 31 31 * @var string … … 56 56 * @return void 57 57 */ 58 public function start() : void58 public function start() 59 59 { 60 60 $this->loadFiles(); … … 73 73 * @return void 74 74 */ 75 private function loadFiles() : void75 private function loadFiles() 76 76 { 77 77 include_once __DIR__ . '/src/Autoloader.php'; … … 99 99 * @return void 100 100 */ 101 public static function activation() : void101 public static function activation() 102 102 { 103 103 do_action('fvcn_activation'); … … 110 110 * @return void 111 111 */ 112 public static function deactivation() : void112 public static function deactivation() 113 113 { 114 114 do_action('fvcn_deactivation'); … … 120 120 * @return void 121 121 */ 122 public static function uninstall() : void122 public static function uninstall() 123 123 { 124 124 do_action('fvcn_uninstall'); -
fv-community-news/trunk/readme.txt
r1810381 r1825546 6 6 Requires at least: 4.8 7 7 Tested up to: 4.9 8 Stable tag: 3.2 8 Stable tag: 3.2.1 9 9 10 10 Give the visitors of your site the ability to submit their news to you, and list it in a nice news feed. … … 134 134 135 135 136 = 3.2.1 = 137 138 * Fix: PHP 7.0 Compatiblity 139 140 136 141 = 3.2 = 137 142 -
fv-community-news/trunk/src/Admin/Settings/Form.php
r1810381 r1825546 140 140 141 141 <?php if ($this->advanced) echo '<input type="hidden" name="mode" value="advanced">'; ?> 142 <p class="submit"> 143 <input type="submit" name="submit" class="button-primary" value="<?php _e('Save Changes', 'fvcn'); ?>"> 144 </p> 142 <?php \submit_button(); ?> 145 143 </form> 146 144 </div> -
fv-community-news/trunk/src/Config/AbstractConfig.php
r1806332 r1825546 73 73 * @param string $key 74 74 */ 75 abstract public function delete(string $key) : void;75 abstract public function delete(string $key); 76 76 77 77 /** -
fv-community-news/trunk/src/Config/Memory.php
r1806332 r1825546 73 73 * @param string $key 74 74 */ 75 public function delete(string $key) : void75 public function delete(string $key) 76 76 { 77 77 if (isset($this->config[$key])) { -
fv-community-news/trunk/src/Config/WordPress.php
r1806332 r1825546 76 76 * @param string $key 77 77 */ 78 public function delete(string $key) : void78 public function delete(string $key) 79 79 { 80 80 if (isset($this->config[$key])) { -
fv-community-news/trunk/src/Container/Container.php
r1806332 r1825546 80 80 * @return void 81 81 */ 82 public function add(string $id, $entry) : void82 public function add(string $id, $entry) 83 83 { 84 84 if ($this->has($id)) { -
fv-community-news/trunk/src/Hook/Akismet.php
r1806332 r1825546 31 31 * @return void 32 32 */ 33 public function doHook() : void33 public function doHook() 34 34 { 35 35 if (!defined('AKISMET_VERSION')) { -
fv-community-news/trunk/src/Hook/Collection.php
r1810381 r1825546 159 159 * @return void 160 160 */ 161 public function register() : void161 public function register() 162 162 { 163 163 $this->registerHooks($this->actions); … … 172 172 * @return void 173 173 */ 174 protected function registerHooks(array $hooks) : void174 protected function registerHooks(array $hooks) 175 175 { 176 176 foreach ($hooks as $tag => $filters) { -
fv-community-news/trunk/src/Hook/Controller.php
r1810381 r1825546 30 30 * @return void 31 31 */ 32 public function doHook() : void32 public function doHook() 33 33 { 34 34 if ('post' == strtolower($_SERVER['REQUEST_METHOD'])) { -
fv-community-news/trunk/src/Hook/EnqueueScripts.php
r1806332 r1825546 32 32 * @return void 33 33 */ 34 public function doHook() : void34 public function doHook() 35 35 { 36 36 $this->enqueueScripts(); … … 43 43 * @return void 44 44 */ 45 protected function enqueueScripts() : void45 protected function enqueueScripts() 46 46 { 47 47 $ajaxForm = $this->container->get(AjaxForm::class); … … 56 56 * @return void 57 57 */ 58 protected function enqueueStyles() : void58 protected function enqueueStyles() 59 59 { 60 60 if (!fvcn_theme_is_compat_active() && file_exists(get_stylesheet_directory() . '/fvcn/css/fvcn-theme.css')) { -
fv-community-news/trunk/src/Hook/Head.php
r1806332 r1825546 15 15 * @return void 16 16 */ 17 public function doHook() : void17 public function doHook() 18 18 { 19 19 echo '<meta name="generator" content="FV Community News">' . "\n"; -
fv-community-news/trunk/src/Hook/HookInterface.php
r1806332 r1825546 15 15 * @return void 16 16 */ 17 public function doHook() : void;17 public function doHook(); 18 18 } -
fv-community-news/trunk/src/Hook/Init.php
r1806332 r1825546 43 43 * @return void 44 44 */ 45 public function doHook() : void45 public function doHook() 46 46 { 47 47 $this->setupVariables(); … … 67 67 * @return void 68 68 */ 69 protected function setupVariables() : void69 protected function setupVariables() 70 70 { 71 71 $pluginDir = plugin_dir_path(FvCommunityNews::FILE); … … 91 91 * @return void 92 92 */ 93 protected function install() : void93 protected function install() 94 94 { 95 95 $installer = new Installer($this->config); … … 113 113 * @return void 114 114 */ 115 protected function loadTextDomain() : void115 protected function loadTextDomain() 116 116 { 117 117 $locale = apply_filters('fvcn_locale', get_locale()); … … 138 138 * @return void 139 139 */ 140 protected function registerPostType() : void140 protected function registerPostType() 141 141 { 142 142 $postType = new PostType(); … … 156 156 * @return void 157 157 */ 158 protected function registerShortCodes() : void158 protected function registerShortCodes() 159 159 { 160 160 add_shortcode(PostFormShortcode::SHORTCODE_TAG, function() { … … 176 176 * @return void 177 177 */ 178 protected function setupAjaxForm() : void178 protected function setupAjaxForm() 179 179 { 180 180 $this->container->get(FvCommunityNews\View\AjaxForm::class); … … 186 186 * @return void 187 187 */ 188 protected function setupAdmin() : void188 protected function setupAdmin() 189 189 { 190 190 $this->container->get(FvCommunityNews\Admin\Admin::class); -
fv-community-news/trunk/src/Hook/WidgetsInit.php
r1806332 r1825546 19 19 * @return void 20 20 */ 21 public function doHook() : void21 public function doHook() 22 22 { 23 23 FormWidget::register(); -
fv-community-news/trunk/src/Post/Controller.php
r1810381 r1825546 114 114 * @return void 115 115 */ 116 public function adjustPostRating() : void116 public function adjustPostRating() 117 117 { 118 118 $actions = [ -
fv-community-news/trunk/src/Template/post-functions.php
r1810381 r1825546 7 7 * 8 8 */ 9 function fvcn_post_slug() : void9 function fvcn_post_slug() 10 10 { 11 11 echo fvcn_get_post_slug(); … … 72 72 * @return void 73 73 */ 74 function fvcn_the_post() : void74 function fvcn_the_post() 75 75 { 76 76 /* @var WP_Query $wpQuery */ … … 85 85 * @param int $postId 86 86 */ 87 function fvcn_post_id(int $postId = 0) : void87 function fvcn_post_id(int $postId = 0) 88 88 { 89 89 echo fvcn_get_post_id($postId); … … 147 147 * @param int $postId 148 148 */ 149 function fvcn_post_permalink(int $postId = 0) : void149 function fvcn_post_permalink(int $postId = 0) 150 150 { 151 151 echo fvcn_get_post_permalink($postId); … … 191 191 * @param int $postId 192 192 */ 193 function fvcn_post_link(int $postId = 0) : void193 function fvcn_post_link(int $postId = 0) 194 194 { 195 195 echo fvcn_get_post_link($postId); … … 216 216 * @param int $postId 217 217 */ 218 function fvcn_post_title(int $postId = 0) : void218 function fvcn_post_title(int $postId = 0) 219 219 { 220 220 echo fvcn_get_post_title($postId); … … 239 239 * @param int $postId 240 240 */ 241 function fvcn_post_content(int $postId = 0) : void241 function fvcn_post_content(int $postId = 0) 242 242 { 243 243 echo fvcn_get_post_content($postId); -
fv-community-news/trunk/src/Template/tag-functions.php
r1810381 r1825546 9 9 * @return void 10 10 */ 11 function fvcn_tag_cloud($args = '') : void11 function fvcn_tag_cloud($args = '') 12 12 { 13 13 $default = ['taxonomy' => PostType::TAG_TYPE_KEY]; -
fv-community-news/trunk/src/Template/user-functions.php
r1810381 r1825546 51 51 * @param int $userId 52 52 */ 53 function fvcn_user_id(int $userId = 0) : void53 function fvcn_user_id(int $userId = 0) 54 54 { 55 55 echo fvcn_get_user_id($userId); … … 80 80 * 81 81 */ 82 function fvcn_current_user_id() : void82 function fvcn_current_user_id() 83 83 { 84 84 echo fvcn_get_current_user_id(); … … 101 101 * 102 102 */ 103 function fvcn_current_user_name() : void103 function fvcn_current_user_name() 104 104 { 105 105 echo fvcn_get_current_user_name();
Note: See TracChangeset
for help on using the changeset viewer.