Plugin Directory

Changeset 2912732


Ignore:
Timestamp:
05/16/2023 03:08:31 AM (3 years ago)
Author:
daomapsieucap
Message:

Update to version 2.0.16 from GitHub

Location:
fiber-admin
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • fiber-admin/tags/2.0.16/changelog.txt

    r2857421 r2912732  
    11== Changelog ==
     2
     3= 2.0.16 =
     4*Release Date - 16 May 2023*
     5
     6* Fixed: Use admin bar default when the option enable admin toolbar is disabled.
    27
    38= 2.0.15 =
  • fiber-admin/tags/2.0.16/fiberadmin.php

    r2857421 r2912732  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           2.0.15
     6 * Version:           2.0.16
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.0
  • fiber-admin/tags/2.0.16/includes/default.php

    r2857421 r2912732  
    1313        if(fiad_get_general_option('hide_wordpress_branding')){
    1414            // Replace "WordPress" in the page titles.
    15             add_filter('admin_title', array($this, 'fiad_title'), 10, 2);
     15            add_filter('admin_title', [$this, 'fiad_title'], 10, 2);
    1616           
    1717            // Remove "WordPress" in login title
    18             add_filter('login_title', array($this, 'fiad_admin_title'));
     18            add_filter('login_title', [$this, 'fiad_admin_title']);
    1919           
    2020            // Admin footer modification
    21             add_filter('admin_footer_text', array($this, 'fiad_update_admin_footer'));
     21            add_filter('admin_footer_text', [$this, 'fiad_update_admin_footer']);
    2222           
    2323            // Update dashboard title
    24             add_action('admin_head', array($this, 'fiad_update_dashboard_name'));
     24            add_action('admin_head', [$this, 'fiad_update_dashboard_name']);
    2525           
    2626            // Remove unused dashboard widgets
    27             add_action('admin_init', array($this, 'fiad_remove_dashboard_widgets'));
     27            add_action('admin_init', [$this, 'fiad_remove_dashboard_widgets']);
    2828           
    2929            // Update logo link and title
    30             add_filter('login_headerurl', array($this, 'fiad_login_logo_url'));
    31             add_filter('login_headertext', array($this, 'fiad_login_logo_title'));
     30            add_filter('login_headerurl', [$this, 'fiad_login_logo_url']);
     31            add_filter('login_headertext', [$this, 'fiad_login_logo_title']);
    3232           
    3333            // Remove Lost your password link
    34             add_filter('gettext', array($this, 'fiad_remove_lostpassword'));
     34            add_filter('gettext', [$this, 'fiad_remove_lostpassword']);
    3535           
    3636            // Remove Back to blog
    37             add_action('login_enqueue_scripts', array($this, 'fiad_remove_backtoblog'));
     37            add_action('login_enqueue_scripts', [$this, 'fiad_remove_backtoblog']);
    3838           
    3939            // Hide / Show Admin Bar Frontend for all users
    40             if(fiad_get_general_option('enable_admin_toolbar')){
    41                 add_filter('show_admin_bar', '__return_true');
    42             }else{
     40            if(!fiad_get_general_option('enable_admin_toolbar')){
    4341                add_filter('show_admin_bar', '__return_false');
    44                 add_action('wp_print_styles', array($this, 'fiad_deregister_styles'), 100);
     42                add_action('wp_print_styles', [$this, 'fiad_deregister_styles'], 100);
    4543            }
    4644           
    4745            // Remove WordPress admin bar logo
    48             add_action('wp_before_admin_bar_render', array($this, 'fiad_remove_admin_bar_logo'), 0);
     46            add_action('wp_before_admin_bar_render', [$this, 'fiad_remove_admin_bar_logo'], 0);
    4947           
    5048            // Remove Welcome Dashboard Widget
     
    6866            add_filter('revslider_meta_generator', '__return_empty_string'); // Revolution Slider
    6967            remove_action('wp_head', 'xforwc__add_meta_information_action', 99); // Product Filter for WooCommerce
    70             remove_action('wp_head', array('Redux_Functions_Ex', 'meta_tag')); // WP Mail Logging
    71             add_action('wp_head', array($this, 'fiad_remove_meta_generators'), 1); // other plugins
     68            remove_action('wp_head', ['Redux_Functions_Ex', 'meta_tag']); // WP Mail Logging
     69            add_action('wp_head', [$this, 'fiad_remove_meta_generators'], 1); // other plugins
    7270           
    7371            // Add favicon to admin bar logo
    74             add_action('admin_head', array($this, 'fiad_favicon_admin_logo'));
     72            add_action('admin_head', [$this, 'fiad_favicon_admin_logo']);
    7573        }
    7674       
     
    9694   
    9795    public function fiad_admin_title($login_title){
    98         return str_replace(array(' ‹', ' — WordPress'), array(' ‹', ''), $login_title);
     96        return str_replace([' ‹', ' — WordPress'], [' ‹', ''], $login_title);
    9997    }
    10098   
     
    152150        // WPBakery Page Builder
    153151        if(class_exists('Vc_Manager')){
    154             remove_action('wp_head', array(visual_composer(), 'addMetaData'));
     152            remove_action('wp_head', [visual_composer(), 'addMetaData']);
    155153        }
    156154       
     
    158156        if(function_exists('icl_object_id')){
    159157            global $sitepress;
    160             remove_action('wp_head', array($sitepress, 'meta_generator_tag'));
     158            remove_action('wp_head', [$sitepress, 'meta_generator_tag']);
    161159        }
    162160    }
  • fiber-admin/tags/2.0.16/includes/helper.php

    r2608259 r2912732  
    9898    }
    9999}
     100
     101if(!function_exists('fiad_array_key_exists')){
     102    function fiad_array_key_exists($key, $array, $default = ''){
     103        if($array && is_array($array)){
     104            if(array_key_exists($key, $array)){
     105                return $array[$key] ? : $default;
     106            }
     107        }
     108       
     109        return $default;
     110    }
     111}
  • fiber-admin/tags/2.0.16/readme.txt

    r2857421 r2912732  
    55Tested up to: 6.0.1
    66Requires PHP: 7.0
    7 Stable tag: 2.0.15
     7Stable tag: 2.0.16
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
    49 = 2.0.15 =
    50 *Release Date - 31 January 2023*
     49= 2.0.16 =
     50*Release Date - 16 May 2023*
    5151
    52 * Fixed: Skip auto replace email address if the content has email in HTML attribute.
    53 * Added: Add option to toggle admin toolbar.
     52* Fixed: Use admin bar default when the option enable admin toolbar is disabled.
  • fiber-admin/trunk/changelog.txt

    r2857421 r2912732  
    11== Changelog ==
     2
     3= 2.0.16 =
     4*Release Date - 16 May 2023*
     5
     6* Fixed: Use admin bar default when the option enable admin toolbar is disabled.
    27
    38= 2.0.15 =
  • fiber-admin/trunk/fiberadmin.php

    r2857421 r2912732  
    44 * Plugin URI:        https://wordpress.org/plugins/fiber-admin/
    55 * Description:       💈 Bring multiple customization features to make your own WordPress admin.
    6  * Version:           2.0.15
     6 * Version:           2.0.16
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.0
  • fiber-admin/trunk/includes/default.php

    r2857421 r2912732  
    1313        if(fiad_get_general_option('hide_wordpress_branding')){
    1414            // Replace "WordPress" in the page titles.
    15             add_filter('admin_title', array($this, 'fiad_title'), 10, 2);
     15            add_filter('admin_title', [$this, 'fiad_title'], 10, 2);
    1616           
    1717            // Remove "WordPress" in login title
    18             add_filter('login_title', array($this, 'fiad_admin_title'));
     18            add_filter('login_title', [$this, 'fiad_admin_title']);
    1919           
    2020            // Admin footer modification
    21             add_filter('admin_footer_text', array($this, 'fiad_update_admin_footer'));
     21            add_filter('admin_footer_text', [$this, 'fiad_update_admin_footer']);
    2222           
    2323            // Update dashboard title
    24             add_action('admin_head', array($this, 'fiad_update_dashboard_name'));
     24            add_action('admin_head', [$this, 'fiad_update_dashboard_name']);
    2525           
    2626            // Remove unused dashboard widgets
    27             add_action('admin_init', array($this, 'fiad_remove_dashboard_widgets'));
     27            add_action('admin_init', [$this, 'fiad_remove_dashboard_widgets']);
    2828           
    2929            // Update logo link and title
    30             add_filter('login_headerurl', array($this, 'fiad_login_logo_url'));
    31             add_filter('login_headertext', array($this, 'fiad_login_logo_title'));
     30            add_filter('login_headerurl', [$this, 'fiad_login_logo_url']);
     31            add_filter('login_headertext', [$this, 'fiad_login_logo_title']);
    3232           
    3333            // Remove Lost your password link
    34             add_filter('gettext', array($this, 'fiad_remove_lostpassword'));
     34            add_filter('gettext', [$this, 'fiad_remove_lostpassword']);
    3535           
    3636            // Remove Back to blog
    37             add_action('login_enqueue_scripts', array($this, 'fiad_remove_backtoblog'));
     37            add_action('login_enqueue_scripts', [$this, 'fiad_remove_backtoblog']);
    3838           
    3939            // Hide / Show Admin Bar Frontend for all users
    40             if(fiad_get_general_option('enable_admin_toolbar')){
    41                 add_filter('show_admin_bar', '__return_true');
    42             }else{
     40            if(!fiad_get_general_option('enable_admin_toolbar')){
    4341                add_filter('show_admin_bar', '__return_false');
    44                 add_action('wp_print_styles', array($this, 'fiad_deregister_styles'), 100);
     42                add_action('wp_print_styles', [$this, 'fiad_deregister_styles'], 100);
    4543            }
    4644           
    4745            // Remove WordPress admin bar logo
    48             add_action('wp_before_admin_bar_render', array($this, 'fiad_remove_admin_bar_logo'), 0);
     46            add_action('wp_before_admin_bar_render', [$this, 'fiad_remove_admin_bar_logo'], 0);
    4947           
    5048            // Remove Welcome Dashboard Widget
     
    6866            add_filter('revslider_meta_generator', '__return_empty_string'); // Revolution Slider
    6967            remove_action('wp_head', 'xforwc__add_meta_information_action', 99); // Product Filter for WooCommerce
    70             remove_action('wp_head', array('Redux_Functions_Ex', 'meta_tag')); // WP Mail Logging
    71             add_action('wp_head', array($this, 'fiad_remove_meta_generators'), 1); // other plugins
     68            remove_action('wp_head', ['Redux_Functions_Ex', 'meta_tag']); // WP Mail Logging
     69            add_action('wp_head', [$this, 'fiad_remove_meta_generators'], 1); // other plugins
    7270           
    7371            // Add favicon to admin bar logo
    74             add_action('admin_head', array($this, 'fiad_favicon_admin_logo'));
     72            add_action('admin_head', [$this, 'fiad_favicon_admin_logo']);
    7573        }
    7674       
     
    9694   
    9795    public function fiad_admin_title($login_title){
    98         return str_replace(array(' ‹', ' — WordPress'), array(' ‹', ''), $login_title);
     96        return str_replace([' ‹', ' — WordPress'], [' ‹', ''], $login_title);
    9997    }
    10098   
     
    152150        // WPBakery Page Builder
    153151        if(class_exists('Vc_Manager')){
    154             remove_action('wp_head', array(visual_composer(), 'addMetaData'));
     152            remove_action('wp_head', [visual_composer(), 'addMetaData']);
    155153        }
    156154       
     
    158156        if(function_exists('icl_object_id')){
    159157            global $sitepress;
    160             remove_action('wp_head', array($sitepress, 'meta_generator_tag'));
     158            remove_action('wp_head', [$sitepress, 'meta_generator_tag']);
    161159        }
    162160    }
  • fiber-admin/trunk/includes/helper.php

    r2608259 r2912732  
    9898    }
    9999}
     100
     101if(!function_exists('fiad_array_key_exists')){
     102    function fiad_array_key_exists($key, $array, $default = ''){
     103        if($array && is_array($array)){
     104            if(array_key_exists($key, $array)){
     105                return $array[$key] ? : $default;
     106            }
     107        }
     108       
     109        return $default;
     110    }
     111}
  • fiber-admin/trunk/readme.txt

    r2857421 r2912732  
    55Tested up to: 6.0.1
    66Requires PHP: 7.0
    7 Stable tag: 2.0.15
     7Stable tag: 2.0.16
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4747== Changelog ==
    4848
    49 = 2.0.15 =
    50 *Release Date - 31 January 2023*
     49= 2.0.16 =
     50*Release Date - 16 May 2023*
    5151
    52 * Fixed: Skip auto replace email address if the content has email in HTML attribute.
    53 * Added: Add option to toggle admin toolbar.
     52* Fixed: Use admin bar default when the option enable admin toolbar is disabled.
Note: See TracChangeset for help on using the changeset viewer.