Plugin Directory

Changeset 3140709


Ignore:
Timestamp:
08/24/2024 09:57:26 AM (19 months ago)
Author:
thangnv27
Message:

0.1.17

  • Fix display images
  • Fix cache css
Location:
wp-multitasking/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-multitasking/trunk/includes/pagespeed-insights.php

    r3139917 r3140709  
    2222      if ($wprocket_css_inline == 1) {
    2323        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
    2525      }
    2626
     
    107107      $alt = $that->name;
    108108    }
    109     $image_webp_url = $src . '.webp';
     109    $finfo = pathinfo($src);
     110    $image_webp_url = ($finfo['extension'] == 'webp') ? $src : $src . '.webp';
    110111    $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 ) . '" />';
    111112
     
    141142    }
    142143    $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
    144146 
    145147    // Get the image title
     
    316318      // Chèn nội dung vào inline CSS
    317319      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'));
    318323    }
    319324  }
  • wp-multitasking/trunk/includes/psi/convert_webp.php

    r3137020 r3140709  
    2828              $hasWebp = true;
    2929        ?>
    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>
    3131            <?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>
    3333            <?php endif; ?>
    3434        <?php
  • wp-multitasking/trunk/readme.txt

    r3139917 r3140709  
    55Requires at least: 2.1.0
    66Tested up to: 6.6.1
    7 Stable tag: 0.1.16
     7Stable tag: 0.1.17
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8686== Changelog ==
    8787
     88= 0.1.17 =
     89* Fix display images
     90* Fix cache css
     91
    8892= 0.1.16 =
    8993* Fix convert WebP
  • wp-multitasking/trunk/wp-multitasking.php

    r3139917 r3140709  
    44Plugin URI:  http://wordpress.org/plugins/wp-multitasking/
    55Description: 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.16
     6Version:     0.1.17
    77Author:      thangnv27
    88Author URI:  https://ngothang.me/
     
    2222   
    2323if ( ! defined( 'WPMT_VER' ) )
    24     define( 'WPMT_VER', '0.1.16' );
     24    define( 'WPMT_VER', '0.1.17' );
    2525
    2626add_action('admin_menu', 'wpmt_add_settings_page');
Note: See TracChangeset for help on using the changeset viewer.