Changeset 3140709
- Timestamp:
- 08/24/2024 09:57:26 AM (19 months ago)
- Location:
- wp-multitasking/trunk
- Files:
-
- 4 edited
-
includes/pagespeed-insights.php (modified) (4 diffs)
-
includes/psi/convert_webp.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-multitasking.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-multitasking/trunk/includes/pagespeed-insights.php
r3139917 r3140709 22 22 if ($wprocket_css_inline == 1) { 23 23 add_action('wp_head', array(&$this, 'psi_inline_css_from_wp_rocket'), 999); 24 add_filter('rocket_css_url', array(&$this, 'psi_remove_rocket_css_url'));24 // add_filter('rocket_css_url', array(&$this, 'psi_remove_rocket_css_url'));// moved to line 322 25 25 } 26 26 … … 107 107 $alt = $that->name; 108 108 } 109 $image_webp_url = $src . '.webp'; 109 $finfo = pathinfo($src); 110 $image_webp_url = ($finfo['extension'] == 'webp') ? $src : $src . '.webp'; 110 111 $custom_html = '<img width="'.esc_attr($width).'" height="'.esc_attr($height).'" src="' . esc_url($src) . '" srcset="' . esc_url($image_webp_url) . '" alt="' . esc_attr($alt) . '" class="' . esc_attr( $custom_class ) . '" />'; 111 112 … … 141 142 } 142 143 $image_url = !empty($file_urls[$size]) ? $file_urls[$size] : $file_urls['full']; 143 $image_webp_url = $image_url . '.webp'; // Append .webp to the original URL 144 $finfo = pathinfo($image_url); 145 $image_webp_url = ($finfo['extension'] == 'webp') ? $image_url : $image_url . '.webp'; // Append .webp to the original URL 144 146 145 147 // Get the image title … … 316 318 // Chèn nội dung vào inline CSS 317 319 echo '<style type="text/css" id="wp-minify-css">' . $css_content . '</style>'; 320 321 // Replace default css cache 322 add_filter('rocket_css_url', array(&$this, 'psi_remove_rocket_css_url')); 318 323 } 319 324 } -
wp-multitasking/trunk/includes/psi/convert_webp.php
r3137020 r3140709 28 28 $hasWebp = true; 29 29 ?> 30 <li><strong><?php echo esc_html($size); ?>:</strong> <?php echo esc_html($path); ?> .webp=> <strong style="color: green;">OK</strong></li>30 <li><strong><?php echo esc_html($size); ?>:</strong> <?php echo esc_html($path); ?><?php echo ($finfo['extension'] !== 'webp') ? '.webp' : ''; ?> => <strong style="color: green;">OK</strong></li> 31 31 <?php else: ?> 32 <li><strong><?php echo esc_html($size); ?>:</strong> <?php echo esc_html($path); ?> .webp=> <strong style="color: red;">Fail</strong></li>32 <li><strong><?php echo esc_html($size); ?>:</strong> <?php echo esc_html($path); ?><?php echo ($finfo['extension'] !== 'webp') ? '.webp' : ''; ?> => <strong style="color: red;">Fail</strong></li> 33 33 <?php endif; ?> 34 34 <?php -
wp-multitasking/trunk/readme.txt
r3139917 r3140709 5 5 Requires at least: 2.1.0 6 6 Tested up to: 6.6.1 7 Stable tag: 0.1.1 67 Stable tag: 0.1.17 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 86 86 == Changelog == 87 87 88 = 0.1.17 = 89 * Fix display images 90 * Fix cache css 91 88 92 = 0.1.16 = 89 93 * Fix convert WebP -
wp-multitasking/trunk/wp-multitasking.php
r3139917 r3140709 4 4 Plugin URI: http://wordpress.org/plugins/wp-multitasking/ 5 5 Description: This plugin is synthetic utility for your WordPress site: Shortcode, BBCode, AddQuickTag, Exit pop-up, Welcome pop-up, Remove base slug, SMTP, Classic Editor, Classic widgets... 6 Version: 0.1.1 66 Version: 0.1.17 7 7 Author: thangnv27 8 8 Author URI: https://ngothang.me/ … … 22 22 23 23 if ( ! defined( 'WPMT_VER' ) ) 24 define( 'WPMT_VER', '0.1.1 6' );24 define( 'WPMT_VER', '0.1.17' ); 25 25 26 26 add_action('admin_menu', 'wpmt_add_settings_page');
Note: See TracChangeset
for help on using the changeset viewer.