Changeset 3086485
- Timestamp:
- 05/14/2024 11:55:25 AM (23 months ago)
- Location:
- ilovepdf
- Files:
-
- 2 added
- 24 edited
- 1 copied
-
tags/2.1.1 (copied) (copied from ilovepdf/trunk)
-
tags/2.1.1/README.md (modified) (2 diffs)
-
tags/2.1.1/README.txt (modified) (3 diffs)
-
tags/2.1.1/admin/Ilove_Pdf_Admin.php (modified) (1 diff)
-
tags/2.1.1/assets/js/sweetalert2.all.min.js (added)
-
tags/2.1.1/ilove-pdf.php (modified) (1 diff)
-
tags/2.1.1/includes/Ilove_Pdf.php (modified) (1 diff)
-
tags/2.1.1/includes/Ilove_Pdf_Activator.php (modified) (3 diffs)
-
tags/2.1.1/package.json (modified) (1 diff)
-
tags/2.1.1/vendor/composer/installed.json (modified) (11 diffs)
-
tags/2.1.1/vendor/composer/installed.php (modified) (6 diffs)
-
tags/2.1.1/vendor/psr/http-factory/composer.json (modified) (2 diffs)
-
tags/2.1.1/vendor/psr/http-factory/src/UploadedFileFactoryInterface.php (modified) (2 diffs)
-
tags/2.1.1/vendor/symfony/deprecation-contracts/composer.json (modified) (1 diff)
-
trunk/README.md (modified) (2 diffs)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/Ilove_Pdf_Admin.php (modified) (1 diff)
-
trunk/assets/js/sweetalert2.all.min.js (added)
-
trunk/ilove-pdf.php (modified) (1 diff)
-
trunk/includes/Ilove_Pdf.php (modified) (1 diff)
-
trunk/includes/Ilove_Pdf_Activator.php (modified) (3 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/vendor/composer/installed.json (modified) (11 diffs)
-
trunk/vendor/composer/installed.php (modified) (6 diffs)
-
trunk/vendor/psr/http-factory/composer.json (modified) (2 diffs)
-
trunk/vendor/psr/http-factory/src/UploadedFileFactoryInterface.php (modified) (2 diffs)
-
trunk/vendor/symfony/deprecation-contracts/composer.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ilovepdf/tags/2.1.1/README.md
r3078801 r3086485 1 1 === PDF Compressor & Watermark - iLovePDF === 2 2 Plugin Name: Image Compressor & Optimizer - iLovePDF 3 Version: 2.1. 03 Version: 2.1.1 4 4 Author: iLovePDF 5 5 Author URI: https://www.ilovepdf.com/ … … 7 7 Tags: compress, watermark, optimize, performance, pdf optimizer 8 8 Requires at least: 5.3 9 Tested up to: 6.5. 210 Stable tag: 2.1. 09 Tested up to: 6.5.3 10 Stable tag: 2.1.1 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later -
ilovepdf/tags/2.1.1/README.txt
r3078801 r3086485 1 1 === PDF Compressor & Watermark - iLovePDF === 2 2 Plugin Name: Image Compressor & Optimizer - iLovePDF 3 Version: 2.1. 03 Version: 2.1.1 4 4 Author: iLovePDF 5 5 Author URI: https://www.ilovepdf.com/ … … 7 7 Tags: compress, watermark, optimize, performance, pdf optimizer 8 8 Requires at least: 5.3 9 Tested up to: 6.5. 210 Stable tag: 2.1. 09 Tested up to: 6.5.3 10 Stable tag: 2.1.1 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later … … 82 82 83 83 == Changelog == 84 85 == 2.1.1 == 86 Improved 87 * Update Libraries. 88 89 Fixed 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. 84 92 85 93 == 2.1.0 == -
ilovepdf/tags/2.1.1/admin/Ilove_Pdf_Admin.php
r3078801 r3086485 107 107 108 108 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 ); 111 111 } 112 112 } -
ilovepdf/tags/2.1.1/ilove-pdf.php
r3078801 r3086485 16 16 * Plugin URI: https://developer.ilovepdf.com/ 17 17 * 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. 018 * Version: 2.1.1 19 19 * Requires at least: 5.3 20 20 * Requires PHP: 7.4 -
ilovepdf/tags/2.1.1/includes/Ilove_Pdf.php
r3078801 r3086485 75 75 76 76 $this->plugin_name = 'ilove-pdf'; 77 $this->version = 'wp.2.1. 0';77 $this->version = 'wp.2.1.1'; 78 78 79 79 $this->load_dependencies(); -
ilovepdf/tags/2.1.1/includes/Ilove_Pdf_Activator.php
r3078801 r3086485 53 53 add_option( 'ilovepdf_initial_pdf_files_size', $initial_pdf_size ); 54 54 55 if ( get_option( 'ilovepdf_wordpress_id' ) === null) {55 if ( get_option( 'ilovepdf_wordpress_id' ) === false ) { 56 56 add_option( 'ilovepdf_wordpress_id', md5( get_option( 'siteurl' ) . get_option( 'admin_email' ) ) ); 57 57 } 58 58 59 59 self::set_default_values_watermark_settings(); 60 self::set_default_values_compress_settings(); 60 61 self::set_default_values_general_settings(); 61 62 } … … 70 71 public static function set_default_values_watermark_settings() { 71 72 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' ); 73 75 74 if ( ! is_array( $get_ options ) ) {75 $get_ options = array();76 if ( ! is_array( $get_format_options ) ) { 77 $get_format_options = array(); 76 78 } 77 79 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; 80 86 } 81 87 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; 84 90 } 85 91 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'; 88 94 } 89 95 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'; 92 106 } 93 107 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'; 96 110 } 97 111 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'; 100 114 } 101 115 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 ); 103 118 } 104 119 … … 124 139 update_option( 'ilove_pdf_display_general_settings', $get_options ); 125 140 } 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 } 126 167 } -
ilovepdf/tags/2.1.1/package.json
r3078801 r3086485 17 17 "gulp-uglify": "^3.0.2", 18 18 "merge-stream": "^2.0.0", 19 "sass": "^1.7 5.0"19 "sass": "^1.77.1" 20 20 } 21 21 } -
ilovepdf/tags/2.1.1/vendor/composer/installed.json
r3078801 r3086485 454 454 { 455 455 "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", 458 458 "source": { 459 459 "type": "git", 460 460 "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", 467 467 "shasum": "" 468 468 }, … … 482 482 "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" 483 483 }, 484 "time": "2024-0 4-14T17:30:14+00:00",484 "time": "2024-05-08T02:12:31+00:00", 485 485 "type": "library", 486 486 "installation-source": "dist", … … 498 498 "support": { 499 499 "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" 501 501 }, 502 502 "install-path": "../php-stubs/wordpress-stubs" … … 551 551 { 552 552 "name": "phpstan/phpstan", 553 "version": "1.1 0.67",554 "version_normalized": "1.1 0.67.0",553 "version": "1.11.0", 554 "version_normalized": "1.11.0.0", 555 555 "source": { 556 556 "type": "git", 557 557 "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", 564 564 "shasum": "" 565 565 }, … … 570 570 "phpstan/phpstan-shim": "*" 571 571 }, 572 "time": "2024-0 4-16T07:22:02+00:00",572 "time": "2024-05-13T06:02:22+00:00", 573 573 "bin": [ 574 574 "phpstan", … … 667 667 { 668 668 "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", 671 671 "source": { 672 672 "type": "git", 673 673 "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", 684 684 "psr/http-message": "^1.0 || ^2.0" 685 685 }, 686 "time": "202 3-04-10T20:10:41+00:00",686 "time": "2024-04-15T12:06:14+00:00", 687 687 "type": "library", 688 688 "extra": { … … 707 707 } 708 708 ], 709 "description": " Common interfaces for PSR-7 HTTP message factories",709 "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", 710 710 "keywords": [ 711 711 "factory", … … 719 719 ], 720 720 "support": { 721 "source": "https://github.com/php-fig/http-factory /tree/1.0.2"721 "source": "https://github.com/php-fig/http-factory" 722 722 }, 723 723 "install-path": "../psr/http-factory" … … 828 828 { 829 829 "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", 832 832 "source": { 833 833 "type": "git", 834 834 "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", 841 841 "shasum": "" 842 842 }, … … 844 844 "php": ">=8.1" 845 845 }, 846 "time": "202 3-05-23T14:45:45+00:00",846 "time": "2024-04-18T09:32:20+00:00", 847 847 "type": "library", 848 848 "extra": { 849 849 "branch-alias": { 850 "dev-main": "3. 4-dev"850 "dev-main": "3.5-dev" 851 851 }, 852 852 "thanks": { … … 878 878 "homepage": "https://symfony.com", 879 879 "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" 881 881 }, 882 882 "funding": [ -
ilovepdf/tags/2.1.1/vendor/composer/installed.php
r3078801 r3086485 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' 6446e018129e74a1b31de303a6e9f8b7fa706fd3',6 'reference' => '97f36de86f0d00145a3a1ec5ba064e2d22d65a6d', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 59 59 'pretty_version' => 'dev-develop', 60 60 'version' => 'dev-develop', 61 'reference' => ' 6446e018129e74a1b31de303a6e9f8b7fa706fd3',61 'reference' => '97f36de86f0d00145a3a1ec5ba064e2d22d65a6d', 62 62 'type' => 'wordpress-plugin', 63 63 'install_path' => __DIR__ . '/../../', … … 66 66 ), 67 67 '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', 71 71 'type' => 'library', 72 72 'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs', … … 84 84 ), 85 85 'phpstan/phpstan' => array( 86 'pretty_version' => '1.1 0.67',87 'version' => '1.1 0.67.0',88 'reference' => ' 16ddbe776f10da6a95ebd25de7c1dbed397dc493',86 'pretty_version' => '1.11.0', 87 'version' => '1.11.0.0', 88 'reference' => '666cb1703742cea9cc80fee631f0940e1592fa6e', 89 89 'type' => 'library', 90 90 'install_path' => __DIR__ . '/../phpstan/phpstan', … … 108 108 ), 109 109 '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', 113 113 'type' => 'library', 114 114 'install_path' => __DIR__ . '/../psr/http-factory', … … 147 147 ), 148 148 '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', 152 152 'type' => 'library', 153 153 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', -
ilovepdf/tags/2.1.1/vendor/psr/http-factory/composer.json
r2995378 r3086485 1 1 { 2 2 "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", 4 4 "keywords": [ 5 5 "psr", … … 19 19 } 20 20 ], 21 "support": { 22 "source": "https://github.com/php-fig/http-factory" 23 }, 21 24 "require": { 22 "php": ">=7. 0.0",25 "php": ">=7.1", 23 26 "psr/http-message": "^1.0 || ^2.0" 24 27 }, -
ilovepdf/tags/2.1.1/vendor/psr/http-factory/src/UploadedFileFactoryInterface.php
r2995378 r3086485 16 16 * @param StreamInterface $stream Underlying stream representing the 17 17 * uploaded file content. 18 * @param int $size in bytes18 * @param int|null $size in bytes 19 19 * @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. 22 22 * 23 23 * @return UploadedFileInterface … … 27 27 public function createUploadedFile( 28 28 StreamInterface $stream, 29 int $size = null,29 ?int $size = null, 30 30 int $error = \UPLOAD_ERR_OK, 31 string $clientFilename = null,32 string $clientMediaType = null31 ?string $clientFilename = null, 32 ?string $clientMediaType = null 33 33 ): UploadedFileInterface; 34 34 } -
ilovepdf/tags/2.1.1/vendor/symfony/deprecation-contracts/composer.json
r2995378 r3086485 26 26 "extra": { 27 27 "branch-alias": { 28 "dev-main": "3. 4-dev"28 "dev-main": "3.5-dev" 29 29 }, 30 30 "thanks": { -
ilovepdf/trunk/README.md
r3078801 r3086485 1 1 === PDF Compressor & Watermark - iLovePDF === 2 2 Plugin Name: Image Compressor & Optimizer - iLovePDF 3 Version: 2.1. 03 Version: 2.1.1 4 4 Author: iLovePDF 5 5 Author URI: https://www.ilovepdf.com/ … … 7 7 Tags: compress, watermark, optimize, performance, pdf optimizer 8 8 Requires at least: 5.3 9 Tested up to: 6.5. 210 Stable tag: 2.1. 09 Tested up to: 6.5.3 10 Stable tag: 2.1.1 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later -
ilovepdf/trunk/README.txt
r3078801 r3086485 1 1 === PDF Compressor & Watermark - iLovePDF === 2 2 Plugin Name: Image Compressor & Optimizer - iLovePDF 3 Version: 2.1. 03 Version: 2.1.1 4 4 Author: iLovePDF 5 5 Author URI: https://www.ilovepdf.com/ … … 7 7 Tags: compress, watermark, optimize, performance, pdf optimizer 8 8 Requires at least: 5.3 9 Tested up to: 6.5. 210 Stable tag: 2.1. 09 Tested up to: 6.5.3 10 Stable tag: 2.1.1 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later … … 82 82 83 83 == Changelog == 84 85 == 2.1.1 == 86 Improved 87 * Update Libraries. 88 89 Fixed 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. 84 92 85 93 == 2.1.0 == -
ilovepdf/trunk/admin/Ilove_Pdf_Admin.php
r3078801 r3086485 107 107 108 108 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 ); 111 111 } 112 112 } -
ilovepdf/trunk/ilove-pdf.php
r3078801 r3086485 16 16 * Plugin URI: https://developer.ilovepdf.com/ 17 17 * 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. 018 * Version: 2.1.1 19 19 * Requires at least: 5.3 20 20 * Requires PHP: 7.4 -
ilovepdf/trunk/includes/Ilove_Pdf.php
r3078801 r3086485 75 75 76 76 $this->plugin_name = 'ilove-pdf'; 77 $this->version = 'wp.2.1. 0';77 $this->version = 'wp.2.1.1'; 78 78 79 79 $this->load_dependencies(); -
ilovepdf/trunk/includes/Ilove_Pdf_Activator.php
r3078801 r3086485 53 53 add_option( 'ilovepdf_initial_pdf_files_size', $initial_pdf_size ); 54 54 55 if ( get_option( 'ilovepdf_wordpress_id' ) === null) {55 if ( get_option( 'ilovepdf_wordpress_id' ) === false ) { 56 56 add_option( 'ilovepdf_wordpress_id', md5( get_option( 'siteurl' ) . get_option( 'admin_email' ) ) ); 57 57 } 58 58 59 59 self::set_default_values_watermark_settings(); 60 self::set_default_values_compress_settings(); 60 61 self::set_default_values_general_settings(); 61 62 } … … 70 71 public static function set_default_values_watermark_settings() { 71 72 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' ); 73 75 74 if ( ! is_array( $get_ options ) ) {75 $get_ options = array();76 if ( ! is_array( $get_format_options ) ) { 77 $get_format_options = array(); 76 78 } 77 79 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; 80 86 } 81 87 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; 84 90 } 85 91 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'; 88 94 } 89 95 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'; 92 106 } 93 107 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'; 96 110 } 97 111 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'; 100 114 } 101 115 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 ); 103 118 } 104 119 … … 124 139 update_option( 'ilove_pdf_display_general_settings', $get_options ); 125 140 } 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 } 126 167 } -
ilovepdf/trunk/package.json
r3078801 r3086485 17 17 "gulp-uglify": "^3.0.2", 18 18 "merge-stream": "^2.0.0", 19 "sass": "^1.7 5.0"19 "sass": "^1.77.1" 20 20 } 21 21 } -
ilovepdf/trunk/vendor/composer/installed.json
r3078801 r3086485 454 454 { 455 455 "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", 458 458 "source": { 459 459 "type": "git", 460 460 "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", 467 467 "shasum": "" 468 468 }, … … 482 482 "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" 483 483 }, 484 "time": "2024-0 4-14T17:30:14+00:00",484 "time": "2024-05-08T02:12:31+00:00", 485 485 "type": "library", 486 486 "installation-source": "dist", … … 498 498 "support": { 499 499 "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" 501 501 }, 502 502 "install-path": "../php-stubs/wordpress-stubs" … … 551 551 { 552 552 "name": "phpstan/phpstan", 553 "version": "1.1 0.67",554 "version_normalized": "1.1 0.67.0",553 "version": "1.11.0", 554 "version_normalized": "1.11.0.0", 555 555 "source": { 556 556 "type": "git", 557 557 "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", 564 564 "shasum": "" 565 565 }, … … 570 570 "phpstan/phpstan-shim": "*" 571 571 }, 572 "time": "2024-0 4-16T07:22:02+00:00",572 "time": "2024-05-13T06:02:22+00:00", 573 573 "bin": [ 574 574 "phpstan", … … 667 667 { 668 668 "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", 671 671 "source": { 672 672 "type": "git", 673 673 "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", 684 684 "psr/http-message": "^1.0 || ^2.0" 685 685 }, 686 "time": "202 3-04-10T20:10:41+00:00",686 "time": "2024-04-15T12:06:14+00:00", 687 687 "type": "library", 688 688 "extra": { … … 707 707 } 708 708 ], 709 "description": " Common interfaces for PSR-7 HTTP message factories",709 "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", 710 710 "keywords": [ 711 711 "factory", … … 719 719 ], 720 720 "support": { 721 "source": "https://github.com/php-fig/http-factory /tree/1.0.2"721 "source": "https://github.com/php-fig/http-factory" 722 722 }, 723 723 "install-path": "../psr/http-factory" … … 828 828 { 829 829 "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", 832 832 "source": { 833 833 "type": "git", 834 834 "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", 841 841 "shasum": "" 842 842 }, … … 844 844 "php": ">=8.1" 845 845 }, 846 "time": "202 3-05-23T14:45:45+00:00",846 "time": "2024-04-18T09:32:20+00:00", 847 847 "type": "library", 848 848 "extra": { 849 849 "branch-alias": { 850 "dev-main": "3. 4-dev"850 "dev-main": "3.5-dev" 851 851 }, 852 852 "thanks": { … … 878 878 "homepage": "https://symfony.com", 879 879 "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" 881 881 }, 882 882 "funding": [ -
ilovepdf/trunk/vendor/composer/installed.php
r3078801 r3086485 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' 6446e018129e74a1b31de303a6e9f8b7fa706fd3',6 'reference' => '97f36de86f0d00145a3a1ec5ba064e2d22d65a6d', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 59 59 'pretty_version' => 'dev-develop', 60 60 'version' => 'dev-develop', 61 'reference' => ' 6446e018129e74a1b31de303a6e9f8b7fa706fd3',61 'reference' => '97f36de86f0d00145a3a1ec5ba064e2d22d65a6d', 62 62 'type' => 'wordpress-plugin', 63 63 'install_path' => __DIR__ . '/../../', … … 66 66 ), 67 67 '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', 71 71 'type' => 'library', 72 72 'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs', … … 84 84 ), 85 85 'phpstan/phpstan' => array( 86 'pretty_version' => '1.1 0.67',87 'version' => '1.1 0.67.0',88 'reference' => ' 16ddbe776f10da6a95ebd25de7c1dbed397dc493',86 'pretty_version' => '1.11.0', 87 'version' => '1.11.0.0', 88 'reference' => '666cb1703742cea9cc80fee631f0940e1592fa6e', 89 89 'type' => 'library', 90 90 'install_path' => __DIR__ . '/../phpstan/phpstan', … … 108 108 ), 109 109 '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', 113 113 'type' => 'library', 114 114 'install_path' => __DIR__ . '/../psr/http-factory', … … 147 147 ), 148 148 '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', 152 152 'type' => 'library', 153 153 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', -
ilovepdf/trunk/vendor/psr/http-factory/composer.json
r2995378 r3086485 1 1 { 2 2 "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", 4 4 "keywords": [ 5 5 "psr", … … 19 19 } 20 20 ], 21 "support": { 22 "source": "https://github.com/php-fig/http-factory" 23 }, 21 24 "require": { 22 "php": ">=7. 0.0",25 "php": ">=7.1", 23 26 "psr/http-message": "^1.0 || ^2.0" 24 27 }, -
ilovepdf/trunk/vendor/psr/http-factory/src/UploadedFileFactoryInterface.php
r2995378 r3086485 16 16 * @param StreamInterface $stream Underlying stream representing the 17 17 * uploaded file content. 18 * @param int $size in bytes18 * @param int|null $size in bytes 19 19 * @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. 22 22 * 23 23 * @return UploadedFileInterface … … 27 27 public function createUploadedFile( 28 28 StreamInterface $stream, 29 int $size = null,29 ?int $size = null, 30 30 int $error = \UPLOAD_ERR_OK, 31 string $clientFilename = null,32 string $clientMediaType = null31 ?string $clientFilename = null, 32 ?string $clientMediaType = null 33 33 ): UploadedFileInterface; 34 34 } -
ilovepdf/trunk/vendor/symfony/deprecation-contracts/composer.json
r2995378 r3086485 26 26 "extra": { 27 27 "branch-alias": { 28 "dev-main": "3. 4-dev"28 "dev-main": "3.5-dev" 29 29 }, 30 30 "thanks": {
Note: See TracChangeset
for help on using the changeset viewer.