Changeset 2912732
- Timestamp:
- 05/16/2023 03:08:31 AM (3 years ago)
- Location:
- fiber-admin
- Files:
-
- 10 edited
- 1 copied
-
tags/2.0.16 (copied) (copied from fiber-admin/trunk)
-
tags/2.0.16/changelog.txt (modified) (1 diff)
-
tags/2.0.16/fiberadmin.php (modified) (1 diff)
-
tags/2.0.16/includes/default.php (modified) (5 diffs)
-
tags/2.0.16/includes/helper.php (modified) (1 diff)
-
tags/2.0.16/readme.txt (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/fiberadmin.php (modified) (1 diff)
-
trunk/includes/default.php (modified) (5 diffs)
-
trunk/includes/helper.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fiber-admin/tags/2.0.16/changelog.txt
r2857421 r2912732 1 1 == 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. 2 7 3 8 = 2.0.15 = -
fiber-admin/tags/2.0.16/fiberadmin.php
r2857421 r2912732 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 2.0.1 56 * Version: 2.0.16 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.0 -
fiber-admin/tags/2.0.16/includes/default.php
r2857421 r2912732 13 13 if(fiad_get_general_option('hide_wordpress_branding')){ 14 14 // 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); 16 16 17 17 // Remove "WordPress" in login title 18 add_filter('login_title', array($this, 'fiad_admin_title'));18 add_filter('login_title', [$this, 'fiad_admin_title']); 19 19 20 20 // 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']); 22 22 23 23 // Update dashboard title 24 add_action('admin_head', array($this, 'fiad_update_dashboard_name'));24 add_action('admin_head', [$this, 'fiad_update_dashboard_name']); 25 25 26 26 // 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']); 28 28 29 29 // 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']); 32 32 33 33 // Remove Lost your password link 34 add_filter('gettext', array($this, 'fiad_remove_lostpassword'));34 add_filter('gettext', [$this, 'fiad_remove_lostpassword']); 35 35 36 36 // 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']); 38 38 39 39 // 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')){ 43 41 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); 45 43 } 46 44 47 45 // 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); 49 47 50 48 // Remove Welcome Dashboard Widget … … 68 66 add_filter('revslider_meta_generator', '__return_empty_string'); // Revolution Slider 69 67 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 Logging71 add_action('wp_head', array($this, 'fiad_remove_meta_generators'), 1); // other plugins68 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 72 70 73 71 // 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']); 75 73 } 76 74 … … 96 94 97 95 public function fiad_admin_title($login_title){ 98 return str_replace( array(' ‹', ' — WordPress'), array(' ‹', ''), $login_title);96 return str_replace([' ‹', ' — WordPress'], [' ‹', ''], $login_title); 99 97 } 100 98 … … 152 150 // WPBakery Page Builder 153 151 if(class_exists('Vc_Manager')){ 154 remove_action('wp_head', array(visual_composer(), 'addMetaData'));152 remove_action('wp_head', [visual_composer(), 'addMetaData']); 155 153 } 156 154 … … 158 156 if(function_exists('icl_object_id')){ 159 157 global $sitepress; 160 remove_action('wp_head', array($sitepress, 'meta_generator_tag'));158 remove_action('wp_head', [$sitepress, 'meta_generator_tag']); 161 159 } 162 160 } -
fiber-admin/tags/2.0.16/includes/helper.php
r2608259 r2912732 98 98 } 99 99 } 100 101 if(!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 5 5 Tested up to: 6.0.1 6 6 Requires PHP: 7.0 7 Stable tag: 2.0.1 57 Stable tag: 2.0.16 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 == Changelog == 48 48 49 = 2.0.1 5=50 *Release Date - 31 January 2023*49 = 2.0.16 = 50 *Release Date - 16 May 2023* 51 51 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 1 1 == 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. 2 7 3 8 = 2.0.15 = -
fiber-admin/trunk/fiberadmin.php
r2857421 r2912732 4 4 * Plugin URI: https://wordpress.org/plugins/fiber-admin/ 5 5 * Description: 💈 Bring multiple customization features to make your own WordPress admin. 6 * Version: 2.0.1 56 * Version: 2.0.16 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.0 -
fiber-admin/trunk/includes/default.php
r2857421 r2912732 13 13 if(fiad_get_general_option('hide_wordpress_branding')){ 14 14 // 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); 16 16 17 17 // Remove "WordPress" in login title 18 add_filter('login_title', array($this, 'fiad_admin_title'));18 add_filter('login_title', [$this, 'fiad_admin_title']); 19 19 20 20 // 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']); 22 22 23 23 // Update dashboard title 24 add_action('admin_head', array($this, 'fiad_update_dashboard_name'));24 add_action('admin_head', [$this, 'fiad_update_dashboard_name']); 25 25 26 26 // 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']); 28 28 29 29 // 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']); 32 32 33 33 // Remove Lost your password link 34 add_filter('gettext', array($this, 'fiad_remove_lostpassword'));34 add_filter('gettext', [$this, 'fiad_remove_lostpassword']); 35 35 36 36 // 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']); 38 38 39 39 // 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')){ 43 41 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); 45 43 } 46 44 47 45 // 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); 49 47 50 48 // Remove Welcome Dashboard Widget … … 68 66 add_filter('revslider_meta_generator', '__return_empty_string'); // Revolution Slider 69 67 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 Logging71 add_action('wp_head', array($this, 'fiad_remove_meta_generators'), 1); // other plugins68 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 72 70 73 71 // 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']); 75 73 } 76 74 … … 96 94 97 95 public function fiad_admin_title($login_title){ 98 return str_replace( array(' ‹', ' — WordPress'), array(' ‹', ''), $login_title);96 return str_replace([' ‹', ' — WordPress'], [' ‹', ''], $login_title); 99 97 } 100 98 … … 152 150 // WPBakery Page Builder 153 151 if(class_exists('Vc_Manager')){ 154 remove_action('wp_head', array(visual_composer(), 'addMetaData'));152 remove_action('wp_head', [visual_composer(), 'addMetaData']); 155 153 } 156 154 … … 158 156 if(function_exists('icl_object_id')){ 159 157 global $sitepress; 160 remove_action('wp_head', array($sitepress, 'meta_generator_tag'));158 remove_action('wp_head', [$sitepress, 'meta_generator_tag']); 161 159 } 162 160 } -
fiber-admin/trunk/includes/helper.php
r2608259 r2912732 98 98 } 99 99 } 100 101 if(!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 5 5 Tested up to: 6.0.1 6 6 Requires PHP: 7.0 7 Stable tag: 2.0.1 57 Stable tag: 2.0.16 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 47 47 == Changelog == 48 48 49 = 2.0.1 5=50 *Release Date - 31 January 2023*49 = 2.0.16 = 50 *Release Date - 16 May 2023* 51 51 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.