Plugin Directory

Changeset 3086485


Ignore:
Timestamp:
05/14/2024 11:55:25 AM (23 months ago)
Author:
ilovepdf
Message:

Update to version 2.1.1 from GitHub

Location:
ilovepdf
Files:
2 added
24 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ilovepdf/tags/2.1.1/README.md

    r3078801 r3086485  
    11=== PDF Compressor & Watermark - iLovePDF ===
    22Plugin Name: Image Compressor & Optimizer - iLovePDF
    3 Version: 2.1.0
     3Version: 2.1.1
    44Author: iLovePDF
    55Author URI: https://www.ilovepdf.com/
     
    77Tags: compress, watermark, optimize, performance, pdf optimizer
    88Requires at least: 5.3
    9 Tested up to: 6.5.2
    10 Stable tag: 2.1.0
     9Tested up to: 6.5.3
     10Stable tag: 2.1.1
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
  • ilovepdf/tags/2.1.1/README.txt

    r3078801 r3086485  
    11=== PDF Compressor & Watermark - iLovePDF ===
    22Plugin Name: Image Compressor & Optimizer - iLovePDF
    3 Version: 2.1.0
     3Version: 2.1.1
    44Author: iLovePDF
    55Author URI: https://www.ilovepdf.com/
     
    77Tags: compress, watermark, optimize, performance, pdf optimizer
    88Requires at least: 5.3
    9 Tested up to: 6.5.2
    10 Stable tag: 2.1.0
     9Tested up to: 6.5.3
     10Stable tag: 2.1.1
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    8282
    8383== Changelog ==
     84
     85== 2.1.1 ==
     86Improved
     87* Update Libraries.
     88
     89Fixed
     90* Fixed an issue when activating the plugin for the first time. Default settings now load correctly.
     91* Library was included internally. This will improve file loading and possible CDN blocking in some countries.
    8492
    8593== 2.1.0 ==
  • ilovepdf/tags/2.1.1/admin/Ilove_Pdf_Admin.php

    r3078801 r3086485  
    107107
    108108        if ( ( 'upload.php' === $pagenow || 'options-general.php' === $pagenow || 'media-new.php' === $pagenow || 'post.php' === $pagenow ) && get_current_screen()->post_type !== 'product' ) {
    109             wp_enqueue_script( 'ilove-pdf-admin', plugins_url( '/assets/js/main.min.js', __DIR__ ), array( 'wp-color-picker', 'sweetalert-ilovepdf' ), '1.0.0', true );
    110             wp_enqueue_script( 'sweetalert-ilovepdf', 'https://cdn.jsdelivr.net/npm/sweetalert2@11', array(), '11.10', true );
     109            wp_enqueue_script( 'ilove-pdf-admin', plugins_url( '/assets/js/main.min.js', __DIR__ ), array( 'wp-color-picker', 'sweetalert-js-ilovepdf' ), '1.0.0', true );
     110            wp_enqueue_script( 'sweetalert-js-ilovepdf', plugins_url( '/assets/js/sweetalert2.all.min.js', __DIR__ ), array(), '11.11.0', true );
    111111        }
    112112    }
  • ilovepdf/tags/2.1.1/ilove-pdf.php

    r3078801 r3086485  
    1616 * Plugin URI:        https://developer.ilovepdf.com/
    1717 * Description:       Compress your PDF files and Stamp Images or text into PDF files. This is the Official iLovePDF plugin for WordPress. You can optimize all your PDF and stamp them automatically as you do in ilovepdf.com.
    18  * Version:           2.1.0
     18 * Version:           2.1.1
    1919 * Requires at least: 5.3
    2020 * Requires PHP:      7.4
  • ilovepdf/tags/2.1.1/includes/Ilove_Pdf.php

    r3078801 r3086485  
    7575
    7676        $this->plugin_name = 'ilove-pdf';
    77         $this->version     = 'wp.2.1.0';
     77        $this->version     = 'wp.2.1.1';
    7878
    7979        $this->load_dependencies();
  • ilovepdf/tags/2.1.1/includes/Ilove_Pdf_Activator.php

    r3078801 r3086485  
    5353        add_option( 'ilovepdf_initial_pdf_files_size', $initial_pdf_size );
    5454
    55         if ( get_option( 'ilovepdf_wordpress_id' ) === null ) {
     55        if ( get_option( 'ilovepdf_wordpress_id' ) === false ) {
    5656            add_option( 'ilovepdf_wordpress_id', md5( get_option( 'siteurl' ) . get_option( 'admin_email' ) ) );
    5757        }
    5858
    5959        self::set_default_values_watermark_settings();
     60        self::set_default_values_compress_settings();
    6061        self::set_default_values_general_settings();
    6162    }
     
    7071    public static function set_default_values_watermark_settings() {
    7172
    72         $get_options = get_option( 'ilove_pdf_display_settings_format_watermark' );
     73        $get_format_options = get_option( 'ilove_pdf_display_settings_format_watermark' );
     74        $get_gral_options   = get_option( 'ilove_pdf_display_settings_watermark' );
    7375
    74         if ( ! is_array( $get_options ) ) {
    75             $get_options = array();
     76        if ( ! is_array( $get_format_options ) ) {
     77            $get_format_options = array();
    7678        }
    7779
    78         if ( ! isset( $get_options['ilove_pdf_format_watermark_vertical'] ) ) {
    79             $get_options['ilove_pdf_format_watermark_vertical'] = '2';
     80        if ( ! is_array( $get_gral_options ) ) {
     81            $get_gral_options = array();
     82        }
     83
     84        if ( ! isset( $get_gral_options['ilove_pdf_watermark_active'] ) ) {
     85            $get_gral_options['ilove_pdf_watermark_active'] = 1;
    8086        }
    8187
    82         if ( ! isset( $get_options['ilove_pdf_format_watermark_horizontal'] ) ) {
    83             $get_options['ilove_pdf_format_watermark_horizontal'] = '2';
     88        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_mode'] ) ) {
     89            $get_format_options['ilove_pdf_format_watermark_mode'] = 0;
    8490        }
    8591
    86         if ( ! isset( $get_options['ilove_pdf_format_watermark_text'] ) ) {
    87             $get_options['ilove_pdf_format_watermark_text'] = get_bloginfo();
     92        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_vertical'] ) ) {
     93            $get_format_options['ilove_pdf_format_watermark_vertical'] = '2';
    8894        }
    8995
    90         if ( ! isset( $get_options['ilove_pdf_format_watermark_text_size'] ) ) {
    91             $get_options['ilove_pdf_format_watermark_text_size'] = '22';
     96        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_horizontal'] ) ) {
     97            $get_format_options['ilove_pdf_format_watermark_horizontal'] = '2';
     98        }
     99
     100        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_text'] ) ) {
     101            $get_format_options['ilove_pdf_format_watermark_text'] = get_bloginfo();
     102        }
     103
     104        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_text_size'] ) ) {
     105            $get_format_options['ilove_pdf_format_watermark_text_size'] = '22';
    92106        }
    93107
    94         if ( ! isset( $get_options['ilove_pdf_format_watermark_font_family'] ) ) {
    95             $get_options['ilove_pdf_format_watermark_font_family'] = 'Verdana';
     108        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_font_family'] ) ) {
     109            $get_format_options['ilove_pdf_format_watermark_font_family'] = 'Verdana';
    96110        }
    97111
    98         if ( ! isset( $get_options['ilove_pdf_format_watermark_text_color'] ) ) {
    99             $get_options['ilove_pdf_format_watermark_text_color'] = '#dd3333';
     112        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_text_color'] ) ) {
     113            $get_format_options['ilove_pdf_format_watermark_text_color'] = '#dd3333';
    100114        }
    101115
    102         update_option( 'ilove_pdf_display_settings_format_watermark', $get_options );
     116        update_option( 'ilove_pdf_display_settings_format_watermark', $get_format_options );
     117        update_option( 'ilove_pdf_display_settings_watermark', $get_gral_options );
    103118    }
    104119
     
    124139        update_option( 'ilove_pdf_display_general_settings', $get_options );
    125140    }
     141
     142    /**
     143     * Compress Settings Value.
     144     *
     145     * Set default values.
     146     *
     147     * @since    2.1.1
     148     */
     149    public static function set_default_values_compress_settings() {
     150
     151        $get_options = get_option( 'ilove_pdf_display_settings_compress' );
     152
     153        if ( ! is_array( $get_options ) ) {
     154            $get_options = array();
     155        }
     156
     157        if ( ! isset( $get_options['ilove_pdf_compress_active'] ) ) {
     158            $get_options['ilove_pdf_compress_active'] = 1;
     159        }
     160
     161        if ( ! isset( $get_options['ilove_pdf_compress_quality'] ) ) {
     162            $get_options['ilove_pdf_compress_quality'] = 1;
     163        }
     164
     165        update_option( 'ilove_pdf_display_settings_compress', $get_options );
     166    }
    126167}
  • ilovepdf/tags/2.1.1/package.json

    r3078801 r3086485  
    1717    "gulp-uglify": "^3.0.2",
    1818    "merge-stream": "^2.0.0",
    19     "sass": "^1.75.0"
     19    "sass": "^1.77.1"
    2020  }
    2121}
  • ilovepdf/tags/2.1.1/vendor/composer/installed.json

    r3078801 r3086485  
    454454        {
    455455            "name": "php-stubs/wordpress-stubs",
    456             "version": "v6.5.2",
    457             "version_normalized": "6.5.2.0",
     456            "version": "v6.5.3",
     457            "version_normalized": "6.5.3.0",
    458458            "source": {
    459459                "type": "git",
    460460                "url": "https://github.com/php-stubs/wordpress-stubs.git",
    461                 "reference": "379f17a90c01498d4c99a0d15aab6e7aa6a2c840"
    462             },
    463             "dist": {
    464                 "type": "zip",
    465                 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/379f17a90c01498d4c99a0d15aab6e7aa6a2c840",
    466                 "reference": "379f17a90c01498d4c99a0d15aab6e7aa6a2c840",
     461                "reference": "e611a83292d02055a25f83291a98fadd0c21e092"
     462            },
     463            "dist": {
     464                "type": "zip",
     465                "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/e611a83292d02055a25f83291a98fadd0c21e092",
     466                "reference": "e611a83292d02055a25f83291a98fadd0c21e092",
    467467                "shasum": ""
    468468            },
     
    482482                "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
    483483            },
    484             "time": "2024-04-14T17:30:14+00:00",
     484            "time": "2024-05-08T02:12:31+00:00",
    485485            "type": "library",
    486486            "installation-source": "dist",
     
    498498            "support": {
    499499                "issues": "https://github.com/php-stubs/wordpress-stubs/issues",
    500                 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.5.2"
     500                "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.5.3"
    501501            },
    502502            "install-path": "../php-stubs/wordpress-stubs"
     
    551551        {
    552552            "name": "phpstan/phpstan",
    553             "version": "1.10.67",
    554             "version_normalized": "1.10.67.0",
     553            "version": "1.11.0",
     554            "version_normalized": "1.11.0.0",
    555555            "source": {
    556556                "type": "git",
    557557                "url": "https://github.com/phpstan/phpstan.git",
    558                 "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493"
    559             },
    560             "dist": {
    561                 "type": "zip",
    562                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/16ddbe776f10da6a95ebd25de7c1dbed397dc493",
    563                 "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493",
     558                "reference": "666cb1703742cea9cc80fee631f0940e1592fa6e"
     559            },
     560            "dist": {
     561                "type": "zip",
     562                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/666cb1703742cea9cc80fee631f0940e1592fa6e",
     563                "reference": "666cb1703742cea9cc80fee631f0940e1592fa6e",
    564564                "shasum": ""
    565565            },
     
    570570                "phpstan/phpstan-shim": "*"
    571571            },
    572             "time": "2024-04-16T07:22:02+00:00",
     572            "time": "2024-05-13T06:02:22+00:00",
    573573            "bin": [
    574574                "phpstan",
     
    667667        {
    668668            "name": "psr/http-factory",
    669             "version": "1.0.2",
    670             "version_normalized": "1.0.2.0",
     669            "version": "1.1.0",
     670            "version_normalized": "1.1.0.0",
    671671            "source": {
    672672                "type": "git",
    673673                "url": "https://github.com/php-fig/http-factory.git",
    674                 "reference": "e616d01114759c4c489f93b099585439f795fe35"
    675             },
    676             "dist": {
    677                 "type": "zip",
    678                 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35",
    679                 "reference": "e616d01114759c4c489f93b099585439f795fe35",
    680                 "shasum": ""
    681             },
    682             "require": {
    683                 "php": ">=7.0.0",
     674                "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a"
     675            },
     676            "dist": {
     677                "type": "zip",
     678                "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a",
     679                "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a",
     680                "shasum": ""
     681            },
     682            "require": {
     683                "php": ">=7.1",
    684684                "psr/http-message": "^1.0 || ^2.0"
    685685            },
    686             "time": "2023-04-10T20:10:41+00:00",
     686            "time": "2024-04-15T12:06:14+00:00",
    687687            "type": "library",
    688688            "extra": {
     
    707707                }
    708708            ],
    709             "description": "Common interfaces for PSR-7 HTTP message factories",
     709            "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories",
    710710            "keywords": [
    711711                "factory",
     
    719719            ],
    720720            "support": {
    721                 "source": "https://github.com/php-fig/http-factory/tree/1.0.2"
     721                "source": "https://github.com/php-fig/http-factory"
    722722            },
    723723            "install-path": "../psr/http-factory"
     
    828828        {
    829829            "name": "symfony/deprecation-contracts",
    830             "version": "v3.4.0",
    831             "version_normalized": "3.4.0.0",
     830            "version": "v3.5.0",
     831            "version_normalized": "3.5.0.0",
    832832            "source": {
    833833                "type": "git",
    834834                "url": "https://github.com/symfony/deprecation-contracts.git",
    835                 "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf"
    836             },
    837             "dist": {
    838                 "type": "zip",
    839                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf",
    840                 "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf",
     835                "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
     836            },
     837            "dist": {
     838                "type": "zip",
     839                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     840                "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
    841841                "shasum": ""
    842842            },
     
    844844                "php": ">=8.1"
    845845            },
    846             "time": "2023-05-23T14:45:45+00:00",
     846            "time": "2024-04-18T09:32:20+00:00",
    847847            "type": "library",
    848848            "extra": {
    849849                "branch-alias": {
    850                     "dev-main": "3.4-dev"
     850                    "dev-main": "3.5-dev"
    851851                },
    852852                "thanks": {
     
    878878            "homepage": "https://symfony.com",
    879879            "support": {
    880                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.4.0"
     880                "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
    881881            },
    882882            "funding": [
  • ilovepdf/tags/2.1.1/vendor/composer/installed.php

    r3078801 r3086485  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '6446e018129e74a1b31de303a6e9f8b7fa706fd3',
     6        'reference' => '97f36de86f0d00145a3a1ec5ba064e2d22d65a6d',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    5959            'pretty_version' => 'dev-develop',
    6060            'version' => 'dev-develop',
    61             'reference' => '6446e018129e74a1b31de303a6e9f8b7fa706fd3',
     61            'reference' => '97f36de86f0d00145a3a1ec5ba064e2d22d65a6d',
    6262            'type' => 'wordpress-plugin',
    6363            'install_path' => __DIR__ . '/../../',
     
    6666        ),
    6767        'php-stubs/wordpress-stubs' => array(
    68             'pretty_version' => 'v6.5.2',
    69             'version' => '6.5.2.0',
    70             'reference' => '379f17a90c01498d4c99a0d15aab6e7aa6a2c840',
     68            'pretty_version' => 'v6.5.3',
     69            'version' => '6.5.3.0',
     70            'reference' => 'e611a83292d02055a25f83291a98fadd0c21e092',
    7171            'type' => 'library',
    7272            'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs',
     
    8484        ),
    8585        'phpstan/phpstan' => array(
    86             'pretty_version' => '1.10.67',
    87             'version' => '1.10.67.0',
    88             'reference' => '16ddbe776f10da6a95ebd25de7c1dbed397dc493',
     86            'pretty_version' => '1.11.0',
     87            'version' => '1.11.0.0',
     88            'reference' => '666cb1703742cea9cc80fee631f0940e1592fa6e',
    8989            'type' => 'library',
    9090            'install_path' => __DIR__ . '/../phpstan/phpstan',
     
    108108        ),
    109109        'psr/http-factory' => array(
    110             'pretty_version' => '1.0.2',
    111             'version' => '1.0.2.0',
    112             'reference' => 'e616d01114759c4c489f93b099585439f795fe35',
     110            'pretty_version' => '1.1.0',
     111            'version' => '1.1.0.0',
     112            'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a',
    113113            'type' => 'library',
    114114            'install_path' => __DIR__ . '/../psr/http-factory',
     
    147147        ),
    148148        'symfony/deprecation-contracts' => array(
    149             'pretty_version' => 'v3.4.0',
    150             'version' => '3.4.0.0',
    151             'reference' => '7c3aff79d10325257a001fcf92d991f24fc967cf',
     149            'pretty_version' => 'v3.5.0',
     150            'version' => '3.5.0.0',
     151            'reference' => '0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1',
    152152            'type' => 'library',
    153153            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
  • ilovepdf/tags/2.1.1/vendor/psr/http-factory/composer.json

    r2995378 r3086485  
    11{
    22    "name": "psr/http-factory",
    3     "description": "Common interfaces for PSR-7 HTTP message factories",
     3    "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories",
    44    "keywords": [
    55        "psr",
     
    1919        }
    2020    ],
     21    "support": {
     22        "source": "https://github.com/php-fig/http-factory"
     23    },
    2124    "require": {
    22         "php": ">=7.0.0",
     25        "php": ">=7.1",
    2326        "psr/http-message": "^1.0 || ^2.0"
    2427    },
  • ilovepdf/tags/2.1.1/vendor/psr/http-factory/src/UploadedFileFactoryInterface.php

    r2995378 r3086485  
    1616     * @param StreamInterface $stream Underlying stream representing the
    1717     *     uploaded file content.
    18      * @param int $size in bytes
     18     * @param int|null $size in bytes
    1919     * @param int $error PHP file upload error
    20      * @param string $clientFilename Filename as provided by the client, if any.
    21      * @param string $clientMediaType Media type as provided by the client, if any.
     20     * @param string|null $clientFilename Filename as provided by the client, if any.
     21     * @param string|null $clientMediaType Media type as provided by the client, if any.
    2222     *
    2323     * @return UploadedFileInterface
     
    2727    public function createUploadedFile(
    2828        StreamInterface $stream,
    29         int $size = null,
     29        ?int $size = null,
    3030        int $error = \UPLOAD_ERR_OK,
    31         string $clientFilename = null,
    32         string $clientMediaType = null
     31        ?string $clientFilename = null,
     32        ?string $clientMediaType = null
    3333    ): UploadedFileInterface;
    3434}
  • ilovepdf/tags/2.1.1/vendor/symfony/deprecation-contracts/composer.json

    r2995378 r3086485  
    2626    "extra": {
    2727        "branch-alias": {
    28             "dev-main": "3.4-dev"
     28            "dev-main": "3.5-dev"
    2929        },
    3030        "thanks": {
  • ilovepdf/trunk/README.md

    r3078801 r3086485  
    11=== PDF Compressor & Watermark - iLovePDF ===
    22Plugin Name: Image Compressor & Optimizer - iLovePDF
    3 Version: 2.1.0
     3Version: 2.1.1
    44Author: iLovePDF
    55Author URI: https://www.ilovepdf.com/
     
    77Tags: compress, watermark, optimize, performance, pdf optimizer
    88Requires at least: 5.3
    9 Tested up to: 6.5.2
    10 Stable tag: 2.1.0
     9Tested up to: 6.5.3
     10Stable tag: 2.1.1
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
  • ilovepdf/trunk/README.txt

    r3078801 r3086485  
    11=== PDF Compressor & Watermark - iLovePDF ===
    22Plugin Name: Image Compressor & Optimizer - iLovePDF
    3 Version: 2.1.0
     3Version: 2.1.1
    44Author: iLovePDF
    55Author URI: https://www.ilovepdf.com/
     
    77Tags: compress, watermark, optimize, performance, pdf optimizer
    88Requires at least: 5.3
    9 Tested up to: 6.5.2
    10 Stable tag: 2.1.0
     9Tested up to: 6.5.3
     10Stable tag: 2.1.1
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    8282
    8383== Changelog ==
     84
     85== 2.1.1 ==
     86Improved
     87* Update Libraries.
     88
     89Fixed
     90* Fixed an issue when activating the plugin for the first time. Default settings now load correctly.
     91* Library was included internally. This will improve file loading and possible CDN blocking in some countries.
    8492
    8593== 2.1.0 ==
  • ilovepdf/trunk/admin/Ilove_Pdf_Admin.php

    r3078801 r3086485  
    107107
    108108        if ( ( 'upload.php' === $pagenow || 'options-general.php' === $pagenow || 'media-new.php' === $pagenow || 'post.php' === $pagenow ) && get_current_screen()->post_type !== 'product' ) {
    109             wp_enqueue_script( 'ilove-pdf-admin', plugins_url( '/assets/js/main.min.js', __DIR__ ), array( 'wp-color-picker', 'sweetalert-ilovepdf' ), '1.0.0', true );
    110             wp_enqueue_script( 'sweetalert-ilovepdf', 'https://cdn.jsdelivr.net/npm/sweetalert2@11', array(), '11.10', true );
     109            wp_enqueue_script( 'ilove-pdf-admin', plugins_url( '/assets/js/main.min.js', __DIR__ ), array( 'wp-color-picker', 'sweetalert-js-ilovepdf' ), '1.0.0', true );
     110            wp_enqueue_script( 'sweetalert-js-ilovepdf', plugins_url( '/assets/js/sweetalert2.all.min.js', __DIR__ ), array(), '11.11.0', true );
    111111        }
    112112    }
  • ilovepdf/trunk/ilove-pdf.php

    r3078801 r3086485  
    1616 * Plugin URI:        https://developer.ilovepdf.com/
    1717 * Description:       Compress your PDF files and Stamp Images or text into PDF files. This is the Official iLovePDF plugin for WordPress. You can optimize all your PDF and stamp them automatically as you do in ilovepdf.com.
    18  * Version:           2.1.0
     18 * Version:           2.1.1
    1919 * Requires at least: 5.3
    2020 * Requires PHP:      7.4
  • ilovepdf/trunk/includes/Ilove_Pdf.php

    r3078801 r3086485  
    7575
    7676        $this->plugin_name = 'ilove-pdf';
    77         $this->version     = 'wp.2.1.0';
     77        $this->version     = 'wp.2.1.1';
    7878
    7979        $this->load_dependencies();
  • ilovepdf/trunk/includes/Ilove_Pdf_Activator.php

    r3078801 r3086485  
    5353        add_option( 'ilovepdf_initial_pdf_files_size', $initial_pdf_size );
    5454
    55         if ( get_option( 'ilovepdf_wordpress_id' ) === null ) {
     55        if ( get_option( 'ilovepdf_wordpress_id' ) === false ) {
    5656            add_option( 'ilovepdf_wordpress_id', md5( get_option( 'siteurl' ) . get_option( 'admin_email' ) ) );
    5757        }
    5858
    5959        self::set_default_values_watermark_settings();
     60        self::set_default_values_compress_settings();
    6061        self::set_default_values_general_settings();
    6162    }
     
    7071    public static function set_default_values_watermark_settings() {
    7172
    72         $get_options = get_option( 'ilove_pdf_display_settings_format_watermark' );
     73        $get_format_options = get_option( 'ilove_pdf_display_settings_format_watermark' );
     74        $get_gral_options   = get_option( 'ilove_pdf_display_settings_watermark' );
    7375
    74         if ( ! is_array( $get_options ) ) {
    75             $get_options = array();
     76        if ( ! is_array( $get_format_options ) ) {
     77            $get_format_options = array();
    7678        }
    7779
    78         if ( ! isset( $get_options['ilove_pdf_format_watermark_vertical'] ) ) {
    79             $get_options['ilove_pdf_format_watermark_vertical'] = '2';
     80        if ( ! is_array( $get_gral_options ) ) {
     81            $get_gral_options = array();
     82        }
     83
     84        if ( ! isset( $get_gral_options['ilove_pdf_watermark_active'] ) ) {
     85            $get_gral_options['ilove_pdf_watermark_active'] = 1;
    8086        }
    8187
    82         if ( ! isset( $get_options['ilove_pdf_format_watermark_horizontal'] ) ) {
    83             $get_options['ilove_pdf_format_watermark_horizontal'] = '2';
     88        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_mode'] ) ) {
     89            $get_format_options['ilove_pdf_format_watermark_mode'] = 0;
    8490        }
    8591
    86         if ( ! isset( $get_options['ilove_pdf_format_watermark_text'] ) ) {
    87             $get_options['ilove_pdf_format_watermark_text'] = get_bloginfo();
     92        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_vertical'] ) ) {
     93            $get_format_options['ilove_pdf_format_watermark_vertical'] = '2';
    8894        }
    8995
    90         if ( ! isset( $get_options['ilove_pdf_format_watermark_text_size'] ) ) {
    91             $get_options['ilove_pdf_format_watermark_text_size'] = '22';
     96        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_horizontal'] ) ) {
     97            $get_format_options['ilove_pdf_format_watermark_horizontal'] = '2';
     98        }
     99
     100        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_text'] ) ) {
     101            $get_format_options['ilove_pdf_format_watermark_text'] = get_bloginfo();
     102        }
     103
     104        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_text_size'] ) ) {
     105            $get_format_options['ilove_pdf_format_watermark_text_size'] = '22';
    92106        }
    93107
    94         if ( ! isset( $get_options['ilove_pdf_format_watermark_font_family'] ) ) {
    95             $get_options['ilove_pdf_format_watermark_font_family'] = 'Verdana';
     108        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_font_family'] ) ) {
     109            $get_format_options['ilove_pdf_format_watermark_font_family'] = 'Verdana';
    96110        }
    97111
    98         if ( ! isset( $get_options['ilove_pdf_format_watermark_text_color'] ) ) {
    99             $get_options['ilove_pdf_format_watermark_text_color'] = '#dd3333';
     112        if ( ! isset( $get_format_options['ilove_pdf_format_watermark_text_color'] ) ) {
     113            $get_format_options['ilove_pdf_format_watermark_text_color'] = '#dd3333';
    100114        }
    101115
    102         update_option( 'ilove_pdf_display_settings_format_watermark', $get_options );
     116        update_option( 'ilove_pdf_display_settings_format_watermark', $get_format_options );
     117        update_option( 'ilove_pdf_display_settings_watermark', $get_gral_options );
    103118    }
    104119
     
    124139        update_option( 'ilove_pdf_display_general_settings', $get_options );
    125140    }
     141
     142    /**
     143     * Compress Settings Value.
     144     *
     145     * Set default values.
     146     *
     147     * @since    2.1.1
     148     */
     149    public static function set_default_values_compress_settings() {
     150
     151        $get_options = get_option( 'ilove_pdf_display_settings_compress' );
     152
     153        if ( ! is_array( $get_options ) ) {
     154            $get_options = array();
     155        }
     156
     157        if ( ! isset( $get_options['ilove_pdf_compress_active'] ) ) {
     158            $get_options['ilove_pdf_compress_active'] = 1;
     159        }
     160
     161        if ( ! isset( $get_options['ilove_pdf_compress_quality'] ) ) {
     162            $get_options['ilove_pdf_compress_quality'] = 1;
     163        }
     164
     165        update_option( 'ilove_pdf_display_settings_compress', $get_options );
     166    }
    126167}
  • ilovepdf/trunk/package.json

    r3078801 r3086485  
    1717    "gulp-uglify": "^3.0.2",
    1818    "merge-stream": "^2.0.0",
    19     "sass": "^1.75.0"
     19    "sass": "^1.77.1"
    2020  }
    2121}
  • ilovepdf/trunk/vendor/composer/installed.json

    r3078801 r3086485  
    454454        {
    455455            "name": "php-stubs/wordpress-stubs",
    456             "version": "v6.5.2",
    457             "version_normalized": "6.5.2.0",
     456            "version": "v6.5.3",
     457            "version_normalized": "6.5.3.0",
    458458            "source": {
    459459                "type": "git",
    460460                "url": "https://github.com/php-stubs/wordpress-stubs.git",
    461                 "reference": "379f17a90c01498d4c99a0d15aab6e7aa6a2c840"
    462             },
    463             "dist": {
    464                 "type": "zip",
    465                 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/379f17a90c01498d4c99a0d15aab6e7aa6a2c840",
    466                 "reference": "379f17a90c01498d4c99a0d15aab6e7aa6a2c840",
     461                "reference": "e611a83292d02055a25f83291a98fadd0c21e092"
     462            },
     463            "dist": {
     464                "type": "zip",
     465                "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/e611a83292d02055a25f83291a98fadd0c21e092",
     466                "reference": "e611a83292d02055a25f83291a98fadd0c21e092",
    467467                "shasum": ""
    468468            },
     
    482482                "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
    483483            },
    484             "time": "2024-04-14T17:30:14+00:00",
     484            "time": "2024-05-08T02:12:31+00:00",
    485485            "type": "library",
    486486            "installation-source": "dist",
     
    498498            "support": {
    499499                "issues": "https://github.com/php-stubs/wordpress-stubs/issues",
    500                 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.5.2"
     500                "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.5.3"
    501501            },
    502502            "install-path": "../php-stubs/wordpress-stubs"
     
    551551        {
    552552            "name": "phpstan/phpstan",
    553             "version": "1.10.67",
    554             "version_normalized": "1.10.67.0",
     553            "version": "1.11.0",
     554            "version_normalized": "1.11.0.0",
    555555            "source": {
    556556                "type": "git",
    557557                "url": "https://github.com/phpstan/phpstan.git",
    558                 "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493"
    559             },
    560             "dist": {
    561                 "type": "zip",
    562                 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/16ddbe776f10da6a95ebd25de7c1dbed397dc493",
    563                 "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493",
     558                "reference": "666cb1703742cea9cc80fee631f0940e1592fa6e"
     559            },
     560            "dist": {
     561                "type": "zip",
     562                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/666cb1703742cea9cc80fee631f0940e1592fa6e",
     563                "reference": "666cb1703742cea9cc80fee631f0940e1592fa6e",
    564564                "shasum": ""
    565565            },
     
    570570                "phpstan/phpstan-shim": "*"
    571571            },
    572             "time": "2024-04-16T07:22:02+00:00",
     572            "time": "2024-05-13T06:02:22+00:00",
    573573            "bin": [
    574574                "phpstan",
     
    667667        {
    668668            "name": "psr/http-factory",
    669             "version": "1.0.2",
    670             "version_normalized": "1.0.2.0",
     669            "version": "1.1.0",
     670            "version_normalized": "1.1.0.0",
    671671            "source": {
    672672                "type": "git",
    673673                "url": "https://github.com/php-fig/http-factory.git",
    674                 "reference": "e616d01114759c4c489f93b099585439f795fe35"
    675             },
    676             "dist": {
    677                 "type": "zip",
    678                 "url": "https://api.github.com/repos/php-fig/http-factory/zipball/e616d01114759c4c489f93b099585439f795fe35",
    679                 "reference": "e616d01114759c4c489f93b099585439f795fe35",
    680                 "shasum": ""
    681             },
    682             "require": {
    683                 "php": ">=7.0.0",
     674                "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a"
     675            },
     676            "dist": {
     677                "type": "zip",
     678                "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a",
     679                "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a",
     680                "shasum": ""
     681            },
     682            "require": {
     683                "php": ">=7.1",
    684684                "psr/http-message": "^1.0 || ^2.0"
    685685            },
    686             "time": "2023-04-10T20:10:41+00:00",
     686            "time": "2024-04-15T12:06:14+00:00",
    687687            "type": "library",
    688688            "extra": {
     
    707707                }
    708708            ],
    709             "description": "Common interfaces for PSR-7 HTTP message factories",
     709            "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories",
    710710            "keywords": [
    711711                "factory",
     
    719719            ],
    720720            "support": {
    721                 "source": "https://github.com/php-fig/http-factory/tree/1.0.2"
     721                "source": "https://github.com/php-fig/http-factory"
    722722            },
    723723            "install-path": "../psr/http-factory"
     
    828828        {
    829829            "name": "symfony/deprecation-contracts",
    830             "version": "v3.4.0",
    831             "version_normalized": "3.4.0.0",
     830            "version": "v3.5.0",
     831            "version_normalized": "3.5.0.0",
    832832            "source": {
    833833                "type": "git",
    834834                "url": "https://github.com/symfony/deprecation-contracts.git",
    835                 "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf"
    836             },
    837             "dist": {
    838                 "type": "zip",
    839                 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf",
    840                 "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf",
     835                "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
     836            },
     837            "dist": {
     838                "type": "zip",
     839                "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
     840                "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
    841841                "shasum": ""
    842842            },
     
    844844                "php": ">=8.1"
    845845            },
    846             "time": "2023-05-23T14:45:45+00:00",
     846            "time": "2024-04-18T09:32:20+00:00",
    847847            "type": "library",
    848848            "extra": {
    849849                "branch-alias": {
    850                     "dev-main": "3.4-dev"
     850                    "dev-main": "3.5-dev"
    851851                },
    852852                "thanks": {
     
    878878            "homepage": "https://symfony.com",
    879879            "support": {
    880                 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.4.0"
     880                "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
    881881            },
    882882            "funding": [
  • ilovepdf/trunk/vendor/composer/installed.php

    r3078801 r3086485  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '6446e018129e74a1b31de303a6e9f8b7fa706fd3',
     6        'reference' => '97f36de86f0d00145a3a1ec5ba064e2d22d65a6d',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    5959            'pretty_version' => 'dev-develop',
    6060            'version' => 'dev-develop',
    61             'reference' => '6446e018129e74a1b31de303a6e9f8b7fa706fd3',
     61            'reference' => '97f36de86f0d00145a3a1ec5ba064e2d22d65a6d',
    6262            'type' => 'wordpress-plugin',
    6363            'install_path' => __DIR__ . '/../../',
     
    6666        ),
    6767        'php-stubs/wordpress-stubs' => array(
    68             'pretty_version' => 'v6.5.2',
    69             'version' => '6.5.2.0',
    70             'reference' => '379f17a90c01498d4c99a0d15aab6e7aa6a2c840',
     68            'pretty_version' => 'v6.5.3',
     69            'version' => '6.5.3.0',
     70            'reference' => 'e611a83292d02055a25f83291a98fadd0c21e092',
    7171            'type' => 'library',
    7272            'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs',
     
    8484        ),
    8585        'phpstan/phpstan' => array(
    86             'pretty_version' => '1.10.67',
    87             'version' => '1.10.67.0',
    88             'reference' => '16ddbe776f10da6a95ebd25de7c1dbed397dc493',
     86            'pretty_version' => '1.11.0',
     87            'version' => '1.11.0.0',
     88            'reference' => '666cb1703742cea9cc80fee631f0940e1592fa6e',
    8989            'type' => 'library',
    9090            'install_path' => __DIR__ . '/../phpstan/phpstan',
     
    108108        ),
    109109        'psr/http-factory' => array(
    110             'pretty_version' => '1.0.2',
    111             'version' => '1.0.2.0',
    112             'reference' => 'e616d01114759c4c489f93b099585439f795fe35',
     110            'pretty_version' => '1.1.0',
     111            'version' => '1.1.0.0',
     112            'reference' => '2b4765fddfe3b508ac62f829e852b1501d3f6e8a',
    113113            'type' => 'library',
    114114            'install_path' => __DIR__ . '/../psr/http-factory',
     
    147147        ),
    148148        'symfony/deprecation-contracts' => array(
    149             'pretty_version' => 'v3.4.0',
    150             'version' => '3.4.0.0',
    151             'reference' => '7c3aff79d10325257a001fcf92d991f24fc967cf',
     149            'pretty_version' => 'v3.5.0',
     150            'version' => '3.5.0.0',
     151            'reference' => '0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1',
    152152            'type' => 'library',
    153153            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
  • ilovepdf/trunk/vendor/psr/http-factory/composer.json

    r2995378 r3086485  
    11{
    22    "name": "psr/http-factory",
    3     "description": "Common interfaces for PSR-7 HTTP message factories",
     3    "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories",
    44    "keywords": [
    55        "psr",
     
    1919        }
    2020    ],
     21    "support": {
     22        "source": "https://github.com/php-fig/http-factory"
     23    },
    2124    "require": {
    22         "php": ">=7.0.0",
     25        "php": ">=7.1",
    2326        "psr/http-message": "^1.0 || ^2.0"
    2427    },
  • ilovepdf/trunk/vendor/psr/http-factory/src/UploadedFileFactoryInterface.php

    r2995378 r3086485  
    1616     * @param StreamInterface $stream Underlying stream representing the
    1717     *     uploaded file content.
    18      * @param int $size in bytes
     18     * @param int|null $size in bytes
    1919     * @param int $error PHP file upload error
    20      * @param string $clientFilename Filename as provided by the client, if any.
    21      * @param string $clientMediaType Media type as provided by the client, if any.
     20     * @param string|null $clientFilename Filename as provided by the client, if any.
     21     * @param string|null $clientMediaType Media type as provided by the client, if any.
    2222     *
    2323     * @return UploadedFileInterface
     
    2727    public function createUploadedFile(
    2828        StreamInterface $stream,
    29         int $size = null,
     29        ?int $size = null,
    3030        int $error = \UPLOAD_ERR_OK,
    31         string $clientFilename = null,
    32         string $clientMediaType = null
     31        ?string $clientFilename = null,
     32        ?string $clientMediaType = null
    3333    ): UploadedFileInterface;
    3434}
  • ilovepdf/trunk/vendor/symfony/deprecation-contracts/composer.json

    r2995378 r3086485  
    2626    "extra": {
    2727        "branch-alias": {
    28             "dev-main": "3.4-dev"
     28            "dev-main": "3.5-dev"
    2929        },
    3030        "thanks": {
Note: See TracChangeset for help on using the changeset viewer.