Plugin Directory

Changeset 1825546


Ignore:
Timestamp:
02/20/2018 06:50:01 PM (8 years ago)
Author:
frankverhoeven
Message:

push 3.2.1

Location:
fv-community-news
Files:
3 deleted
29 edited
33 copied

Legend:

Unmodified
Added
Removed
  • fv-community-news/tags/3.2.1/fv-community-news.php

    r1810381 r1825546  
    55 * Plugin URI:  https://frankverhoeven.me/wordpress-plugin-fv-community-news/
    66 * Description: Allow visitors of your site to submit articles.
    7  * Version:     3.2
     7 * Version:     3.2.1
    88 * Author:      Frank Verhoeven
    99 * Author URI:  https://frankverhoeven.me/
     
    2727     * @var string
    2828     */
    29     const VERSION = '3.2';
     29    const VERSION = '3.2.1';
    3030    /**
    3131     * @var string
     
    5656     * @return void
    5757     */
    58     public function start(): void
     58    public function start()
    5959    {
    6060        $this->loadFiles();
     
    7373     * @return void
    7474     */
    75     private function loadFiles(): void
     75    private function loadFiles()
    7676    {
    7777        include_once __DIR__ . '/src/Autoloader.php';
     
    9999     * @return void
    100100     */
    101     public static function activation(): void
     101    public static function activation()
    102102    {
    103103        do_action('fvcn_activation');
     
    110110     * @return void
    111111     */
    112     public static function deactivation(): void
     112    public static function deactivation()
    113113    {
    114114        do_action('fvcn_deactivation');
     
    120120     * @return void
    121121     */
    122     public static function uninstall(): void
     122    public static function uninstall()
    123123    {
    124124        do_action('fvcn_uninstall');
  • fv-community-news/tags/3.2.1/readme.txt

    r1810381 r1825546  
    66Requires at least:  4.8
    77Tested up to:       4.9
    8 Stable tag:         3.2
     8Stable tag:         3.2.1
    99
    1010Give the visitors of your site the ability to submit their news to you, and list it in a nice news feed.
     
    134134
    135135
     136= 3.2.1 =
     137
     138* Fix: PHP 7.0 Compatiblity
     139
     140
    136141= 3.2 =
    137142
  • fv-community-news/tags/3.2.1/src/Admin/Settings/Form.php

    r1810381 r1825546  
    140140
    141141                <?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(); ?>
    145143            </form>
    146144        </div>
  • fv-community-news/tags/3.2.1/src/Config/AbstractConfig.php

    r1806332 r1825546  
    7373     * @param string $key
    7474     */
    75     abstract public function delete(string $key): void;
     75    abstract public function delete(string $key);
    7676
    7777    /**
  • fv-community-news/tags/3.2.1/src/Config/Memory.php

    r1806332 r1825546  
    7373     * @param string $key
    7474     */
    75     public function delete(string $key): void
     75    public function delete(string $key)
    7676    {
    7777        if (isset($this->config[$key])) {
  • fv-community-news/tags/3.2.1/src/Config/WordPress.php

    r1806332 r1825546  
    7676     * @param string $key
    7777     */
    78     public function delete(string $key): void
     78    public function delete(string $key)
    7979    {
    8080        if (isset($this->config[$key])) {
  • fv-community-news/tags/3.2.1/src/Container/Container.php

    r1806332 r1825546  
    8080     * @return void
    8181     */
    82     public function add(string $id, $entry): void
     82    public function add(string $id, $entry)
    8383    {
    8484        if ($this->has($id)) {
  • fv-community-news/tags/3.2.1/src/Hook/Akismet.php

    r1806332 r1825546  
    3131     * @return void
    3232     */
    33     public function doHook(): void
     33    public function doHook()
    3434    {
    3535        if (!defined('AKISMET_VERSION')) {
  • fv-community-news/tags/3.2.1/src/Hook/Collection.php

    r1810381 r1825546  
    159159     * @return void
    160160     */
    161     public function register(): void
     161    public function register()
    162162    {
    163163        $this->registerHooks($this->actions);
     
    172172     * @return void
    173173     */
    174     protected function registerHooks(array $hooks): void
     174    protected function registerHooks(array $hooks)
    175175    {
    176176        foreach ($hooks as $tag => $filters) {
  • fv-community-news/tags/3.2.1/src/Hook/Controller.php

    r1810381 r1825546  
    3030     * @return void
    3131     */
    32     public function doHook(): void
     32    public function doHook()
    3333    {
    3434        if ('post' == strtolower($_SERVER['REQUEST_METHOD'])) {
  • fv-community-news/tags/3.2.1/src/Hook/EnqueueScripts.php

    r1806332 r1825546  
    3232     * @return void
    3333     */
    34     public function doHook(): void
     34    public function doHook()
    3535    {
    3636        $this->enqueueScripts();
     
    4343     * @return void
    4444     */
    45     protected function enqueueScripts(): void
     45    protected function enqueueScripts()
    4646    {
    4747        $ajaxForm = $this->container->get(AjaxForm::class);
     
    5656     * @return void
    5757     */
    58     protected function enqueueStyles(): void
     58    protected function enqueueStyles()
    5959    {
    6060        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  
    1515     * @return void
    1616     */
    17     public function doHook(): void
     17    public function doHook()
    1818    {
    1919        echo '<meta name="generator" content="FV Community News">' . "\n";
  • fv-community-news/tags/3.2.1/src/Hook/HookInterface.php

    r1806332 r1825546  
    1515     * @return void
    1616     */
    17     public function doHook(): void;
     17    public function doHook();
    1818}
  • fv-community-news/tags/3.2.1/src/Hook/Init.php

    r1806332 r1825546  
    4343     * @return void
    4444     */
    45     public function doHook(): void
     45    public function doHook()
    4646    {
    4747        $this->setupVariables();
     
    6767     * @return void
    6868     */
    69     protected function setupVariables(): void
     69    protected function setupVariables()
    7070    {
    7171        $pluginDir = plugin_dir_path(FvCommunityNews::FILE);
     
    9191     * @return void
    9292     */
    93     protected function install(): void
     93    protected function install()
    9494    {
    9595        $installer = new Installer($this->config);
     
    113113     * @return void
    114114     */
    115     protected function loadTextDomain(): void
     115    protected function loadTextDomain()
    116116    {
    117117        $locale = apply_filters('fvcn_locale', get_locale());
     
    138138     * @return void
    139139     */
    140     protected function registerPostType(): void
     140    protected function registerPostType()
    141141    {
    142142        $postType = new PostType();
     
    156156     * @return void
    157157     */
    158     protected function registerShortCodes(): void
     158    protected function registerShortCodes()
    159159    {
    160160        add_shortcode(PostFormShortcode::SHORTCODE_TAG, function() {
     
    176176     * @return void
    177177     */
    178     protected function setupAjaxForm(): void
     178    protected function setupAjaxForm()
    179179    {
    180180        $this->container->get(FvCommunityNews\View\AjaxForm::class);
     
    186186     * @return void
    187187     */
    188     protected function setupAdmin(): void
     188    protected function setupAdmin()
    189189    {
    190190        $this->container->get(FvCommunityNews\Admin\Admin::class);
  • fv-community-news/tags/3.2.1/src/Hook/WidgetsInit.php

    r1806332 r1825546  
    1919     * @return void
    2020     */
    21     public function doHook(): void
     21    public function doHook()
    2222    {
    2323        FormWidget::register();
  • fv-community-news/tags/3.2.1/src/Post/Controller.php

    r1810381 r1825546  
    114114     * @return void
    115115     */
    116     public function adjustPostRating(): void
     116    public function adjustPostRating()
    117117    {
    118118        $actions = [
  • fv-community-news/tags/3.2.1/src/Template/post-functions.php

    r1810381 r1825546  
    77 *
    88 */
    9 function fvcn_post_slug(): void
     9function fvcn_post_slug()
    1010{
    1111    echo fvcn_get_post_slug();
     
    7272 * @return void
    7373 */
    74 function fvcn_the_post(): void
     74function fvcn_the_post()
    7575{
    7676    /* @var WP_Query $wpQuery */
     
    8585 * @param int $postId
    8686 */
    87 function fvcn_post_id(int $postId = 0): void
     87function fvcn_post_id(int $postId = 0)
    8888{
    8989    echo fvcn_get_post_id($postId);
     
    147147 * @param int $postId
    148148 */
    149 function fvcn_post_permalink(int $postId = 0): void
     149function fvcn_post_permalink(int $postId = 0)
    150150{
    151151    echo fvcn_get_post_permalink($postId);
     
    191191 * @param int $postId
    192192 */
    193 function fvcn_post_link(int $postId = 0): void
     193function fvcn_post_link(int $postId = 0)
    194194{
    195195    echo fvcn_get_post_link($postId);
     
    216216 * @param int $postId
    217217 */
    218 function fvcn_post_title(int $postId = 0): void
     218function fvcn_post_title(int $postId = 0)
    219219{
    220220    echo fvcn_get_post_title($postId);
     
    239239 * @param int $postId
    240240 */
    241 function fvcn_post_content(int $postId = 0): void
     241function fvcn_post_content(int $postId = 0)
    242242{
    243243    echo fvcn_get_post_content($postId);
  • fv-community-news/tags/3.2.1/src/Template/tag-functions.php

    r1810381 r1825546  
    99 * @return void
    1010 */
    11 function fvcn_tag_cloud($args = ''): void
     11function fvcn_tag_cloud($args = '')
    1212{
    1313    $default = ['taxonomy' => PostType::TAG_TYPE_KEY];
  • fv-community-news/tags/3.2.1/src/Template/user-functions.php

    r1810381 r1825546  
    5151 * @param int $userId
    5252 */
    53 function fvcn_user_id(int $userId = 0): void
     53function fvcn_user_id(int $userId = 0)
    5454{
    5555    echo fvcn_get_user_id($userId);
     
    8080 *
    8181 */
    82 function fvcn_current_user_id(): void
     82function fvcn_current_user_id()
    8383{
    8484    echo fvcn_get_current_user_id();
     
    101101 *
    102102 */
    103 function fvcn_current_user_name(): void
     103function fvcn_current_user_name()
    104104{
    105105    echo fvcn_get_current_user_name();
  • fv-community-news/trunk/fv-community-news.php

    r1810381 r1825546  
    55 * Plugin URI:  https://frankverhoeven.me/wordpress-plugin-fv-community-news/
    66 * Description: Allow visitors of your site to submit articles.
    7  * Version:     3.2
     7 * Version:     3.2.1
    88 * Author:      Frank Verhoeven
    99 * Author URI:  https://frankverhoeven.me/
     
    2727     * @var string
    2828     */
    29     const VERSION = '3.2';
     29    const VERSION = '3.2.1';
    3030    /**
    3131     * @var string
     
    5656     * @return void
    5757     */
    58     public function start(): void
     58    public function start()
    5959    {
    6060        $this->loadFiles();
     
    7373     * @return void
    7474     */
    75     private function loadFiles(): void
     75    private function loadFiles()
    7676    {
    7777        include_once __DIR__ . '/src/Autoloader.php';
     
    9999     * @return void
    100100     */
    101     public static function activation(): void
     101    public static function activation()
    102102    {
    103103        do_action('fvcn_activation');
     
    110110     * @return void
    111111     */
    112     public static function deactivation(): void
     112    public static function deactivation()
    113113    {
    114114        do_action('fvcn_deactivation');
     
    120120     * @return void
    121121     */
    122     public static function uninstall(): void
     122    public static function uninstall()
    123123    {
    124124        do_action('fvcn_uninstall');
  • fv-community-news/trunk/readme.txt

    r1810381 r1825546  
    66Requires at least:  4.8
    77Tested up to:       4.9
    8 Stable tag:         3.2
     8Stable tag:         3.2.1
    99
    1010Give the visitors of your site the ability to submit their news to you, and list it in a nice news feed.
     
    134134
    135135
     136= 3.2.1 =
     137
     138* Fix: PHP 7.0 Compatiblity
     139
     140
    136141= 3.2 =
    137142
  • fv-community-news/trunk/src/Admin/Settings/Form.php

    r1810381 r1825546  
    140140
    141141                <?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(); ?>
    145143            </form>
    146144        </div>
  • fv-community-news/trunk/src/Config/AbstractConfig.php

    r1806332 r1825546  
    7373     * @param string $key
    7474     */
    75     abstract public function delete(string $key): void;
     75    abstract public function delete(string $key);
    7676
    7777    /**
  • fv-community-news/trunk/src/Config/Memory.php

    r1806332 r1825546  
    7373     * @param string $key
    7474     */
    75     public function delete(string $key): void
     75    public function delete(string $key)
    7676    {
    7777        if (isset($this->config[$key])) {
  • fv-community-news/trunk/src/Config/WordPress.php

    r1806332 r1825546  
    7676     * @param string $key
    7777     */
    78     public function delete(string $key): void
     78    public function delete(string $key)
    7979    {
    8080        if (isset($this->config[$key])) {
  • fv-community-news/trunk/src/Container/Container.php

    r1806332 r1825546  
    8080     * @return void
    8181     */
    82     public function add(string $id, $entry): void
     82    public function add(string $id, $entry)
    8383    {
    8484        if ($this->has($id)) {
  • fv-community-news/trunk/src/Hook/Akismet.php

    r1806332 r1825546  
    3131     * @return void
    3232     */
    33     public function doHook(): void
     33    public function doHook()
    3434    {
    3535        if (!defined('AKISMET_VERSION')) {
  • fv-community-news/trunk/src/Hook/Collection.php

    r1810381 r1825546  
    159159     * @return void
    160160     */
    161     public function register(): void
     161    public function register()
    162162    {
    163163        $this->registerHooks($this->actions);
     
    172172     * @return void
    173173     */
    174     protected function registerHooks(array $hooks): void
     174    protected function registerHooks(array $hooks)
    175175    {
    176176        foreach ($hooks as $tag => $filters) {
  • fv-community-news/trunk/src/Hook/Controller.php

    r1810381 r1825546  
    3030     * @return void
    3131     */
    32     public function doHook(): void
     32    public function doHook()
    3333    {
    3434        if ('post' == strtolower($_SERVER['REQUEST_METHOD'])) {
  • fv-community-news/trunk/src/Hook/EnqueueScripts.php

    r1806332 r1825546  
    3232     * @return void
    3333     */
    34     public function doHook(): void
     34    public function doHook()
    3535    {
    3636        $this->enqueueScripts();
     
    4343     * @return void
    4444     */
    45     protected function enqueueScripts(): void
     45    protected function enqueueScripts()
    4646    {
    4747        $ajaxForm = $this->container->get(AjaxForm::class);
     
    5656     * @return void
    5757     */
    58     protected function enqueueStyles(): void
     58    protected function enqueueStyles()
    5959    {
    6060        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  
    1515     * @return void
    1616     */
    17     public function doHook(): void
     17    public function doHook()
    1818    {
    1919        echo '<meta name="generator" content="FV Community News">' . "\n";
  • fv-community-news/trunk/src/Hook/HookInterface.php

    r1806332 r1825546  
    1515     * @return void
    1616     */
    17     public function doHook(): void;
     17    public function doHook();
    1818}
  • fv-community-news/trunk/src/Hook/Init.php

    r1806332 r1825546  
    4343     * @return void
    4444     */
    45     public function doHook(): void
     45    public function doHook()
    4646    {
    4747        $this->setupVariables();
     
    6767     * @return void
    6868     */
    69     protected function setupVariables(): void
     69    protected function setupVariables()
    7070    {
    7171        $pluginDir = plugin_dir_path(FvCommunityNews::FILE);
     
    9191     * @return void
    9292     */
    93     protected function install(): void
     93    protected function install()
    9494    {
    9595        $installer = new Installer($this->config);
     
    113113     * @return void
    114114     */
    115     protected function loadTextDomain(): void
     115    protected function loadTextDomain()
    116116    {
    117117        $locale = apply_filters('fvcn_locale', get_locale());
     
    138138     * @return void
    139139     */
    140     protected function registerPostType(): void
     140    protected function registerPostType()
    141141    {
    142142        $postType = new PostType();
     
    156156     * @return void
    157157     */
    158     protected function registerShortCodes(): void
     158    protected function registerShortCodes()
    159159    {
    160160        add_shortcode(PostFormShortcode::SHORTCODE_TAG, function() {
     
    176176     * @return void
    177177     */
    178     protected function setupAjaxForm(): void
     178    protected function setupAjaxForm()
    179179    {
    180180        $this->container->get(FvCommunityNews\View\AjaxForm::class);
     
    186186     * @return void
    187187     */
    188     protected function setupAdmin(): void
     188    protected function setupAdmin()
    189189    {
    190190        $this->container->get(FvCommunityNews\Admin\Admin::class);
  • fv-community-news/trunk/src/Hook/WidgetsInit.php

    r1806332 r1825546  
    1919     * @return void
    2020     */
    21     public function doHook(): void
     21    public function doHook()
    2222    {
    2323        FormWidget::register();
  • fv-community-news/trunk/src/Post/Controller.php

    r1810381 r1825546  
    114114     * @return void
    115115     */
    116     public function adjustPostRating(): void
     116    public function adjustPostRating()
    117117    {
    118118        $actions = [
  • fv-community-news/trunk/src/Template/post-functions.php

    r1810381 r1825546  
    77 *
    88 */
    9 function fvcn_post_slug(): void
     9function fvcn_post_slug()
    1010{
    1111    echo fvcn_get_post_slug();
     
    7272 * @return void
    7373 */
    74 function fvcn_the_post(): void
     74function fvcn_the_post()
    7575{
    7676    /* @var WP_Query $wpQuery */
     
    8585 * @param int $postId
    8686 */
    87 function fvcn_post_id(int $postId = 0): void
     87function fvcn_post_id(int $postId = 0)
    8888{
    8989    echo fvcn_get_post_id($postId);
     
    147147 * @param int $postId
    148148 */
    149 function fvcn_post_permalink(int $postId = 0): void
     149function fvcn_post_permalink(int $postId = 0)
    150150{
    151151    echo fvcn_get_post_permalink($postId);
     
    191191 * @param int $postId
    192192 */
    193 function fvcn_post_link(int $postId = 0): void
     193function fvcn_post_link(int $postId = 0)
    194194{
    195195    echo fvcn_get_post_link($postId);
     
    216216 * @param int $postId
    217217 */
    218 function fvcn_post_title(int $postId = 0): void
     218function fvcn_post_title(int $postId = 0)
    219219{
    220220    echo fvcn_get_post_title($postId);
     
    239239 * @param int $postId
    240240 */
    241 function fvcn_post_content(int $postId = 0): void
     241function fvcn_post_content(int $postId = 0)
    242242{
    243243    echo fvcn_get_post_content($postId);
  • fv-community-news/trunk/src/Template/tag-functions.php

    r1810381 r1825546  
    99 * @return void
    1010 */
    11 function fvcn_tag_cloud($args = ''): void
     11function fvcn_tag_cloud($args = '')
    1212{
    1313    $default = ['taxonomy' => PostType::TAG_TYPE_KEY];
  • fv-community-news/trunk/src/Template/user-functions.php

    r1810381 r1825546  
    5151 * @param int $userId
    5252 */
    53 function fvcn_user_id(int $userId = 0): void
     53function fvcn_user_id(int $userId = 0)
    5454{
    5555    echo fvcn_get_user_id($userId);
     
    8080 *
    8181 */
    82 function fvcn_current_user_id(): void
     82function fvcn_current_user_id()
    8383{
    8484    echo fvcn_get_current_user_id();
     
    101101 *
    102102 */
    103 function fvcn_current_user_name(): void
     103function fvcn_current_user_name()
    104104{
    105105    echo fvcn_get_current_user_name();
Note: See TracChangeset for help on using the changeset viewer.