Plugin Directory

Changeset 2954457


Ignore:
Timestamp:
08/16/2023 01:56:17 PM (3 years ago)
Author:
lruizcode
Message:

Update to version 0.4 from GitHub

Location:
show-template-name
Files:
1 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • show-template-name/tags/0.4/readme.txt

    r2950144 r2954457  
    55Tested up to: 6.3
    66Requires PHP: 7.2
    7 Stable tag: 0.3
     7Stable tag: 0.4
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    24242. Filter templates by name
    25253. Result of filtering by template "Landing"
     264. We show the template that is used in the administration bar
    2627
    2728== Changelog ==
     29= 0.4 =
     30* Fix some PHP errors.
    2831= 0.3 =
    2932* Show in the top admin bar the name of the current template.
  • show-template-name/tags/0.4/show-template-name.php

    r2950144 r2954457  
    33 * Plugin Name: Show Template Name
    44 * Description: Plugin to see which template has assigned every page in the list.
    5  * Version: 0.3
     5 * Version: 0.4
    66 * Author: Luis Ruiz
    77 * Author URI: https://www.bubuku.com/
  • show-template-name/tags/0.4/src/class-plugin.php

    r2950144 r2954457  
    88   
    99    public const _CLASSES_ = __DIR__;
    10     public const CURRENT_VERSION = '0.3';
     10    public const CURRENT_VERSION = '0.4';
    1111
    1212    private const SUPPORTED_PHP_VERSION = '7.2.0';
  • show-template-name/tags/0.4/src/front/filter-action.php

    r2950144 r2954457  
    2525        }
    2626
     27        $template_name = '';
    2728        if ( $current_template = get_page_template_slug( get_queried_object_id() ) ){
    2829            $templates = wp_get_theme()->get_page_templates();
     
    3031        }
    3132
     33        if ( empty( $template_name ) ) {
     34            return false;
     35        }
    3236
    3337        $wp_admin_bar->add_menu(
     
    3842        );
    3943
    40         return false;
     44        return true;
    4145    }
    4246
  • show-template-name/trunk/readme.txt

    r2950144 r2954457  
    55Tested up to: 6.3
    66Requires PHP: 7.2
    7 Stable tag: 0.3
     7Stable tag: 0.4
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    24242. Filter templates by name
    25253. Result of filtering by template "Landing"
     264. We show the template that is used in the administration bar
    2627
    2728== Changelog ==
     29= 0.4 =
     30* Fix some PHP errors.
    2831= 0.3 =
    2932* Show in the top admin bar the name of the current template.
  • show-template-name/trunk/show-template-name.php

    r2950144 r2954457  
    33 * Plugin Name: Show Template Name
    44 * Description: Plugin to see which template has assigned every page in the list.
    5  * Version: 0.3
     5 * Version: 0.4
    66 * Author: Luis Ruiz
    77 * Author URI: https://www.bubuku.com/
  • show-template-name/trunk/src/class-plugin.php

    r2950144 r2954457  
    88   
    99    public const _CLASSES_ = __DIR__;
    10     public const CURRENT_VERSION = '0.3';
     10    public const CURRENT_VERSION = '0.4';
    1111
    1212    private const SUPPORTED_PHP_VERSION = '7.2.0';
  • show-template-name/trunk/src/front/filter-action.php

    r2950144 r2954457  
    2525        }
    2626
     27        $template_name = '';
    2728        if ( $current_template = get_page_template_slug( get_queried_object_id() ) ){
    2829            $templates = wp_get_theme()->get_page_templates();
     
    3031        }
    3132
     33        if ( empty( $template_name ) ) {
     34            return false;
     35        }
    3236
    3337        $wp_admin_bar->add_menu(
     
    3842        );
    3943
    40         return false;
     44        return true;
    4145    }
    4246
Note: See TracChangeset for help on using the changeset viewer.