Changeset 3021006
- Timestamp:
- 01/12/2024 01:19:20 PM (14 months ago)
- Location:
- wp-tweaks
- Files:
-
- 18 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
wp-tweaks/tags/2.3.3/changelog.txt
r3020640 r3021006 1 = 2.3.3 - 2024-01-12 = 2 3 - More fixes related to admin notices. Sorry. 4 1 5 = 2.3.2 - 2024-01-11 = 2 6 -
wp-tweaks/tags/2.3.3/includes/debug-warning.php
r2968952 r3021006 13 13 $save_queries = defined( 'SAVEQUERIES' ) ? SAVEQUERIES : false; 14 14 if ( $wp_debug || $save_queries ) { 15 $title = esc_html__( 'Caution!', 'wp-tweaks' );15 $title = '<span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Caution!', 'wp-tweaks' ); 16 16 $message = esc_html__( 'The following WordPress constants are enabled and it is highly recommended that you disable them in production environments.', 'wp-tweaks' ); 17 17 $content = "<strong>$title</strong><br>$message<br>"; … … 29 29 $value = defined( $name ) ? constant( $name ) : null; 30 30 if ( ! empty( $value ) ) { 31 $content .= '<span class=" wpt_constant">' . $name . "</span>";31 $content .= '<span class="constant-var">' . $name . "</span>"; 32 32 } 33 33 } 34 34 ?> 35 35 <style> 36 # message-wp-tweaks {36 #setting-error-wp-tweaks { 37 37 border-left-color: #fab005; 38 38 } 39 .wpt_constant { 39 #setting-error-wp-tweaks .dashicons { 40 position: relative; 41 top: -2px; 42 color: #e67700; 43 } 44 .acf-admin-page #setting-error-wp-tweaks .dashicons { 45 display: none; 46 } 47 #setting-error-wp-tweaks .constant-var { 40 48 font-family: monospace; 41 49 color: #e67700; … … 50 58 } 51 59 </style> 52 <div id=' message-wp-tweaks' class='notice notice-warning'><p><?php echo $content?></p></div>60 <div id='setting-error-wp-tweaks' class='notice notice-warning'><p><?php echo wp_kses_post( $content ) ?></p></div> 53 61 <?php 54 62 } -
wp-tweaks/tags/2.3.3/includes/tweaks/hide-admin-notices.php
r3020640 r3021006 9 9 function wp_tweaks_hide_admin_notices () { 10 10 global $pagenow; 11 $ignored_pages = [ 'plugins.php' ]; 11 $ignored_pages = apply_filters( 12 'wp_tweaks_hide_admin_notices_ignored_pages', 13 [ 'plugins.php', 'site-health.php' ] 14 ); 15 12 16 if ( in_array( $pagenow, $ignored_pages, true ) ) return; 13 17 14 $ display = apply_filters(18 $css_display = apply_filters( 15 19 'wp_tweaks_hide_admin_notices_css_display', 16 'block !important'20 'block' 17 21 ); 18 22 19 23 ob_start(); ?> 20 24 21 <style> 22 /* Notices with this selectors, will always appears */ 23 #setting-error-settings_updated, 24 #lost-connection-notice, 25 .notice-success.settings-error, 26 .notice.error, 27 .notice.updated, 28 .notice.update-message, 29 .notice[id^="message"], 30 .notice:not(.hidden) { 31 display: <?php echo esc_html( $display ); ?>; 25 <style id="wp_tweaks_hide_admin_notices"> 26 .notice:not(.inline) { 27 display: none; 32 28 } 33 29 34 #wpwrap .notice.hidden { 35 display: none!important; 30 #wpwrap .wrap .updated, 31 #wpwrap .wrap .notice.update-message, 32 #wpwrap .wrap .notice[id="message"], 33 #wpwrap .wrap .notice[id="message1"], 34 #wpwrap .wrap .notice[id="message2"], 35 #wpwrap .wrap .notice[id="message3"], 36 #wpwrap .wrap .notice[id="message4"], 37 #wpwrap .wrap .notice[id="message5"], 38 #wpwrap .wrap .notice[id="message6"], 39 #wpwrap .wrap .notice[id="message7"], 40 #wpwrap .wrap .notice[id="message8"], 41 #wpwrap .wrap .notice[id^="setting-error"] { 42 display: <?= esc_html( $css_display ) ?>; 36 43 } 37 44 </style> … … 42 49 ); 43 50 } 44 -
wp-tweaks/tags/2.3.3/readme.txt
r3020640 r3021006 6 6 Tested up to: 6.4 7 7 Requires PHP: 7.4 8 Stable tag: 2.3. 28 Stable tag: 2.3.3 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 56 56 == Changelog == 57 57 58 = 2.3.3 - 2024-01-12 = 59 60 - More fixes related to admin notices. Sorry. 61 58 62 = 2.3.2 - 2024-01-11 = 59 63 -
wp-tweaks/tags/2.3.3/vendor/autoload.php
r3020640 r3021006 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 084eff57f5dd264cc2392a2925685598::getLoader();25 return ComposerAutoloaderInitce33515a3467a274861527e5171f863c::getLoader(); -
wp-tweaks/tags/2.3.3/vendor/composer/autoload_real.php
r3020640 r3021006 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 084eff57f5dd264cc2392a29256855985 class ComposerAutoloaderInitce33515a3467a274861527e5171f863c 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 084eff57f5dd264cc2392a2925685598', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitce33515a3467a274861527e5171f863c', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 084eff57f5dd264cc2392a2925685598', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitce33515a3467a274861527e5171f863c', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 084eff57f5dd264cc2392a2925685598::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitce33515a3467a274861527e5171f863c::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
wp-tweaks/tags/2.3.3/vendor/composer/autoload_static.php
r3020640 r3021006 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 084eff57f5dd264cc2392a29256855987 class ComposerStaticInitce33515a3467a274861527e5171f863c 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 37 37 { 38 38 return \Closure::bind(function () use ($loader) { 39 $loader->prefixLengthsPsr4 = ComposerStaticInit 084eff57f5dd264cc2392a2925685598::$prefixLengthsPsr4;40 $loader->prefixDirsPsr4 = ComposerStaticInit 084eff57f5dd264cc2392a2925685598::$prefixDirsPsr4;41 $loader->classMap = ComposerStaticInit 084eff57f5dd264cc2392a2925685598::$classMap;39 $loader->prefixLengthsPsr4 = ComposerStaticInitce33515a3467a274861527e5171f863c::$prefixLengthsPsr4; 40 $loader->prefixDirsPsr4 = ComposerStaticInitce33515a3467a274861527e5171f863c::$prefixDirsPsr4; 41 $loader->classMap = ComposerStaticInitce33515a3467a274861527e5171f863c::$classMap; 42 42 43 43 }, null, ClassLoader::class); -
wp-tweaks/tags/2.3.3/vendor/composer/installed.php
r3020640 r3021006 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 897aecb537d47c838c3184f3aa1762f30bc0ba79',6 'reference' => 'b2da1922c8aadacaf9d59300e2dcb05d58fc0746', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 897aecb537d47c838c3184f3aa1762f30bc0ba79',16 'reference' => 'b2da1922c8aadacaf9d59300e2dcb05d58fc0746', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
wp-tweaks/tags/2.3.3/wp-tweaks.php
r3020640 r3021006 4 4 * Plugin URI: https://github.com/luizbills/wp-tweaks 5 5 * Description: Several opinionated WordPress tweaks focused in security and performance. 6 * Version: 2.3. 26 * Version: 2.3.3 7 7 * Requires at least: 4.0 8 8 * Requires PHP: 7.4 -
wp-tweaks/trunk/changelog.txt
r3020640 r3021006 1 = 2.3.3 - 2024-01-12 = 2 3 - More fixes related to admin notices. Sorry. 4 1 5 = 2.3.2 - 2024-01-11 = 2 6 -
wp-tweaks/trunk/includes/debug-warning.php
r2968952 r3021006 13 13 $save_queries = defined( 'SAVEQUERIES' ) ? SAVEQUERIES : false; 14 14 if ( $wp_debug || $save_queries ) { 15 $title = esc_html__( 'Caution!', 'wp-tweaks' );15 $title = '<span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Caution!', 'wp-tweaks' ); 16 16 $message = esc_html__( 'The following WordPress constants are enabled and it is highly recommended that you disable them in production environments.', 'wp-tweaks' ); 17 17 $content = "<strong>$title</strong><br>$message<br>"; … … 29 29 $value = defined( $name ) ? constant( $name ) : null; 30 30 if ( ! empty( $value ) ) { 31 $content .= '<span class=" wpt_constant">' . $name . "</span>";31 $content .= '<span class="constant-var">' . $name . "</span>"; 32 32 } 33 33 } 34 34 ?> 35 35 <style> 36 # message-wp-tweaks {36 #setting-error-wp-tweaks { 37 37 border-left-color: #fab005; 38 38 } 39 .wpt_constant { 39 #setting-error-wp-tweaks .dashicons { 40 position: relative; 41 top: -2px; 42 color: #e67700; 43 } 44 .acf-admin-page #setting-error-wp-tweaks .dashicons { 45 display: none; 46 } 47 #setting-error-wp-tweaks .constant-var { 40 48 font-family: monospace; 41 49 color: #e67700; … … 50 58 } 51 59 </style> 52 <div id=' message-wp-tweaks' class='notice notice-warning'><p><?php echo $content?></p></div>60 <div id='setting-error-wp-tweaks' class='notice notice-warning'><p><?php echo wp_kses_post( $content ) ?></p></div> 53 61 <?php 54 62 } -
wp-tweaks/trunk/includes/tweaks/hide-admin-notices.php
r3020640 r3021006 9 9 function wp_tweaks_hide_admin_notices () { 10 10 global $pagenow; 11 $ignored_pages = [ 'plugins.php' ]; 11 $ignored_pages = apply_filters( 12 'wp_tweaks_hide_admin_notices_ignored_pages', 13 [ 'plugins.php', 'site-health.php' ] 14 ); 15 12 16 if ( in_array( $pagenow, $ignored_pages, true ) ) return; 13 17 14 $ display = apply_filters(18 $css_display = apply_filters( 15 19 'wp_tweaks_hide_admin_notices_css_display', 16 'block !important'20 'block' 17 21 ); 18 22 19 23 ob_start(); ?> 20 24 21 <style> 22 /* Notices with this selectors, will always appears */ 23 #setting-error-settings_updated, 24 #lost-connection-notice, 25 .notice-success.settings-error, 26 .notice.error, 27 .notice.updated, 28 .notice.update-message, 29 .notice[id^="message"], 30 .notice:not(.hidden) { 31 display: <?php echo esc_html( $display ); ?>; 25 <style id="wp_tweaks_hide_admin_notices"> 26 .notice:not(.inline) { 27 display: none; 32 28 } 33 29 34 #wpwrap .notice.hidden { 35 display: none!important; 30 #wpwrap .wrap .updated, 31 #wpwrap .wrap .notice.update-message, 32 #wpwrap .wrap .notice[id="message"], 33 #wpwrap .wrap .notice[id="message1"], 34 #wpwrap .wrap .notice[id="message2"], 35 #wpwrap .wrap .notice[id="message3"], 36 #wpwrap .wrap .notice[id="message4"], 37 #wpwrap .wrap .notice[id="message5"], 38 #wpwrap .wrap .notice[id="message6"], 39 #wpwrap .wrap .notice[id="message7"], 40 #wpwrap .wrap .notice[id="message8"], 41 #wpwrap .wrap .notice[id^="setting-error"] { 42 display: <?= esc_html( $css_display ) ?>; 36 43 } 37 44 </style> … … 42 49 ); 43 50 } 44 -
wp-tweaks/trunk/readme.txt
r3020640 r3021006 6 6 Tested up to: 6.4 7 7 Requires PHP: 7.4 8 Stable tag: 2.3. 28 Stable tag: 2.3.3 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 56 56 == Changelog == 57 57 58 = 2.3.3 - 2024-01-12 = 59 60 - More fixes related to admin notices. Sorry. 61 58 62 = 2.3.2 - 2024-01-11 = 59 63 -
wp-tweaks/trunk/vendor/autoload.php
r3020640 r3021006 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 084eff57f5dd264cc2392a2925685598::getLoader();25 return ComposerAutoloaderInitce33515a3467a274861527e5171f863c::getLoader(); -
wp-tweaks/trunk/vendor/composer/autoload_real.php
r3020640 r3021006 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 084eff57f5dd264cc2392a29256855985 class ComposerAutoloaderInitce33515a3467a274861527e5171f863c 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 084eff57f5dd264cc2392a2925685598', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitce33515a3467a274861527e5171f863c', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 084eff57f5dd264cc2392a2925685598', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitce33515a3467a274861527e5171f863c', 'loadClassLoader')); 30 30 31 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit 084eff57f5dd264cc2392a2925685598::getInitializer($loader));32 call_user_func(\Composer\Autoload\ComposerStaticInitce33515a3467a274861527e5171f863c::getInitializer($loader)); 33 33 34 34 $loader->register(true); -
wp-tweaks/trunk/vendor/composer/autoload_static.php
r3020640 r3021006 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 084eff57f5dd264cc2392a29256855987 class ComposerStaticInitce33515a3467a274861527e5171f863c 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 37 37 { 38 38 return \Closure::bind(function () use ($loader) { 39 $loader->prefixLengthsPsr4 = ComposerStaticInit 084eff57f5dd264cc2392a2925685598::$prefixLengthsPsr4;40 $loader->prefixDirsPsr4 = ComposerStaticInit 084eff57f5dd264cc2392a2925685598::$prefixDirsPsr4;41 $loader->classMap = ComposerStaticInit 084eff57f5dd264cc2392a2925685598::$classMap;39 $loader->prefixLengthsPsr4 = ComposerStaticInitce33515a3467a274861527e5171f863c::$prefixLengthsPsr4; 40 $loader->prefixDirsPsr4 = ComposerStaticInitce33515a3467a274861527e5171f863c::$prefixDirsPsr4; 41 $loader->classMap = ComposerStaticInitce33515a3467a274861527e5171f863c::$classMap; 42 42 43 43 }, null, ClassLoader::class); -
wp-tweaks/trunk/vendor/composer/installed.php
r3020640 r3021006 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 897aecb537d47c838c3184f3aa1762f30bc0ba79',6 'reference' => 'b2da1922c8aadacaf9d59300e2dcb05d58fc0746', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' 897aecb537d47c838c3184f3aa1762f30bc0ba79',16 'reference' => 'b2da1922c8aadacaf9d59300e2dcb05d58fc0746', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
wp-tweaks/trunk/wp-tweaks.php
r3020640 r3021006 4 4 * Plugin URI: https://github.com/luizbills/wp-tweaks 5 5 * Description: Several opinionated WordPress tweaks focused in security and performance. 6 * Version: 2.3. 26 * Version: 2.3.3 7 7 * Requires at least: 4.0 8 8 * Requires PHP: 7.4
Note: See TracChangeset
for help on using the changeset viewer.