Plugin Directory

Changeset 2639582


Ignore:
Timestamp:
12/05/2021 12:24:33 AM (4 years ago)
Author:
asadkn
Message:

Update to version 1.1.6 from GitHub

Location:
debloat
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • debloat/tags/1.1.6/debloat.php

    r2622044 r2639582  
    77 * Plugin Name:       Debloat
    88 * Description:       Remove Unused CSS, Optimize CSS, Optimize JS and speed up your site.
    9  * Version:           1.1.5
     9 * Version:           1.1.6
    1010 * Author:            asadkn
    1111 * Author URI:        https://profiles.wordpress.org/asadkn/
  • debloat/tags/1.1.6/inc/optimize-js/optimize-js.php

    r2586361 r2639582  
    151151            if ($script) {
    152152                $script->deps = $this->enqueues[$script->id]->deps ?? [];
    153                 $this->scripts[$script->id] = $script;
     153
     154                // Note: There can be multiple scripts with same URL or id. So we don't use $script->id.
     155                $this->scripts[] = $script;
    154156
    155157                // Inline script has jQuery content? Ensure dependency.
  • debloat/tags/1.1.6/inc/plugin.php

    r2622044 r2639582  
    2323     * Plugin version
    2424     */
    25     const VERSION = '1.1.5';
     25    const VERSION = '1.1.6';
    2626
    2727    public static $instance;
  • debloat/tags/1.1.6/readme.txt

    r2622044 r2639582  
    55Tested up to: 5.8
    66Requires PHP: 7.1
    7 Stable tag: 1.1.5
     7Stable tag: 1.1.6
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4343== Changelog ==
    4444
     45= 1.1.6 =
     46* Fixed: Delay/defer only replacing one instance with duplicated <script> tags of the same URL and id.
     47
    4548= 1.1.5 =
    4649* Added: New filter debloat/should_process.
  • debloat/tags/1.1.6/vendor/autoload.php

    r2622044 r2639582  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit76d03b94885396968efec5bd941fe925::getLoader();
     7return ComposerAutoloaderInite072c566a9c557109e61f0f1e4fa8c67::getLoader();
  • debloat/tags/1.1.6/vendor/composer/InstalledVersions.php

    r2622044 r2639582  
    2525class InstalledVersions
    2626{
     27    /**
     28     * @var mixed[]|null
     29     * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     30     */
    2731    private static $installed;
     32
     33    /**
     34     * @var bool|null
     35     */
    2836    private static $canGetVendors;
     37
     38    /**
     39     * @var array[]
     40     * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     41     */
    2942    private static $installedByVendor = array();
    3043
  • debloat/tags/1.1.6/vendor/composer/autoload_real.php

    r2622044 r2639582  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit76d03b94885396968efec5bd941fe925
     5class ComposerAutoloaderInite072c566a9c557109e61f0f1e4fa8c67
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit76d03b94885396968efec5bd941fe925', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInite072c566a9c557109e61f0f1e4fa8c67', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit76d03b94885396968efec5bd941fe925', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInite072c566a9c557109e61f0f1e4fa8c67', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit76d03b94885396968efec5bd941fe925::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • debloat/tags/1.1.6/vendor/composer/autoload_static.php

    r2622044 r2639582  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit76d03b94885396968efec5bd941fe925
     7class ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    8989    {
    9090        return \Closure::bind(function () use ($loader) {
    91             $loader->prefixLengthsPsr4 = ComposerStaticInit76d03b94885396968efec5bd941fe925::$prefixLengthsPsr4;
    92             $loader->prefixDirsPsr4 = ComposerStaticInit76d03b94885396968efec5bd941fe925::$prefixDirsPsr4;
    93             $loader->classMap = ComposerStaticInit76d03b94885396968efec5bd941fe925::$classMap;
     91            $loader->prefixLengthsPsr4 = ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67::$prefixLengthsPsr4;
     92            $loader->prefixDirsPsr4 = ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67::$prefixDirsPsr4;
     93            $loader->classMap = ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67::$classMap;
    9494
    9595        }, null, ClassLoader::class);
  • debloat/tags/1.1.6/vendor/composer/installed.php

    r2622044 r2639582  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '1.1.5',
    4         'version' => '1.1.5.0',
     3        'pretty_version' => '1.1.6',
     4        'version' => '1.1.6.0',
    55        'type' => 'library',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'a3504880beb7a5a1dac86076f854fbab9ea59c5c',
     8        'reference' => '51ecd33cdfb221e9defa42dcf974f831994dd97f',
    99        'name' => '__root__',
    1010        'dev' => true,
     
    1212    'versions' => array(
    1313        '__root__' => array(
    14             'pretty_version' => '1.1.5',
    15             'version' => '1.1.5.0',
     14            'pretty_version' => '1.1.6',
     15            'version' => '1.1.6.0',
    1616            'type' => 'library',
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => 'a3504880beb7a5a1dac86076f854fbab9ea59c5c',
     19            'reference' => '51ecd33cdfb221e9defa42dcf974f831994dd97f',
    2020            'dev_requirement' => false,
    2121        ),
  • debloat/trunk/debloat.php

    r2622044 r2639582  
    77 * Plugin Name:       Debloat
    88 * Description:       Remove Unused CSS, Optimize CSS, Optimize JS and speed up your site.
    9  * Version:           1.1.5
     9 * Version:           1.1.6
    1010 * Author:            asadkn
    1111 * Author URI:        https://profiles.wordpress.org/asadkn/
  • debloat/trunk/inc/optimize-js/optimize-js.php

    r2586361 r2639582  
    151151            if ($script) {
    152152                $script->deps = $this->enqueues[$script->id]->deps ?? [];
    153                 $this->scripts[$script->id] = $script;
     153
     154                // Note: There can be multiple scripts with same URL or id. So we don't use $script->id.
     155                $this->scripts[] = $script;
    154156
    155157                // Inline script has jQuery content? Ensure dependency.
  • debloat/trunk/inc/plugin.php

    r2622044 r2639582  
    2323     * Plugin version
    2424     */
    25     const VERSION = '1.1.5';
     25    const VERSION = '1.1.6';
    2626
    2727    public static $instance;
  • debloat/trunk/readme.txt

    r2622044 r2639582  
    55Tested up to: 5.8
    66Requires PHP: 7.1
    7 Stable tag: 1.1.5
     7Stable tag: 1.1.6
    88License: GPLv2
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    4343== Changelog ==
    4444
     45= 1.1.6 =
     46* Fixed: Delay/defer only replacing one instance with duplicated <script> tags of the same URL and id.
     47
    4548= 1.1.5 =
    4649* Added: New filter debloat/should_process.
  • debloat/trunk/vendor/autoload.php

    r2622044 r2639582  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit76d03b94885396968efec5bd941fe925::getLoader();
     7return ComposerAutoloaderInite072c566a9c557109e61f0f1e4fa8c67::getLoader();
  • debloat/trunk/vendor/composer/InstalledVersions.php

    r2622044 r2639582  
    2525class InstalledVersions
    2626{
     27    /**
     28     * @var mixed[]|null
     29     * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     30     */
    2731    private static $installed;
     32
     33    /**
     34     * @var bool|null
     35     */
    2836    private static $canGetVendors;
     37
     38    /**
     39     * @var array[]
     40     * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     41     */
    2942    private static $installedByVendor = array();
    3043
  • debloat/trunk/vendor/composer/autoload_real.php

    r2622044 r2639582  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit76d03b94885396968efec5bd941fe925
     5class ComposerAutoloaderInite072c566a9c557109e61f0f1e4fa8c67
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit76d03b94885396968efec5bd941fe925', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInite072c566a9c557109e61f0f1e4fa8c67', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit76d03b94885396968efec5bd941fe925', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInite072c566a9c557109e61f0f1e4fa8c67', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit76d03b94885396968efec5bd941fe925::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • debloat/trunk/vendor/composer/autoload_static.php

    r2622044 r2639582  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit76d03b94885396968efec5bd941fe925
     7class ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    8989    {
    9090        return \Closure::bind(function () use ($loader) {
    91             $loader->prefixLengthsPsr4 = ComposerStaticInit76d03b94885396968efec5bd941fe925::$prefixLengthsPsr4;
    92             $loader->prefixDirsPsr4 = ComposerStaticInit76d03b94885396968efec5bd941fe925::$prefixDirsPsr4;
    93             $loader->classMap = ComposerStaticInit76d03b94885396968efec5bd941fe925::$classMap;
     91            $loader->prefixLengthsPsr4 = ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67::$prefixLengthsPsr4;
     92            $loader->prefixDirsPsr4 = ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67::$prefixDirsPsr4;
     93            $loader->classMap = ComposerStaticInite072c566a9c557109e61f0f1e4fa8c67::$classMap;
    9494
    9595        }, null, ClassLoader::class);
  • debloat/trunk/vendor/composer/installed.php

    r2622044 r2639582  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => '1.1.5',
    4         'version' => '1.1.5.0',
     3        'pretty_version' => '1.1.6',
     4        'version' => '1.1.6.0',
    55        'type' => 'library',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'a3504880beb7a5a1dac86076f854fbab9ea59c5c',
     8        'reference' => '51ecd33cdfb221e9defa42dcf974f831994dd97f',
    99        'name' => '__root__',
    1010        'dev' => true,
     
    1212    'versions' => array(
    1313        '__root__' => array(
    14             'pretty_version' => '1.1.5',
    15             'version' => '1.1.5.0',
     14            'pretty_version' => '1.1.6',
     15            'version' => '1.1.6.0',
    1616            'type' => 'library',
    1717            'install_path' => __DIR__ . '/../../',
    1818            'aliases' => array(),
    19             'reference' => 'a3504880beb7a5a1dac86076f854fbab9ea59c5c',
     19            'reference' => '51ecd33cdfb221e9defa42dcf974f831994dd97f',
    2020            'dev_requirement' => false,
    2121        ),
Note: See TracChangeset for help on using the changeset viewer.