Changeset 3220398
- Timestamp:
- 01/10/2025 06:42:17 PM (15 months ago)
- Location:
- ilovepdf
- Files:
-
- 2 deleted
- 34 edited
- 1 copied
-
tags/2.1.6 (copied) (copied from ilovepdf/trunk)
-
tags/2.1.6/README.txt (modified) (3 diffs)
-
tags/2.1.6/assets/js/main.min.js (modified) (2 diffs)
-
tags/2.1.6/composer.json (modified) (1 diff)
-
tags/2.1.6/ilove-pdf.php (modified) (2 diffs)
-
tags/2.1.6/includes/Ilove_Pdf.php (modified) (5 diffs)
-
tags/2.1.6/package.json (modified) (1 diff)
-
tags/2.1.6/phpstan.neon (modified) (1 diff)
-
tags/2.1.6/vendor/autoload.php (modified) (1 diff)
-
tags/2.1.6/vendor/composer/InstalledVersions.php (modified) (3 diffs)
-
tags/2.1.6/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/2.1.6/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.1.6/vendor/composer/installed.json (modified) (18 diffs)
-
tags/2.1.6/vendor/composer/installed.php (modified) (8 diffs)
-
tags/2.1.6/vendor/firebase/php-jwt/CHANGELOG.md (modified) (1 diff)
-
tags/2.1.6/vendor/firebase/php-jwt/src/CachedKeySet.php (modified) (2 diffs)
-
tags/2.1.6/vendor/firebase/php-jwt/src/JWK.php (modified) (3 diffs)
-
tags/2.1.6/vendor/firebase/php-jwt/src/JWT.php (modified) (3 diffs)
-
tags/2.1.6/vendor/symfony/polyfill-php73 (deleted)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/assets/js/main.min.js (modified) (2 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/ilove-pdf.php (modified) (2 diffs)
-
trunk/includes/Ilove_Pdf.php (modified) (5 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/phpstan.neon (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (18 diffs)
-
trunk/vendor/composer/installed.php (modified) (8 diffs)
-
trunk/vendor/firebase/php-jwt/CHANGELOG.md (modified) (1 diff)
-
trunk/vendor/firebase/php-jwt/src/CachedKeySet.php (modified) (2 diffs)
-
trunk/vendor/firebase/php-jwt/src/JWK.php (modified) (3 diffs)
-
trunk/vendor/firebase/php-jwt/src/JWT.php (modified) (3 diffs)
-
trunk/vendor/symfony/polyfill-php73 (deleted)
Legend:
- Unmodified
- Added
- Removed
-
ilovepdf/tags/2.1.6/README.txt
r3192612 r3220398 1 1 === PDF Compressor & Watermark - iLovePDF === 2 2 Plugin Name: Image Compressor & Optimizer - iLovePDF 3 Version: 2.1. 53 Version: 2.1.6 4 4 Author: iLovePDF 5 5 Author URI: https://www.ilovepdf.com/ … … 8 8 Requires at least: 5.3 9 9 Tested up to: 6.7 10 Stable tag: 2.1. 510 Stable tag: 2.1.6 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later … … 81 81 82 82 == Changelog == 83 84 = 2.1.6 = 85 Improved 86 * Update Libraries. 87 * Improved multisite support. 83 88 84 89 = 2.1.5 = -
ilovepdf/tags/2.1.6/assets/js/main.min.js
r3192612 r3220398 1 !function(n){"use strict";n(function(){jQuery(".color-field").wpColorPicker()}),n("#check-all-compress").on("click",function(){this.checked?n(".nslb-input").each(function(){this.checked=!0}):n(".nslb-input").each(function(){this.checked=!1})}),n(".nslb-input").on("click",function(){n(".nslb-input:checked").length==n(".nslb-input").length?n("#check-all-compress").prop("checked",!0):n("#check-all-compress").prop("checked",!1)}),n("#check-all-watermark").on("click",function(){this.checked?n(".nslb-input").each(function(){this.checked=!0}):n(".nslb-input").each(function(){this.checked=!1})}),n(".nslb-input").on("click",function(){n(".nslb-input:checked").length==n(".nslb-input").length?n("#check-all-watermark").prop("checked",!0):n("#check-all-watermark").prop("checked",!1)}),n("input[name$='ilove_pdf_display_settings_format_watermark[ilove_pdf_format_watermark_mode]']").on("change",function(){var e=n(this).val();n("div.watermark-mode").hide(),n("#div-mode"+e).show()});var r=!0,e=(n(".btn-cancel").on("click",function(){r=!1}),0),l=0;function a(i){0==e&&(l=i.length);var s=n("#file-row-"+i[0]).find("td:eq(3)");s.find("a").hide(),n(".all-compressing").show(),s.find(".compressing").show(),e++,n(".all-compressing span").html(e+"/"+l),n(".all-compressing .progress-percent").width(100*e/l+"%"),n.post("admin-post.php?action=ilovepdf_compress&id="+i[0]+"&ajax=1",function(e){var t;""==e||1!=e.status||e.api_error?"error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),s.show()):(s.find(".compressing").hide(),(t=document.createElement("div")).innerHTML=e.api_error,s.find(".error").html(t.innerText).show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?a(i):(n(".all-compressing").hide(),n(r?".compress-success":".compress-abort").show(),n("#cancel-compress").hide())):(s.find(".compressing").hide(),s.find(".success").show(),n("#file-row-"+i[0]).find("td:eq(2)").html(e.compress_size),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?a(i):(n(".all-compressing").hide(),n(r?".compress-success":".compress-abort").show(),n("#cancel-compress").hide(),window.setTimeout(function(){n("#stats_total_files_compressed").html(e.total_files),n("#stats_initial_size").html(e.initial_size),n("#stats_current_size").html(e.current_size),n("#stats_total_percentage").html(e.percentage+"%"),n("#stats_total_percentage").parent(".c100").addClass("p"+e.percentage),n("#compress-pdf-list").load(document.URL+" #compress-pdf-list")},2e3)))},"json")}function o(i){0==e&&(l=i.length);var s=n("#file-row-"+i[0]).find("td:eq(2)");s.find("a").hide(),n(".all-applying-watermark").show(),s.find(".applying-watermark").show(),e++,n(".all-applying-watermark span").html(e+"/"+l),n(".all-applying-watermark .progress-percent").width(100*e/l+"%"),n.post("admin-post.php?action=ilovepdf_watermark&id="+i[0]+"&ajax=1",function(e){var t;""==e||1!=e.status||e.api_error?"error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),s.show()):(s.find(".applying-watermark").hide(),(t=document.createElement("div")).innerHTML=e.api_error,s.find(".error").html(t.innerText).show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?o(i):(n(".all-applying-watermark").hide(),n(r?".applied-success":".applied-abort").show(),n("#cancel-watermark").hide())):(s.find(".applying-watermark").hide(),s.find(".success").show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?o(i):(n(".all-applying-watermark").hide(),n(r?".applied-success":".applied-abort").show(),n("#cancel-watermark").hide(),window.setTimeout(function(){n("#stats_total_files_watermarked").html(e.total_files),n("#watermark-pdf-list").load(document.URL+" #watermark-pdf-list")},2e3)))},"json")}n(".btn-compress-all").on("click",function(){n("#cancel-compress").css("display","inline-block"),n.ajax({type:"POST",url:"admin-post.php?action=ilovepdf_compress_list",success:function(e){var t,e=n.parseJSON(e);""!=e&&1==e.status?(l=e.list_pdf.length,a(e.list_pdf)):((t=document.createElement("div")).innerHTML=e,n(".compress-error").html(t.innerText).show())}})}),window.exportedCompressMultiPDF=a,n(".btn-watermark-all").on("click",function(){n("#cancel-watermark").css("display","inline-block"),n.ajax({type:"POST",url:"admin-post.php?action=ilovepdf_watermark_list",success:function(e){var t,e=n.parseJSON(e);""!=e&&1==e.status?(l=e.list_pdf.length,o(e.list_pdf)):((t=document.createElement("div")).innerHTML=e,n(".applied-error").html(t.innerText).show())}})}),window.exportedWatermarkMultiPDF=o,n(".btn-compress").on("click",function(e){var i=n(this),s=n(this).parent(),r=!1;e.preventDefault(),i.closest(".row-library").find(".btn-watermark").is(":visible")&&(r=!0),i.closest(".row-library").find(".btn-watermark").hide(),n(this).hide(),n(this).nextAll(".compressing").show(),n(this).nextAll(".success").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".compressing").hide(),r&&i.closest(".row-library").find(".btn-watermark").show(),""==e||1!=e.status||e.api_error?("error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),i):((t=document.createElement("div")).innerHTML=e.api_error,1==e.editpdf&&i.nextAll(".error").before("<br /><br />"),i.nextAll(".error").html(t.innerText))).show():(console.log(e.api_error),i.nextAll(".success").show(),n("#stats_total_files_compressed").html(parseInt(n("#stats_total_files_compressed").html())+1),n("#stats_initial_size").html(e.initial_size),n("#stats_current_size").html(e.current_size),n("#stats_total_percentage").html(e.percentage+"%"),n("#stats_total_percentage").parent(".c100").addClass("p"+e.percentage),window.setTimeout(function(){i.nextAll(".success").hide(),1==e.library?i.nextAll(".stats-compress").html('<i class="fa fa-check" aria-hidden="true"></i> Compressed<br />Savings '+e.percent+"%</span>"):(1==e.editpdf?i.prevAll("#current-size").find("strong"):(s.html(e.percent+"%"),s.closest("td").prev("td"))).html(e.compress_size)},3e3))},"json")}),n(".btn-watermark").on("click",function(e){var i=n(this),s=n(this).parent(),r=!1;e.preventDefault(),i.closest(".row-library").find(".btn-compress").is(":visible")&&(r=!0),i.closest(".row-library").find(".btn-compress").hide(),n(this).hide(),n(this).nextAll(".applying-watermark").show(),n(this).prevAll(".stats-compress").hide(),n(this).nextAll(".success").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".applying-watermark").hide(),r&&i.closest(".row-library").find(".btn-compress").show(),""==e||1!=e.status||e.api_error?("error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),i):((t=document.createElement("div")).innerHTML=e.api_error,1==e.editpdf&&i.nextAll(".error").before("<br /><br />"),i.nextAll(".error").html(t.innerText))).show():(i.nextAll(".success").show(),n("#stats_total_files_watermarked").html(parseInt(n("#stats_total_files_watermarked").html())+1),window.setTimeout(function(){i.nextAll(".success").hide(),1==e.library?s.html('<i class="fa fa-check" aria-hidden="true"></i> Stamped'):1==e.editpdf&&s.append('<i class="fa fa-check" aria-hidden="true"></i> Stamped')},3e3))},"json")});const c=`1 (n=>{n(function(){jQuery(".color-field").wpColorPicker()}),n("#check-all-compress").on("click",function(){this.checked?n(".nslb-input").each(function(){this.checked=!0}):n(".nslb-input").each(function(){this.checked=!1})}),n(".nslb-input").on("click",function(){n(".nslb-input:checked").length==n(".nslb-input").length?n("#check-all-compress").prop("checked",!0):n("#check-all-compress").prop("checked",!1)}),n("#check-all-watermark").on("click",function(){this.checked?n(".nslb-input").each(function(){this.checked=!0}):n(".nslb-input").each(function(){this.checked=!1})}),n(".nslb-input").on("click",function(){n(".nslb-input:checked").length==n(".nslb-input").length?n("#check-all-watermark").prop("checked",!0):n("#check-all-watermark").prop("checked",!1)}),n("input[name$='ilove_pdf_display_settings_format_watermark[ilove_pdf_format_watermark_mode]']").on("change",function(){var e=n(this).val();n("div.watermark-mode").hide(),n("#div-mode"+e).show()});var r=!0,e=(n(".btn-cancel").on("click",function(){r=!1}),0),l=0;function a(i){0==e&&(l=i.length);var s=n("#file-row-"+i[0]).find("td:eq(3)");s.find("a").hide(),n(".all-compressing").show(),s.find(".compressing").show(),e++,n(".all-compressing span").html(e+"/"+l),n(".all-compressing .progress-percent").width(100*e/l+"%"),n.post("admin-post.php?action=ilovepdf_compress&id="+i[0]+"&ajax=1",function(e){var t;""==e||1!=e.status||e.api_error?"error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),s.show()):(s.find(".compressing").hide(),(t=document.createElement("div")).innerHTML=e.api_error,s.find(".error").html(t.innerText).show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?a(i):(n(".all-compressing").hide(),n(r?".compress-success":".compress-abort").show(),n("#cancel-compress").hide())):(s.find(".compressing").hide(),s.find(".success").show(),n("#file-row-"+i[0]).find("td:eq(2)").html(e.compress_size),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?a(i):(n(".all-compressing").hide(),n(r?".compress-success":".compress-abort").show(),n("#cancel-compress").hide(),window.setTimeout(function(){n("#stats_total_files_compressed").html(e.total_files),n("#stats_initial_size").html(e.initial_size),n("#stats_current_size").html(e.current_size),n("#stats_total_percentage").html(e.percentage+"%"),n("#stats_total_percentage").parent(".c100").addClass("p"+e.percentage),n("#compress-pdf-list").load(document.URL+" #compress-pdf-list")},2e3)))},"json")}function o(i){0==e&&(l=i.length);var s=n("#file-row-"+i[0]).find("td:eq(2)");s.find("a").hide(),n(".all-applying-watermark").show(),s.find(".applying-watermark").show(),e++,n(".all-applying-watermark span").html(e+"/"+l),n(".all-applying-watermark .progress-percent").width(100*e/l+"%"),n.post("admin-post.php?action=ilovepdf_watermark&id="+i[0]+"&ajax=1",function(e){var t;""==e||1!=e.status||e.api_error?"error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),s.show()):(s.find(".applying-watermark").hide(),(t=document.createElement("div")).innerHTML=e.api_error,s.find(".error").html(t.innerText).show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?o(i):(n(".all-applying-watermark").hide(),n(r?".applied-success":".applied-abort").show(),n("#cancel-watermark").hide())):(s.find(".applying-watermark").hide(),s.find(".success").show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?o(i):(n(".all-applying-watermark").hide(),n(r?".applied-success":".applied-abort").show(),n("#cancel-watermark").hide(),window.setTimeout(function(){n("#stats_total_files_watermarked").html(e.total_files),n("#watermark-pdf-list").load(document.URL+" #watermark-pdf-list")},2e3)))},"json")}n(".btn-compress-all").on("click",function(){n("#cancel-compress").css("display","inline-block"),n.ajax({type:"POST",url:"admin-post.php?action=ilovepdf_compress_list",success:function(e){var t,e=n.parseJSON(e);""!=e&&1==e.status?(l=e.list_pdf.length,a(e.list_pdf)):((t=document.createElement("div")).innerHTML=e,n(".compress-error").html(t.innerText).show())}})}),window.exportedCompressMultiPDF=a,n(".btn-watermark-all").on("click",function(){n("#cancel-watermark").css("display","inline-block"),n.ajax({type:"POST",url:"admin-post.php?action=ilovepdf_watermark_list",success:function(e){var t,e=n.parseJSON(e);""!=e&&1==e.status?(l=e.list_pdf.length,o(e.list_pdf)):((t=document.createElement("div")).innerHTML=e,n(".applied-error").html(t.innerText).show())}})}),window.exportedWatermarkMultiPDF=o,n(".btn-compress").on("click",function(e){var i=n(this),s=n(this).parent(),r=!1;e.preventDefault(),i.closest(".row-library").find(".btn-watermark").is(":visible")&&(r=!0),i.closest(".row-library").find(".btn-watermark").hide(),n(this).hide(),n(this).nextAll(".compressing").show(),n(this).nextAll(".success").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".compressing").hide(),r&&i.closest(".row-library").find(".btn-watermark").show(),""==e||1!=e.status||e.api_error?("error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),i):((t=document.createElement("div")).innerHTML=e.api_error,1==e.editpdf&&i.nextAll(".error").before("<br /><br />"),i.nextAll(".error").html(t.innerText))).show():(console.log(e.api_error),i.nextAll(".success").show(),n("#stats_total_files_compressed").html(parseInt(n("#stats_total_files_compressed").html())+1),n("#stats_initial_size").html(e.initial_size),n("#stats_current_size").html(e.current_size),n("#stats_total_percentage").html(e.percentage+"%"),n("#stats_total_percentage").parent(".c100").addClass("p"+e.percentage),window.setTimeout(function(){i.nextAll(".success").hide(),1==e.library?i.nextAll(".stats-compress").html('<i class="fa fa-check" aria-hidden="true"></i> Compressed<br />Savings '+e.percent+"%</span>"):(1==e.editpdf?i.prevAll("#current-size").find("strong"):(s.html(e.percent+"%"),s.closest("td").prev("td"))).html(e.compress_size)},3e3))},"json")}),n(".btn-watermark").on("click",function(e){var i=n(this),s=n(this).parent(),r=!1;e.preventDefault(),i.closest(".row-library").find(".btn-compress").is(":visible")&&(r=!0),i.closest(".row-library").find(".btn-compress").hide(),n(this).hide(),n(this).nextAll(".applying-watermark").show(),n(this).prevAll(".stats-compress").hide(),n(this).nextAll(".success").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".applying-watermark").hide(),r&&i.closest(".row-library").find(".btn-compress").show(),""==e||1!=e.status||e.api_error?("error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),i):((t=document.createElement("div")).innerHTML=e.api_error,1==e.editpdf&&i.nextAll(".error").before("<br /><br />"),i.nextAll(".error").html(t.innerText))).show():(i.nextAll(".success").show(),n("#stats_total_files_watermarked").html(parseInt(n("#stats_total_files_watermarked").html())+1),window.setTimeout(function(){i.nextAll(".success").hide(),1==e.library?s.html('<i class="fa fa-check" aria-hidden="true"></i> Stamped'):1==e.editpdf&&s.append('<i class="fa fa-check" aria-hidden="true"></i> Stamped')},3e3))},"json")});let c=` 2 2 <dialog id="ilovepdf-restore-dialog" class="ilovepdf-restore-dialog"> 3 3 <h2 class="ilovepdf-title-dialog">Attention!</h2> … … 7 7 <button id="ilovepdf-dialog-close" class="button-secondary">Close</button> 8 8 </div> 9 </dialog>`;n(".btn-restore").on("click",function(e){var i=n(this);e.preventDefault(),n(this).parent().append(c); const t=document.getElementById("ilovepdf-restore-dialog");var e=document.getElementById("ilovepdf-dialog-aceptted"),s=document.getElementById("ilovepdf-dialog-close");t.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.close(),n(this).hide(),n(this).prev().hide(),n(this).nextAll(".loading").show(),n(this).parent().prevAll(".row-compress-tool").hide(),n(this).parent().prevAll(".row-watermark-tool").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".loading").hide(),(""===e?i.nextAll(".success"):((t=document.createElement("div")).innerHTML=e,i.nextAll(".error").html(t.innerText))).show()})}),s.addEventListener("click",e=>{e.preventDefault(),t.close()})}),n(".ilovepdf--meta-box-container .link-restore, .compat-field-iLovePDF-tools .link-restore").on("click",function(e){const t=n(this)[0].href,i=(e.preventDefault(),n(".ilovepdf--meta-box-container").append(c),document.getElementById("ilovepdf-restore-dialog"));var e=document.getElementById("ilovepdf-dialog-aceptted"),s=document.getElementById("ilovepdf-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),i.close(),location.href=t}),s.addEventListener("click",e=>{e.preventDefault(),i.close()})})}(jQuery);9 </dialog>`;n(".btn-restore").on("click",function(e){var i=n(this);e.preventDefault(),n(this).parent().append(c);let t=document.getElementById("ilovepdf-restore-dialog");var e=document.getElementById("ilovepdf-dialog-aceptted"),s=document.getElementById("ilovepdf-dialog-close");t.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.close(),n(this).hide(),n(this).prev().hide(),n(this).nextAll(".loading").show(),n(this).parent().prevAll(".row-compress-tool").hide(),n(this).parent().prevAll(".row-watermark-tool").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".loading").hide(),(""===e?i.nextAll(".success"):((t=document.createElement("div")).innerHTML=e,i.nextAll(".error").html(t.innerText))).show()})}),s.addEventListener("click",e=>{e.preventDefault(),t.close()})}),n(".ilovepdf--meta-box-container .link-restore, .compat-field-iLovePDF-tools .link-restore").on("click",function(e){let t=n(this),i=t[0].href,s=(e.preventDefault(),n(".ilovepdf--meta-box-container").append(c),document.getElementById("ilovepdf-restore-dialog"));var e=document.getElementById("ilovepdf-dialog-aceptted"),r=document.getElementById("ilovepdf-dialog-close");s.showModal(),e.addEventListener("click",e=>{e.preventDefault(),s.close(),location.href=i}),r.addEventListener("click",e=>{e.preventDefault(),s.close()})})})(jQuery); -
ilovepdf/tags/2.1.6/composer.json
r3192612 r3220398 16 16 }, 17 17 "require-dev": { 18 "phpstan/phpstan": "^ 1.12",19 "szepeviktor/phpstan-wordpress": "^ 1.3",18 "phpstan/phpstan": "^2.1", 19 "szepeviktor/phpstan-wordpress": "^2.0", 20 20 "phpstan/extension-installer": "^1.4", 21 21 "wp-coding-standards/wpcs": "^3.0" -
ilovepdf/tags/2.1.6/ilove-pdf.php
r3192612 r3220398 11 11 * Plugin URI: https://iloveapi.com/ 12 12 * 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. 13 * Version: 2.1. 513 * Version: 2.1.6 14 14 * Requires at least: 5.3 15 15 * Requires PHP: 7.4 … … 75 75 } 76 76 77 Ilove_Pdf::update_option( 'ilove_pdf_display_general_settings', $get_options );77 Ilove_Pdf::update_option( 'ilove_pdf_display_general_settings', $get_options, true ); 78 78 79 79 } -
ilovepdf/tags/2.1.6/includes/Ilove_Pdf.php
r3192612 r3220398 75 75 76 76 $this->plugin_name = 'ilove-pdf'; 77 $this->version = 'wp.2.1. 5';77 $this->version = 'wp.2.1.6'; 78 78 79 79 $this->load_dependencies(); … … 181 181 182 182 /** 183 * Determines whether Multisite is enabled.184 *185 * @since 2.1.5186 * @return bool True if Multisite is enabled, false otherwise.187 */188 public static function is_multisite() {189 return is_multisite();190 }191 192 /**193 183 * Update option, works with multisite if enabled 194 184 * … … 196 186 * @param string $option Name of the option to update. Expected to not be SQL-escaped. 197 187 * @param mixed $value Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped. 188 * @param bool $update_all_sites Optional. Whether to update all sites in the network. 198 189 * @param bool|null $autoload Optional. Whether to load the option when WordPress starts up. Accepts a boolean, or null. 199 190 */ 200 public static function update_option( $option, $value, $ autoload = null ) {201 202 if ( ! self::is_multisite() ) {191 public static function update_option( $option, $value, $update_all_sites = false, $autoload = null ) { 192 193 if ( ! is_multisite() ) { 203 194 update_option( $option, $value, $autoload ); 204 195 return; 205 196 } 206 197 207 $sites = get_sites(); 208 foreach ( $sites as $site ) { 209 switch_to_blog( (int) $site->blog_id ); 210 update_option( $option, $value, $autoload ); 211 restore_current_blog(); 212 } 198 if ( ! $update_all_sites ) { 199 self::switch_update_blog( get_current_blog_id(), $option, $value, $autoload ); 200 return; 201 } 202 203 $sites = get_sites(); 204 foreach ( $sites as $site ) { 205 self::switch_update_blog( (int) $site->blog_id, $option, $value, $autoload ); 206 } 213 207 } 214 208 … … 225 219 } 226 220 227 if ( ! self::is_multisite() ) {221 if ( ! is_multisite() ) { 228 222 foreach ( $directories as $directory ) { 229 223 $upload_dir = wp_upload_dir(); … … 253 247 } 254 248 } 249 250 /** 251 * Switch to blog and update option 252 * 253 * @since 2.1.6 254 * @param int $blog_id ID of the blog to switch to. 255 * @param string $option Name of the option to update. 256 * @param mixed $value Option value. 257 * @param bool|null $autoload Whether to load the option when WordPress starts up. 258 */ 259 private static function switch_update_blog( $blog_id, $option, $value, $autoload ) { 260 switch_to_blog( $blog_id ); 261 update_option( $option, $value, $autoload ); 262 restore_current_blog(); 263 } 255 264 } -
ilovepdf/tags/2.1.6/package.json
r3192612 r3220398 14 14 "gulp-clean-css": "^4.3.0", 15 15 "gulp-rename": "^2.0.0", 16 "gulp-sass": "^ 5.1.0",16 "gulp-sass": "^6.0.0", 17 17 "gulp-uglify": "^3.0.2", 18 18 "merge-stream": "^2.0.0", 19 "sass": "^1.8 0"19 "sass": "^1.83" 20 20 } 21 21 } -
ilovepdf/tags/2.1.6/phpstan.neon
r3078801 r3220398 9 9 analyseAndScan: 10 10 - vendor 11 - node_modules 11 - node_modules? 12 12 analyse: 13 13 - vendor/ilovepdf -
ilovepdf/tags/2.1.6/vendor/autoload.php
r3192612 r3220398 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 634bd29bd263e33ce5cb3f59c562e5cc::getLoader();25 return ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31::getLoader(); -
ilovepdf/tags/2.1.6/vendor/composer/InstalledVersions.php
r2995378 r3220398 323 323 324 324 $installed = array(); 325 $copiedLocalDir = false; 325 326 326 327 if (self::$canGetVendors) { … … 331 332 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 333 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 334 self::$installedByVendor[$vendorDir] = $required; 335 $installed[] = $required; 336 if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 337 self::$installed = $required; 338 $copiedLocalDir = true; 336 339 } 337 340 } … … 351 354 } 352 355 353 if (self::$installed !== array() ) {356 if (self::$installed !== array() && !$copiedLocalDir) { 354 357 $installed[] = self::$installed; 355 358 } -
ilovepdf/tags/2.1.6/vendor/composer/autoload_real.php
r3192612 r3220398 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 634bd29bd263e33ce5cb3f59c562e5cc5 class ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 634bd29bd263e33ce5cb3f59c562e5cc', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 634bd29bd263e33ce5cb3f59c562e5cc', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::getInitializer($loader)); 31 31 32 32 $loader->register(true); 33 33 34 $filesToLoad = \Composer\Autoload\ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::$files;34 $filesToLoad = \Composer\Autoload\ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$files; 35 35 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 36 36 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
ilovepdf/tags/2.1.6/vendor/composer/autoload_static.php
r3192612 r3220398 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc7 class ComposerStaticInit52f8510a30b66ec23034f2df95e5df31 8 8 { 9 9 public static $files = array ( … … 84 84 { 85 85 return \Closure::bind(function () use ($loader) { 86 $loader->prefixLengthsPsr4 = ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::$prefixLengthsPsr4;87 $loader->prefixDirsPsr4 = ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::$prefixDirsPsr4;88 $loader->classMap = ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::$classMap;86 $loader->prefixLengthsPsr4 = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$prefixLengthsPsr4; 87 $loader->prefixDirsPsr4 = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$prefixDirsPsr4; 88 $loader->classMap = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$classMap; 89 89 90 90 }, null, ClassLoader::class); -
ilovepdf/tags/2.1.6/vendor/composer/installed.json
r3192612 r3220398 84 84 { 85 85 "name": "firebase/php-jwt", 86 "version": "v6.10. 1",87 "version_normalized": "6.10. 1.0",86 "version": "v6.10.2", 87 "version_normalized": "6.10.2.0", 88 88 "source": { 89 89 "type": "git", 90 90 "url": "https://github.com/firebase/php-jwt.git", 91 "reference": " 500501c2ce893c824c801da135d02661199f60c5"92 }, 93 "dist": { 94 "type": "zip", 95 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/ 500501c2ce893c824c801da135d02661199f60c5",96 "reference": " 500501c2ce893c824c801da135d02661199f60c5",91 "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b" 92 }, 93 "dist": { 94 "type": "zip", 95 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/30c19ed0f3264cb660ea496895cfb6ef7ee3653b", 96 "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b", 97 97 "shasum": "" 98 98 }, … … 112 112 "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" 113 113 }, 114 "time": "2024- 05-18T18:05:11+00:00",114 "time": "2024-11-24T11:22:49+00:00", 115 115 "type": "library", 116 116 "installation-source": "dist", … … 144 144 "support": { 145 145 "issues": "https://github.com/firebase/php-jwt/issues", 146 "source": "https://github.com/firebase/php-jwt/tree/v6.10. 1"146 "source": "https://github.com/firebase/php-jwt/tree/v6.10.2" 147 147 }, 148 148 "install-path": "../firebase/php-jwt" … … 535 535 { 536 536 "name": "php-stubs/wordpress-stubs", 537 "version": "v6. 6.2",538 "version_normalized": "6. 6.2.0",537 "version": "v6.7.1", 538 "version_normalized": "6.7.1.0", 539 539 "source": { 540 540 "type": "git", 541 541 "url": "https://github.com/php-stubs/wordpress-stubs.git", 542 "reference": " f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc"543 }, 544 "dist": { 545 "type": "zip", 546 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/ f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",547 "reference": " f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",542 "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1" 543 }, 544 "dist": { 545 "type": "zip", 546 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/83448e918bf06d1ed3d67ceb6a985fc266a02fd1", 547 "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1", 548 548 "shasum": "" 549 549 }, … … 554 554 "php-stubs/generator": "^0.8.3", 555 555 "phpdocumentor/reflection-docblock": "^5.4.1", 556 "phpstan/phpstan": "^1.1 0.49",556 "phpstan/phpstan": "^1.11", 557 557 "phpunit/phpunit": "^9.5", 558 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1. 0",558 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.1.1", 559 559 "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" 560 560 }, … … 564 564 "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" 565 565 }, 566 "time": "2024- 09-30T07:10:48+00:00",566 "time": "2024-11-24T03:57:09+00:00", 567 567 "type": "library", 568 568 "installation-source": "dist", … … 580 580 "support": { 581 581 "issues": "https://github.com/php-stubs/wordpress-stubs/issues", 582 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6. 6.2"582 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.7.1" 583 583 }, 584 584 "install-path": "../php-stubs/wordpress-stubs" … … 809 809 { 810 810 "name": "phpstan/phpstan", 811 "version": " 1.12.11",812 "version_normalized": " 1.12.11.0",811 "version": "2.1.1", 812 "version_normalized": "2.1.1.0", 813 813 "source": { 814 814 "type": "git", 815 815 "url": "https://github.com/phpstan/phpstan.git", 816 "reference": " 0d1fc20a962a91be578bcfe7cf939e6e1a2ff733"817 }, 818 "dist": { 819 "type": "zip", 820 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ 0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",821 "reference": " 0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",822 "shasum": "" 823 }, 824 "require": { 825 "php": "^7. 2|^8.0"816 "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7" 817 }, 818 "dist": { 819 "type": "zip", 820 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7", 821 "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7", 822 "shasum": "" 823 }, 824 "require": { 825 "php": "^7.4|^8.0" 826 826 }, 827 827 "conflict": { 828 828 "phpstan/phpstan-shim": "*" 829 829 }, 830 "time": "202 4-11-17T14:08:01+00:00",830 "time": "2025-01-05T16:43:48+00:00", 831 831 "bin": [ 832 832 "phpstan", … … 1086 1086 { 1087 1087 "name": "squizlabs/php_codesniffer", 1088 "version": "3.11. 1",1089 "version_normalized": "3.11. 1.0",1088 "version": "3.11.2", 1089 "version_normalized": "3.11.2.0", 1090 1090 "source": { 1091 1091 "type": "git", 1092 1092 "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", 1093 "reference": "1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87"1094 }, 1095 "dist": { 1096 "type": "zip", 1097 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87",1098 "reference": "1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87",1093 "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079" 1094 }, 1095 "dist": { 1096 "type": "zip", 1097 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079", 1098 "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079", 1099 1099 "shasum": "" 1100 1100 }, … … 1108 1108 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" 1109 1109 }, 1110 "time": "2024-1 1-16T12:02:36+00:00",1110 "time": "2024-12-11T16:04:26+00:00", 1111 1111 "bin": [ 1112 1112 "bin/phpcbf", … … 1169 1169 { 1170 1170 "name": "symfony/deprecation-contracts", 1171 "version": "v3.5. 0",1172 "version_normalized": "3.5. 0.0",1171 "version": "v3.5.1", 1172 "version_normalized": "3.5.1.0", 1173 1173 "source": { 1174 1174 "type": "git", 1175 1175 "url": "https://github.com/symfony/deprecation-contracts.git", 1176 "reference": " 0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"1177 }, 1178 "dist": { 1179 "type": "zip", 1180 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/ 0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",1181 "reference": " 0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",1176 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" 1177 }, 1178 "dist": { 1179 "type": "zip", 1180 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", 1181 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", 1182 1182 "shasum": "" 1183 1183 }, … … 1185 1185 "php": ">=8.1" 1186 1186 }, 1187 "time": "2024-0 4-18T09:32:20+00:00",1187 "time": "2024-09-25T14:20:29+00:00", 1188 1188 "type": "library", 1189 1189 "extra": { 1190 "thanks": { 1191 "url": "https://github.com/symfony/contracts", 1192 "name": "symfony/contracts" 1193 }, 1190 1194 "branch-alias": { 1191 1195 "dev-main": "3.5-dev" 1192 },1193 "thanks": {1194 "name": "symfony/contracts",1195 "url": "https://github.com/symfony/contracts"1196 1196 } 1197 1197 }, … … 1219 1219 "homepage": "https://symfony.com", 1220 1220 "support": { 1221 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5. 0"1221 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" 1222 1222 }, 1223 1223 "funding": [ … … 1238 1238 }, 1239 1239 { 1240 "name": "symfony/polyfill-php73",1241 "version": "v1.31.0",1242 "version_normalized": "1.31.0.0",1243 "source": {1244 "type": "git",1245 "url": "https://github.com/symfony/polyfill-php73.git",1246 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb"1247 },1248 "dist": {1249 "type": "zip",1250 "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb",1251 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb",1252 "shasum": ""1253 },1254 "require": {1255 "php": ">=7.2"1256 },1257 "time": "2024-09-09T11:45:10+00:00",1258 "type": "library",1259 "extra": {1260 "thanks": {1261 "name": "symfony/polyfill",1262 "url": "https://github.com/symfony/polyfill"1263 }1264 },1265 "installation-source": "dist",1266 "autoload": {1267 "files": [1268 "bootstrap.php"1269 ],1270 "psr-4": {1271 "Symfony\\Polyfill\\Php73\\": ""1272 },1273 "classmap": [1274 "Resources/stubs"1275 ]1276 },1277 "notification-url": "https://packagist.org/downloads/",1278 "license": [1279 "MIT"1280 ],1281 "authors": [1282 {1283 "name": "Nicolas Grekas",1284 "email": "p@tchwork.com"1285 },1286 {1287 "name": "Symfony Community",1288 "homepage": "https://symfony.com/contributors"1289 }1290 ],1291 "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",1292 "homepage": "https://symfony.com",1293 "keywords": [1294 "compatibility",1295 "polyfill",1296 "portable",1297 "shim"1298 ],1299 "support": {1300 "source": "https://github.com/symfony/polyfill-php73/tree/v1.31.0"1301 },1302 "funding": [1303 {1304 "url": "https://symfony.com/sponsor",1305 "type": "custom"1306 },1307 {1308 "url": "https://github.com/fabpot",1309 "type": "github"1310 },1311 {1312 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",1313 "type": "tidelift"1314 }1315 ],1316 "install-path": "../symfony/polyfill-php73"1317 },1318 {1319 1240 "name": "szepeviktor/phpstan-wordpress", 1320 "version": "v 1.3.5",1321 "version_normalized": " 1.3.5.0",1241 "version": "v2.0.1", 1242 "version_normalized": "2.0.1.0", 1322 1243 "source": { 1323 1244 "type": "git", 1324 1245 "url": "https://github.com/szepeviktor/phpstan-wordpress.git", 1325 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7" 1326 }, 1327 "dist": { 1328 "type": "zip", 1329 "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/7f8cfe992faa96b6a33bbd75c7bace98864161e7", 1330 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7", 1331 "shasum": "" 1332 }, 1333 "require": { 1334 "php": "^7.2 || ^8.0", 1335 "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0", 1336 "phpstan/phpstan": "^1.10.31", 1337 "symfony/polyfill-php73": "^1.12.0" 1246 "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e" 1247 }, 1248 "dist": { 1249 "type": "zip", 1250 "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/f7beb13cd22998e3d913fdb897a1e2553ccd637e", 1251 "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e", 1252 "shasum": "" 1253 }, 1254 "require": { 1255 "php": "^7.4 || ^8.0", 1256 "php-stubs/wordpress-stubs": "^6.6.2", 1257 "phpstan/phpstan": "^2.0" 1338 1258 }, 1339 1259 "require-dev": { … … 1341 1261 "dealerdirect/phpcodesniffer-composer-installer": "^1.0", 1342 1262 "php-parallel-lint/php-parallel-lint": "^1.1", 1343 "phpstan/phpstan-strict-rules": "^ 1.2",1344 "phpunit/phpunit": "^ 8.0 || ^9.0",1263 "phpstan/phpstan-strict-rules": "^2.0", 1264 "phpunit/phpunit": "^9.0", 1345 1265 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0", 1346 1266 "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" … … 1349 1269 "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods" 1350 1270 }, 1351 "time": "2024- 06-28T22:27:19+00:00",1271 "time": "2024-12-01T02:13:05+00:00", 1352 1272 "type": "phpstan-extension", 1353 1273 "extra": { … … 1378 1298 "support": { 1379 1299 "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues", 1380 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v 1.3.5"1300 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1" 1381 1301 }, 1382 1302 "install-path": "../szepeviktor/phpstan-wordpress" … … 1461 1381 "phpstan/phpstan", 1462 1382 "squizlabs/php_codesniffer", 1463 "symfony/polyfill-php73",1464 1383 "szepeviktor/phpstan-wordpress", 1465 1384 "wp-coding-standards/wpcs" -
ilovepdf/tags/2.1.6/vendor/composer/installed.php
r3192612 r3220398 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' 83f65b08d9396b3ea5971df4ddad8f61abe1123a',6 'reference' => '7f4c5eee2d7205b8ff3b601e5845e6457c8cf675', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'firebase/php-jwt' => array( 23 'pretty_version' => 'v6.10. 1',24 'version' => '6.10. 1.0',25 'reference' => ' 500501c2ce893c824c801da135d02661199f60c5',23 'pretty_version' => 'v6.10.2', 24 'version' => '6.10.2.0', 25 'reference' => '30c19ed0f3264cb660ea496895cfb6ef7ee3653b', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../firebase/php-jwt', … … 68 68 'pretty_version' => 'dev-develop', 69 69 'version' => 'dev-develop', 70 'reference' => ' 83f65b08d9396b3ea5971df4ddad8f61abe1123a',70 'reference' => '7f4c5eee2d7205b8ff3b601e5845e6457c8cf675', 71 71 'type' => 'wordpress-plugin', 72 72 'install_path' => __DIR__ . '/../../', … … 75 75 ), 76 76 'php-stubs/wordpress-stubs' => array( 77 'pretty_version' => 'v6. 6.2',78 'version' => '6. 6.2.0',79 'reference' => ' f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc',77 'pretty_version' => 'v6.7.1', 78 'version' => '6.7.1.0', 79 'reference' => '83448e918bf06d1ed3d67ceb6a985fc266a02fd1', 80 80 'type' => 'library', 81 81 'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs', … … 111 111 ), 112 112 'phpstan/phpstan' => array( 113 'pretty_version' => ' 1.12.11',114 'version' => ' 1.12.11.0',115 'reference' => ' 0d1fc20a962a91be578bcfe7cf939e6e1a2ff733',113 'pretty_version' => '2.1.1', 114 'version' => '2.1.1.0', 115 'reference' => 'cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7', 116 116 'type' => 'library', 117 117 'install_path' => __DIR__ . '/../phpstan/phpstan', … … 174 174 ), 175 175 'squizlabs/php_codesniffer' => array( 176 'pretty_version' => '3.11. 1',177 'version' => '3.11. 1.0',178 'reference' => '1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87',176 'pretty_version' => '3.11.2', 177 'version' => '3.11.2.0', 178 'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079', 179 179 'type' => 'library', 180 180 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer', … … 183 183 ), 184 184 'symfony/deprecation-contracts' => array( 185 'pretty_version' => 'v3.5. 0',186 'version' => '3.5. 0.0',187 'reference' => ' 0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1',185 'pretty_version' => 'v3.5.1', 186 'version' => '3.5.1.0', 187 'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6', 188 188 'type' => 'library', 189 189 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', … … 191 191 'dev_requirement' => false, 192 192 ), 193 'symfony/polyfill-php73' => array(194 'pretty_version' => 'v1.31.0',195 'version' => '1.31.0.0',196 'reference' => '0f68c03565dcaaf25a890667542e8bd75fe7e5bb',197 'type' => 'library',198 'install_path' => __DIR__ . '/../symfony/polyfill-php73',199 'aliases' => array(),200 'dev_requirement' => true,201 ),202 193 'szepeviktor/phpstan-wordpress' => array( 203 'pretty_version' => 'v 1.3.5',204 'version' => ' 1.3.5.0',205 'reference' => ' 7f8cfe992faa96b6a33bbd75c7bace98864161e7',194 'pretty_version' => 'v2.0.1', 195 'version' => '2.0.1.0', 196 'reference' => 'f7beb13cd22998e3d913fdb897a1e2553ccd637e', 206 197 'type' => 'phpstan-extension', 207 198 'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress', -
ilovepdf/tags/2.1.6/vendor/firebase/php-jwt/CHANGELOG.md
r3118395 r3220398 1 1 # Changelog 2 3 ## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24) 4 5 6 ### Bug Fixes 7 8 * Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5)) 9 * support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e)) 2 10 3 11 ## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18) -
ilovepdf/tags/2.1.6/vendor/firebase/php-jwt/src/CachedKeySet.php
r3118395 r3220398 81 81 RequestFactoryInterface $httpFactory, 82 82 CacheItemPoolInterface $cache, 83 int $expiresAfter = null,83 ?int $expiresAfter = null, 84 84 bool $rateLimit = false, 85 string $defaultAlg = null85 ?string $defaultAlg = null 86 86 ) { 87 87 $this->jwksUri = $jwksUri; … … 181 181 if ($jwksResponse->getStatusCode() !== 200) { 182 182 throw new UnexpectedValueException( 183 sprintf('HTTP Error: %d %s for URI "%s"',183 \sprintf('HTTP Error: %d %s for URI "%s"', 184 184 $jwksResponse->getStatusCode(), 185 185 $jwksResponse->getReasonPhrase(), -
ilovepdf/tags/2.1.6/vendor/firebase/php-jwt/src/JWK.php
r2995378 r3220398 53 53 * @uses parseKey 54 54 */ 55 public static function parseKeySet(array $jwks, string $defaultAlg = null): array55 public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array 56 56 { 57 57 $keys = []; … … 94 94 * @uses createPemFromModulusAndExponent 95 95 */ 96 public static function parseKey(array $jwk, string $defaultAlg = null): ?Key96 public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key 97 97 { 98 98 if (empty($jwk)) { … … 213 213 ); 214 214 215 return sprintf(215 return \sprintf( 216 216 "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n", 217 217 wordwrap(base64_encode($pem), 64, "\n", true) -
ilovepdf/tags/2.1.6/vendor/firebase/php-jwt/src/JWT.php
r3118395 r3220398 97 97 string $jwt, 98 98 $keyOrKeyArray, 99 stdClass &$headers = null99 ?stdClass &$headers = null 100 100 ): stdClass { 101 101 // Validate JWT … … 201 201 $key, 202 202 string $alg, 203 string $keyId = null,204 array $head = null203 ?string $keyId = null, 204 ?array $head = null 205 205 ): string { 206 206 $header = ['typ' => 'JWT']; 207 if (isset($head) && \is_array($head)) {207 if (isset($head)) { 208 208 $header = \array_merge($header, $head); 209 209 } … … 388 388 public static function jsonEncode(array $input): string 389 389 { 390 if (PHP_VERSION_ID >= 50400) { 391 $json = \json_encode($input, \JSON_UNESCAPED_SLASHES); 392 } else { 393 // PHP 5.3 only 394 $json = \json_encode($input); 395 } 390 $json = \json_encode($input, \JSON_UNESCAPED_SLASHES); 396 391 if ($errno = \json_last_error()) { 397 392 self::handleJsonError($errno); -
ilovepdf/trunk/README.txt
r3192612 r3220398 1 1 === PDF Compressor & Watermark - iLovePDF === 2 2 Plugin Name: Image Compressor & Optimizer - iLovePDF 3 Version: 2.1. 53 Version: 2.1.6 4 4 Author: iLovePDF 5 5 Author URI: https://www.ilovepdf.com/ … … 8 8 Requires at least: 5.3 9 9 Tested up to: 6.7 10 Stable tag: 2.1. 510 Stable tag: 2.1.6 11 11 Requires PHP: 7.4 12 12 License: GPLv2 or later … … 81 81 82 82 == Changelog == 83 84 = 2.1.6 = 85 Improved 86 * Update Libraries. 87 * Improved multisite support. 83 88 84 89 = 2.1.5 = -
ilovepdf/trunk/assets/js/main.min.js
r3192612 r3220398 1 !function(n){"use strict";n(function(){jQuery(".color-field").wpColorPicker()}),n("#check-all-compress").on("click",function(){this.checked?n(".nslb-input").each(function(){this.checked=!0}):n(".nslb-input").each(function(){this.checked=!1})}),n(".nslb-input").on("click",function(){n(".nslb-input:checked").length==n(".nslb-input").length?n("#check-all-compress").prop("checked",!0):n("#check-all-compress").prop("checked",!1)}),n("#check-all-watermark").on("click",function(){this.checked?n(".nslb-input").each(function(){this.checked=!0}):n(".nslb-input").each(function(){this.checked=!1})}),n(".nslb-input").on("click",function(){n(".nslb-input:checked").length==n(".nslb-input").length?n("#check-all-watermark").prop("checked",!0):n("#check-all-watermark").prop("checked",!1)}),n("input[name$='ilove_pdf_display_settings_format_watermark[ilove_pdf_format_watermark_mode]']").on("change",function(){var e=n(this).val();n("div.watermark-mode").hide(),n("#div-mode"+e).show()});var r=!0,e=(n(".btn-cancel").on("click",function(){r=!1}),0),l=0;function a(i){0==e&&(l=i.length);var s=n("#file-row-"+i[0]).find("td:eq(3)");s.find("a").hide(),n(".all-compressing").show(),s.find(".compressing").show(),e++,n(".all-compressing span").html(e+"/"+l),n(".all-compressing .progress-percent").width(100*e/l+"%"),n.post("admin-post.php?action=ilovepdf_compress&id="+i[0]+"&ajax=1",function(e){var t;""==e||1!=e.status||e.api_error?"error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),s.show()):(s.find(".compressing").hide(),(t=document.createElement("div")).innerHTML=e.api_error,s.find(".error").html(t.innerText).show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?a(i):(n(".all-compressing").hide(),n(r?".compress-success":".compress-abort").show(),n("#cancel-compress").hide())):(s.find(".compressing").hide(),s.find(".success").show(),n("#file-row-"+i[0]).find("td:eq(2)").html(e.compress_size),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?a(i):(n(".all-compressing").hide(),n(r?".compress-success":".compress-abort").show(),n("#cancel-compress").hide(),window.setTimeout(function(){n("#stats_total_files_compressed").html(e.total_files),n("#stats_initial_size").html(e.initial_size),n("#stats_current_size").html(e.current_size),n("#stats_total_percentage").html(e.percentage+"%"),n("#stats_total_percentage").parent(".c100").addClass("p"+e.percentage),n("#compress-pdf-list").load(document.URL+" #compress-pdf-list")},2e3)))},"json")}function o(i){0==e&&(l=i.length);var s=n("#file-row-"+i[0]).find("td:eq(2)");s.find("a").hide(),n(".all-applying-watermark").show(),s.find(".applying-watermark").show(),e++,n(".all-applying-watermark span").html(e+"/"+l),n(".all-applying-watermark .progress-percent").width(100*e/l+"%"),n.post("admin-post.php?action=ilovepdf_watermark&id="+i[0]+"&ajax=1",function(e){var t;""==e||1!=e.status||e.api_error?"error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),s.show()):(s.find(".applying-watermark").hide(),(t=document.createElement("div")).innerHTML=e.api_error,s.find(".error").html(t.innerText).show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?o(i):(n(".all-applying-watermark").hide(),n(r?".applied-success":".applied-abort").show(),n("#cancel-watermark").hide())):(s.find(".applying-watermark").hide(),s.find(".success").show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?o(i):(n(".all-applying-watermark").hide(),n(r?".applied-success":".applied-abort").show(),n("#cancel-watermark").hide(),window.setTimeout(function(){n("#stats_total_files_watermarked").html(e.total_files),n("#watermark-pdf-list").load(document.URL+" #watermark-pdf-list")},2e3)))},"json")}n(".btn-compress-all").on("click",function(){n("#cancel-compress").css("display","inline-block"),n.ajax({type:"POST",url:"admin-post.php?action=ilovepdf_compress_list",success:function(e){var t,e=n.parseJSON(e);""!=e&&1==e.status?(l=e.list_pdf.length,a(e.list_pdf)):((t=document.createElement("div")).innerHTML=e,n(".compress-error").html(t.innerText).show())}})}),window.exportedCompressMultiPDF=a,n(".btn-watermark-all").on("click",function(){n("#cancel-watermark").css("display","inline-block"),n.ajax({type:"POST",url:"admin-post.php?action=ilovepdf_watermark_list",success:function(e){var t,e=n.parseJSON(e);""!=e&&1==e.status?(l=e.list_pdf.length,o(e.list_pdf)):((t=document.createElement("div")).innerHTML=e,n(".applied-error").html(t.innerText).show())}})}),window.exportedWatermarkMultiPDF=o,n(".btn-compress").on("click",function(e){var i=n(this),s=n(this).parent(),r=!1;e.preventDefault(),i.closest(".row-library").find(".btn-watermark").is(":visible")&&(r=!0),i.closest(".row-library").find(".btn-watermark").hide(),n(this).hide(),n(this).nextAll(".compressing").show(),n(this).nextAll(".success").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".compressing").hide(),r&&i.closest(".row-library").find(".btn-watermark").show(),""==e||1!=e.status||e.api_error?("error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),i):((t=document.createElement("div")).innerHTML=e.api_error,1==e.editpdf&&i.nextAll(".error").before("<br /><br />"),i.nextAll(".error").html(t.innerText))).show():(console.log(e.api_error),i.nextAll(".success").show(),n("#stats_total_files_compressed").html(parseInt(n("#stats_total_files_compressed").html())+1),n("#stats_initial_size").html(e.initial_size),n("#stats_current_size").html(e.current_size),n("#stats_total_percentage").html(e.percentage+"%"),n("#stats_total_percentage").parent(".c100").addClass("p"+e.percentage),window.setTimeout(function(){i.nextAll(".success").hide(),1==e.library?i.nextAll(".stats-compress").html('<i class="fa fa-check" aria-hidden="true"></i> Compressed<br />Savings '+e.percent+"%</span>"):(1==e.editpdf?i.prevAll("#current-size").find("strong"):(s.html(e.percent+"%"),s.closest("td").prev("td"))).html(e.compress_size)},3e3))},"json")}),n(".btn-watermark").on("click",function(e){var i=n(this),s=n(this).parent(),r=!1;e.preventDefault(),i.closest(".row-library").find(".btn-compress").is(":visible")&&(r=!0),i.closest(".row-library").find(".btn-compress").hide(),n(this).hide(),n(this).nextAll(".applying-watermark").show(),n(this).prevAll(".stats-compress").hide(),n(this).nextAll(".success").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".applying-watermark").hide(),r&&i.closest(".row-library").find(".btn-compress").show(),""==e||1!=e.status||e.api_error?("error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),i):((t=document.createElement("div")).innerHTML=e.api_error,1==e.editpdf&&i.nextAll(".error").before("<br /><br />"),i.nextAll(".error").html(t.innerText))).show():(i.nextAll(".success").show(),n("#stats_total_files_watermarked").html(parseInt(n("#stats_total_files_watermarked").html())+1),window.setTimeout(function(){i.nextAll(".success").hide(),1==e.library?s.html('<i class="fa fa-check" aria-hidden="true"></i> Stamped'):1==e.editpdf&&s.append('<i class="fa fa-check" aria-hidden="true"></i> Stamped')},3e3))},"json")});const c=`1 (n=>{n(function(){jQuery(".color-field").wpColorPicker()}),n("#check-all-compress").on("click",function(){this.checked?n(".nslb-input").each(function(){this.checked=!0}):n(".nslb-input").each(function(){this.checked=!1})}),n(".nslb-input").on("click",function(){n(".nslb-input:checked").length==n(".nslb-input").length?n("#check-all-compress").prop("checked",!0):n("#check-all-compress").prop("checked",!1)}),n("#check-all-watermark").on("click",function(){this.checked?n(".nslb-input").each(function(){this.checked=!0}):n(".nslb-input").each(function(){this.checked=!1})}),n(".nslb-input").on("click",function(){n(".nslb-input:checked").length==n(".nslb-input").length?n("#check-all-watermark").prop("checked",!0):n("#check-all-watermark").prop("checked",!1)}),n("input[name$='ilove_pdf_display_settings_format_watermark[ilove_pdf_format_watermark_mode]']").on("change",function(){var e=n(this).val();n("div.watermark-mode").hide(),n("#div-mode"+e).show()});var r=!0,e=(n(".btn-cancel").on("click",function(){r=!1}),0),l=0;function a(i){0==e&&(l=i.length);var s=n("#file-row-"+i[0]).find("td:eq(3)");s.find("a").hide(),n(".all-compressing").show(),s.find(".compressing").show(),e++,n(".all-compressing span").html(e+"/"+l),n(".all-compressing .progress-percent").width(100*e/l+"%"),n.post("admin-post.php?action=ilovepdf_compress&id="+i[0]+"&ajax=1",function(e){var t;""==e||1!=e.status||e.api_error?"error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),s.show()):(s.find(".compressing").hide(),(t=document.createElement("div")).innerHTML=e.api_error,s.find(".error").html(t.innerText).show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?a(i):(n(".all-compressing").hide(),n(r?".compress-success":".compress-abort").show(),n("#cancel-compress").hide())):(s.find(".compressing").hide(),s.find(".success").show(),n("#file-row-"+i[0]).find("td:eq(2)").html(e.compress_size),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?a(i):(n(".all-compressing").hide(),n(r?".compress-success":".compress-abort").show(),n("#cancel-compress").hide(),window.setTimeout(function(){n("#stats_total_files_compressed").html(e.total_files),n("#stats_initial_size").html(e.initial_size),n("#stats_current_size").html(e.current_size),n("#stats_total_percentage").html(e.percentage+"%"),n("#stats_total_percentage").parent(".c100").addClass("p"+e.percentage),n("#compress-pdf-list").load(document.URL+" #compress-pdf-list")},2e3)))},"json")}function o(i){0==e&&(l=i.length);var s=n("#file-row-"+i[0]).find("td:eq(2)");s.find("a").hide(),n(".all-applying-watermark").show(),s.find(".applying-watermark").show(),e++,n(".all-applying-watermark span").html(e+"/"+l),n(".all-applying-watermark .progress-percent").width(100*e/l+"%"),n.post("admin-post.php?action=ilovepdf_watermark&id="+i[0]+"&ajax=1",function(e){var t;""==e||1!=e.status||e.api_error?"error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),s.show()):(s.find(".applying-watermark").hide(),(t=document.createElement("div")).innerHTML=e.api_error,s.find(".error").html(t.innerText).show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?o(i):(n(".all-applying-watermark").hide(),n(r?".applied-success":".applied-abort").show(),n("#cancel-watermark").hide())):(s.find(".applying-watermark").hide(),s.find(".success").show(),i.splice(0,1),!jQuery.isEmptyObject(i)&&r?o(i):(n(".all-applying-watermark").hide(),n(r?".applied-success":".applied-abort").show(),n("#cancel-watermark").hide(),window.setTimeout(function(){n("#stats_total_files_watermarked").html(e.total_files),n("#watermark-pdf-list").load(document.URL+" #watermark-pdf-list")},2e3)))},"json")}n(".btn-compress-all").on("click",function(){n("#cancel-compress").css("display","inline-block"),n.ajax({type:"POST",url:"admin-post.php?action=ilovepdf_compress_list",success:function(e){var t,e=n.parseJSON(e);""!=e&&1==e.status?(l=e.list_pdf.length,a(e.list_pdf)):((t=document.createElement("div")).innerHTML=e,n(".compress-error").html(t.innerText).show())}})}),window.exportedCompressMultiPDF=a,n(".btn-watermark-all").on("click",function(){n("#cancel-watermark").css("display","inline-block"),n.ajax({type:"POST",url:"admin-post.php?action=ilovepdf_watermark_list",success:function(e){var t,e=n.parseJSON(e);""!=e&&1==e.status?(l=e.list_pdf.length,o(e.list_pdf)):((t=document.createElement("div")).innerHTML=e,n(".applied-error").html(t.innerText).show())}})}),window.exportedWatermarkMultiPDF=o,n(".btn-compress").on("click",function(e){var i=n(this),s=n(this).parent(),r=!1;e.preventDefault(),i.closest(".row-library").find(".btn-watermark").is(":visible")&&(r=!0),i.closest(".row-library").find(".btn-watermark").hide(),n(this).hide(),n(this).nextAll(".compressing").show(),n(this).nextAll(".success").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".compressing").hide(),r&&i.closest(".row-library").find(".btn-watermark").show(),""==e||1!=e.status||e.api_error?("error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),i):((t=document.createElement("div")).innerHTML=e.api_error,1==e.editpdf&&i.nextAll(".error").before("<br /><br />"),i.nextAll(".error").html(t.innerText))).show():(console.log(e.api_error),i.nextAll(".success").show(),n("#stats_total_files_compressed").html(parseInt(n("#stats_total_files_compressed").html())+1),n("#stats_initial_size").html(e.initial_size),n("#stats_current_size").html(e.current_size),n("#stats_total_percentage").html(e.percentage+"%"),n("#stats_total_percentage").parent(".c100").addClass("p"+e.percentage),window.setTimeout(function(){i.nextAll(".success").hide(),1==e.library?i.nextAll(".stats-compress").html('<i class="fa fa-check" aria-hidden="true"></i> Compressed<br />Savings '+e.percent+"%</span>"):(1==e.editpdf?i.prevAll("#current-size").find("strong"):(s.html(e.percent+"%"),s.closest("td").prev("td"))).html(e.compress_size)},3e3))},"json")}),n(".btn-watermark").on("click",function(e){var i=n(this),s=n(this).parent(),r=!1;e.preventDefault(),i.closest(".row-library").find(".btn-compress").is(":visible")&&(r=!0),i.closest(".row-library").find(".btn-compress").hide(),n(this).hide(),n(this).nextAll(".applying-watermark").show(),n(this).prevAll(".stats-compress").hide(),n(this).nextAll(".success").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".applying-watermark").hide(),r&&i.closest(".row-library").find(".btn-compress").show(),""==e||1!=e.status||e.api_error?("error_auth"==e.api_error?(tb_show("HAI","#TB_inline?height=240&width=405&inlineId=pricing_ilovepdf&modal=true",null),i):((t=document.createElement("div")).innerHTML=e.api_error,1==e.editpdf&&i.nextAll(".error").before("<br /><br />"),i.nextAll(".error").html(t.innerText))).show():(i.nextAll(".success").show(),n("#stats_total_files_watermarked").html(parseInt(n("#stats_total_files_watermarked").html())+1),window.setTimeout(function(){i.nextAll(".success").hide(),1==e.library?s.html('<i class="fa fa-check" aria-hidden="true"></i> Stamped'):1==e.editpdf&&s.append('<i class="fa fa-check" aria-hidden="true"></i> Stamped')},3e3))},"json")});let c=` 2 2 <dialog id="ilovepdf-restore-dialog" class="ilovepdf-restore-dialog"> 3 3 <h2 class="ilovepdf-title-dialog">Attention!</h2> … … 7 7 <button id="ilovepdf-dialog-close" class="button-secondary">Close</button> 8 8 </div> 9 </dialog>`;n(".btn-restore").on("click",function(e){var i=n(this);e.preventDefault(),n(this).parent().append(c); const t=document.getElementById("ilovepdf-restore-dialog");var e=document.getElementById("ilovepdf-dialog-aceptted"),s=document.getElementById("ilovepdf-dialog-close");t.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.close(),n(this).hide(),n(this).prev().hide(),n(this).nextAll(".loading").show(),n(this).parent().prevAll(".row-compress-tool").hide(),n(this).parent().prevAll(".row-watermark-tool").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".loading").hide(),(""===e?i.nextAll(".success"):((t=document.createElement("div")).innerHTML=e,i.nextAll(".error").html(t.innerText))).show()})}),s.addEventListener("click",e=>{e.preventDefault(),t.close()})}),n(".ilovepdf--meta-box-container .link-restore, .compat-field-iLovePDF-tools .link-restore").on("click",function(e){const t=n(this)[0].href,i=(e.preventDefault(),n(".ilovepdf--meta-box-container").append(c),document.getElementById("ilovepdf-restore-dialog"));var e=document.getElementById("ilovepdf-dialog-aceptted"),s=document.getElementById("ilovepdf-dialog-close");i.showModal(),e.addEventListener("click",e=>{e.preventDefault(),i.close(),location.href=t}),s.addEventListener("click",e=>{e.preventDefault(),i.close()})})}(jQuery);9 </dialog>`;n(".btn-restore").on("click",function(e){var i=n(this);e.preventDefault(),n(this).parent().append(c);let t=document.getElementById("ilovepdf-restore-dialog");var e=document.getElementById("ilovepdf-dialog-aceptted"),s=document.getElementById("ilovepdf-dialog-close");t.showModal(),e.addEventListener("click",e=>{e.preventDefault(),t.close(),n(this).hide(),n(this).prev().hide(),n(this).nextAll(".loading").show(),n(this).parent().prevAll(".row-compress-tool").hide(),n(this).parent().prevAll(".row-watermark-tool").hide(),n.post(n(this).prop("href")+"&ajax=1",function(e){var t;i.nextAll(".loading").hide(),(""===e?i.nextAll(".success"):((t=document.createElement("div")).innerHTML=e,i.nextAll(".error").html(t.innerText))).show()})}),s.addEventListener("click",e=>{e.preventDefault(),t.close()})}),n(".ilovepdf--meta-box-container .link-restore, .compat-field-iLovePDF-tools .link-restore").on("click",function(e){let t=n(this),i=t[0].href,s=(e.preventDefault(),n(".ilovepdf--meta-box-container").append(c),document.getElementById("ilovepdf-restore-dialog"));var e=document.getElementById("ilovepdf-dialog-aceptted"),r=document.getElementById("ilovepdf-dialog-close");s.showModal(),e.addEventListener("click",e=>{e.preventDefault(),s.close(),location.href=i}),r.addEventListener("click",e=>{e.preventDefault(),s.close()})})})(jQuery); -
ilovepdf/trunk/composer.json
r3192612 r3220398 16 16 }, 17 17 "require-dev": { 18 "phpstan/phpstan": "^ 1.12",19 "szepeviktor/phpstan-wordpress": "^ 1.3",18 "phpstan/phpstan": "^2.1", 19 "szepeviktor/phpstan-wordpress": "^2.0", 20 20 "phpstan/extension-installer": "^1.4", 21 21 "wp-coding-standards/wpcs": "^3.0" -
ilovepdf/trunk/ilove-pdf.php
r3192612 r3220398 11 11 * Plugin URI: https://iloveapi.com/ 12 12 * 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. 13 * Version: 2.1. 513 * Version: 2.1.6 14 14 * Requires at least: 5.3 15 15 * Requires PHP: 7.4 … … 75 75 } 76 76 77 Ilove_Pdf::update_option( 'ilove_pdf_display_general_settings', $get_options );77 Ilove_Pdf::update_option( 'ilove_pdf_display_general_settings', $get_options, true ); 78 78 79 79 } -
ilovepdf/trunk/includes/Ilove_Pdf.php
r3192612 r3220398 75 75 76 76 $this->plugin_name = 'ilove-pdf'; 77 $this->version = 'wp.2.1. 5';77 $this->version = 'wp.2.1.6'; 78 78 79 79 $this->load_dependencies(); … … 181 181 182 182 /** 183 * Determines whether Multisite is enabled.184 *185 * @since 2.1.5186 * @return bool True if Multisite is enabled, false otherwise.187 */188 public static function is_multisite() {189 return is_multisite();190 }191 192 /**193 183 * Update option, works with multisite if enabled 194 184 * … … 196 186 * @param string $option Name of the option to update. Expected to not be SQL-escaped. 197 187 * @param mixed $value Option value. Must be serializable if non-scalar. Expected to not be SQL-escaped. 188 * @param bool $update_all_sites Optional. Whether to update all sites in the network. 198 189 * @param bool|null $autoload Optional. Whether to load the option when WordPress starts up. Accepts a boolean, or null. 199 190 */ 200 public static function update_option( $option, $value, $ autoload = null ) {201 202 if ( ! self::is_multisite() ) {191 public static function update_option( $option, $value, $update_all_sites = false, $autoload = null ) { 192 193 if ( ! is_multisite() ) { 203 194 update_option( $option, $value, $autoload ); 204 195 return; 205 196 } 206 197 207 $sites = get_sites(); 208 foreach ( $sites as $site ) { 209 switch_to_blog( (int) $site->blog_id ); 210 update_option( $option, $value, $autoload ); 211 restore_current_blog(); 212 } 198 if ( ! $update_all_sites ) { 199 self::switch_update_blog( get_current_blog_id(), $option, $value, $autoload ); 200 return; 201 } 202 203 $sites = get_sites(); 204 foreach ( $sites as $site ) { 205 self::switch_update_blog( (int) $site->blog_id, $option, $value, $autoload ); 206 } 213 207 } 214 208 … … 225 219 } 226 220 227 if ( ! self::is_multisite() ) {221 if ( ! is_multisite() ) { 228 222 foreach ( $directories as $directory ) { 229 223 $upload_dir = wp_upload_dir(); … … 253 247 } 254 248 } 249 250 /** 251 * Switch to blog and update option 252 * 253 * @since 2.1.6 254 * @param int $blog_id ID of the blog to switch to. 255 * @param string $option Name of the option to update. 256 * @param mixed $value Option value. 257 * @param bool|null $autoload Whether to load the option when WordPress starts up. 258 */ 259 private static function switch_update_blog( $blog_id, $option, $value, $autoload ) { 260 switch_to_blog( $blog_id ); 261 update_option( $option, $value, $autoload ); 262 restore_current_blog(); 263 } 255 264 } -
ilovepdf/trunk/package.json
r3192612 r3220398 14 14 "gulp-clean-css": "^4.3.0", 15 15 "gulp-rename": "^2.0.0", 16 "gulp-sass": "^ 5.1.0",16 "gulp-sass": "^6.0.0", 17 17 "gulp-uglify": "^3.0.2", 18 18 "merge-stream": "^2.0.0", 19 "sass": "^1.8 0"19 "sass": "^1.83" 20 20 } 21 21 } -
ilovepdf/trunk/phpstan.neon
r3078801 r3220398 9 9 analyseAndScan: 10 10 - vendor 11 - node_modules 11 - node_modules? 12 12 analyse: 13 13 - vendor/ilovepdf -
ilovepdf/trunk/vendor/autoload.php
r3192612 r3220398 23 23 require_once __DIR__ . '/composer/autoload_real.php'; 24 24 25 return ComposerAutoloaderInit 634bd29bd263e33ce5cb3f59c562e5cc::getLoader();25 return ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31::getLoader(); -
ilovepdf/trunk/vendor/composer/InstalledVersions.php
r2995378 r3220398 323 323 324 324 $installed = array(); 325 $copiedLocalDir = false; 325 326 326 327 if (self::$canGetVendors) { … … 331 332 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 333 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 334 self::$installedByVendor[$vendorDir] = $required; 335 $installed[] = $required; 336 if (strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 337 self::$installed = $required; 338 $copiedLocalDir = true; 336 339 } 337 340 } … … 351 354 } 352 355 353 if (self::$installed !== array() ) {356 if (self::$installed !== array() && !$copiedLocalDir) { 354 357 $installed[] = self::$installed; 355 358 } -
ilovepdf/trunk/vendor/composer/autoload_real.php
r3192612 r3220398 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 634bd29bd263e33ce5cb3f59c562e5cc5 class ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 634bd29bd263e33ce5cb3f59c562e5cc', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 634bd29bd263e33ce5cb3f59c562e5cc', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::getInitializer($loader)); 31 31 32 32 $loader->register(true); 33 33 34 $filesToLoad = \Composer\Autoload\ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::$files;34 $filesToLoad = \Composer\Autoload\ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$files; 35 35 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 36 36 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
ilovepdf/trunk/vendor/composer/autoload_static.php
r3192612 r3220398 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc7 class ComposerStaticInit52f8510a30b66ec23034f2df95e5df31 8 8 { 9 9 public static $files = array ( … … 84 84 { 85 85 return \Closure::bind(function () use ($loader) { 86 $loader->prefixLengthsPsr4 = ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::$prefixLengthsPsr4;87 $loader->prefixDirsPsr4 = ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::$prefixDirsPsr4;88 $loader->classMap = ComposerStaticInit 634bd29bd263e33ce5cb3f59c562e5cc::$classMap;86 $loader->prefixLengthsPsr4 = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$prefixLengthsPsr4; 87 $loader->prefixDirsPsr4 = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$prefixDirsPsr4; 88 $loader->classMap = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$classMap; 89 89 90 90 }, null, ClassLoader::class); -
ilovepdf/trunk/vendor/composer/installed.json
r3192612 r3220398 84 84 { 85 85 "name": "firebase/php-jwt", 86 "version": "v6.10. 1",87 "version_normalized": "6.10. 1.0",86 "version": "v6.10.2", 87 "version_normalized": "6.10.2.0", 88 88 "source": { 89 89 "type": "git", 90 90 "url": "https://github.com/firebase/php-jwt.git", 91 "reference": " 500501c2ce893c824c801da135d02661199f60c5"92 }, 93 "dist": { 94 "type": "zip", 95 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/ 500501c2ce893c824c801da135d02661199f60c5",96 "reference": " 500501c2ce893c824c801da135d02661199f60c5",91 "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b" 92 }, 93 "dist": { 94 "type": "zip", 95 "url": "https://api.github.com/repos/firebase/php-jwt/zipball/30c19ed0f3264cb660ea496895cfb6ef7ee3653b", 96 "reference": "30c19ed0f3264cb660ea496895cfb6ef7ee3653b", 97 97 "shasum": "" 98 98 }, … … 112 112 "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" 113 113 }, 114 "time": "2024- 05-18T18:05:11+00:00",114 "time": "2024-11-24T11:22:49+00:00", 115 115 "type": "library", 116 116 "installation-source": "dist", … … 144 144 "support": { 145 145 "issues": "https://github.com/firebase/php-jwt/issues", 146 "source": "https://github.com/firebase/php-jwt/tree/v6.10. 1"146 "source": "https://github.com/firebase/php-jwt/tree/v6.10.2" 147 147 }, 148 148 "install-path": "../firebase/php-jwt" … … 535 535 { 536 536 "name": "php-stubs/wordpress-stubs", 537 "version": "v6. 6.2",538 "version_normalized": "6. 6.2.0",537 "version": "v6.7.1", 538 "version_normalized": "6.7.1.0", 539 539 "source": { 540 540 "type": "git", 541 541 "url": "https://github.com/php-stubs/wordpress-stubs.git", 542 "reference": " f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc"543 }, 544 "dist": { 545 "type": "zip", 546 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/ f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",547 "reference": " f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc",542 "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1" 543 }, 544 "dist": { 545 "type": "zip", 546 "url": "https://api.github.com/repos/php-stubs/wordpress-stubs/zipball/83448e918bf06d1ed3d67ceb6a985fc266a02fd1", 547 "reference": "83448e918bf06d1ed3d67ceb6a985fc266a02fd1", 548 548 "shasum": "" 549 549 }, … … 554 554 "php-stubs/generator": "^0.8.3", 555 555 "phpdocumentor/reflection-docblock": "^5.4.1", 556 "phpstan/phpstan": "^1.1 0.49",556 "phpstan/phpstan": "^1.11", 557 557 "phpunit/phpunit": "^9.5", 558 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1. 0",558 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.1.1", 559 559 "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" 560 560 }, … … 564 564 "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan" 565 565 }, 566 "time": "2024- 09-30T07:10:48+00:00",566 "time": "2024-11-24T03:57:09+00:00", 567 567 "type": "library", 568 568 "installation-source": "dist", … … 580 580 "support": { 581 581 "issues": "https://github.com/php-stubs/wordpress-stubs/issues", 582 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6. 6.2"582 "source": "https://github.com/php-stubs/wordpress-stubs/tree/v6.7.1" 583 583 }, 584 584 "install-path": "../php-stubs/wordpress-stubs" … … 809 809 { 810 810 "name": "phpstan/phpstan", 811 "version": " 1.12.11",812 "version_normalized": " 1.12.11.0",811 "version": "2.1.1", 812 "version_normalized": "2.1.1.0", 813 813 "source": { 814 814 "type": "git", 815 815 "url": "https://github.com/phpstan/phpstan.git", 816 "reference": " 0d1fc20a962a91be578bcfe7cf939e6e1a2ff733"817 }, 818 "dist": { 819 "type": "zip", 820 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ 0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",821 "reference": " 0d1fc20a962a91be578bcfe7cf939e6e1a2ff733",822 "shasum": "" 823 }, 824 "require": { 825 "php": "^7. 2|^8.0"816 "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7" 817 }, 818 "dist": { 819 "type": "zip", 820 "url": "https://api.github.com/repos/phpstan/phpstan/zipball/cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7", 821 "reference": "cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7", 822 "shasum": "" 823 }, 824 "require": { 825 "php": "^7.4|^8.0" 826 826 }, 827 827 "conflict": { 828 828 "phpstan/phpstan-shim": "*" 829 829 }, 830 "time": "202 4-11-17T14:08:01+00:00",830 "time": "2025-01-05T16:43:48+00:00", 831 831 "bin": [ 832 832 "phpstan", … … 1086 1086 { 1087 1087 "name": "squizlabs/php_codesniffer", 1088 "version": "3.11. 1",1089 "version_normalized": "3.11. 1.0",1088 "version": "3.11.2", 1089 "version_normalized": "3.11.2.0", 1090 1090 "source": { 1091 1091 "type": "git", 1092 1092 "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", 1093 "reference": "1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87"1094 }, 1095 "dist": { 1096 "type": "zip", 1097 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87",1098 "reference": "1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87",1093 "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079" 1094 }, 1095 "dist": { 1096 "type": "zip", 1097 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079", 1098 "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079", 1099 1099 "shasum": "" 1100 1100 }, … … 1108 1108 "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4" 1109 1109 }, 1110 "time": "2024-1 1-16T12:02:36+00:00",1110 "time": "2024-12-11T16:04:26+00:00", 1111 1111 "bin": [ 1112 1112 "bin/phpcbf", … … 1169 1169 { 1170 1170 "name": "symfony/deprecation-contracts", 1171 "version": "v3.5. 0",1172 "version_normalized": "3.5. 0.0",1171 "version": "v3.5.1", 1172 "version_normalized": "3.5.1.0", 1173 1173 "source": { 1174 1174 "type": "git", 1175 1175 "url": "https://github.com/symfony/deprecation-contracts.git", 1176 "reference": " 0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"1177 }, 1178 "dist": { 1179 "type": "zip", 1180 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/ 0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",1181 "reference": " 0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",1176 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6" 1177 }, 1178 "dist": { 1179 "type": "zip", 1180 "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", 1181 "reference": "74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6", 1182 1182 "shasum": "" 1183 1183 }, … … 1185 1185 "php": ">=8.1" 1186 1186 }, 1187 "time": "2024-0 4-18T09:32:20+00:00",1187 "time": "2024-09-25T14:20:29+00:00", 1188 1188 "type": "library", 1189 1189 "extra": { 1190 "thanks": { 1191 "url": "https://github.com/symfony/contracts", 1192 "name": "symfony/contracts" 1193 }, 1190 1194 "branch-alias": { 1191 1195 "dev-main": "3.5-dev" 1192 },1193 "thanks": {1194 "name": "symfony/contracts",1195 "url": "https://github.com/symfony/contracts"1196 1196 } 1197 1197 }, … … 1219 1219 "homepage": "https://symfony.com", 1220 1220 "support": { 1221 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5. 0"1221 "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.1" 1222 1222 }, 1223 1223 "funding": [ … … 1238 1238 }, 1239 1239 { 1240 "name": "symfony/polyfill-php73",1241 "version": "v1.31.0",1242 "version_normalized": "1.31.0.0",1243 "source": {1244 "type": "git",1245 "url": "https://github.com/symfony/polyfill-php73.git",1246 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb"1247 },1248 "dist": {1249 "type": "zip",1250 "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/0f68c03565dcaaf25a890667542e8bd75fe7e5bb",1251 "reference": "0f68c03565dcaaf25a890667542e8bd75fe7e5bb",1252 "shasum": ""1253 },1254 "require": {1255 "php": ">=7.2"1256 },1257 "time": "2024-09-09T11:45:10+00:00",1258 "type": "library",1259 "extra": {1260 "thanks": {1261 "name": "symfony/polyfill",1262 "url": "https://github.com/symfony/polyfill"1263 }1264 },1265 "installation-source": "dist",1266 "autoload": {1267 "files": [1268 "bootstrap.php"1269 ],1270 "psr-4": {1271 "Symfony\\Polyfill\\Php73\\": ""1272 },1273 "classmap": [1274 "Resources/stubs"1275 ]1276 },1277 "notification-url": "https://packagist.org/downloads/",1278 "license": [1279 "MIT"1280 ],1281 "authors": [1282 {1283 "name": "Nicolas Grekas",1284 "email": "p@tchwork.com"1285 },1286 {1287 "name": "Symfony Community",1288 "homepage": "https://symfony.com/contributors"1289 }1290 ],1291 "description": "Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions",1292 "homepage": "https://symfony.com",1293 "keywords": [1294 "compatibility",1295 "polyfill",1296 "portable",1297 "shim"1298 ],1299 "support": {1300 "source": "https://github.com/symfony/polyfill-php73/tree/v1.31.0"1301 },1302 "funding": [1303 {1304 "url": "https://symfony.com/sponsor",1305 "type": "custom"1306 },1307 {1308 "url": "https://github.com/fabpot",1309 "type": "github"1310 },1311 {1312 "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",1313 "type": "tidelift"1314 }1315 ],1316 "install-path": "../symfony/polyfill-php73"1317 },1318 {1319 1240 "name": "szepeviktor/phpstan-wordpress", 1320 "version": "v 1.3.5",1321 "version_normalized": " 1.3.5.0",1241 "version": "v2.0.1", 1242 "version_normalized": "2.0.1.0", 1322 1243 "source": { 1323 1244 "type": "git", 1324 1245 "url": "https://github.com/szepeviktor/phpstan-wordpress.git", 1325 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7" 1326 }, 1327 "dist": { 1328 "type": "zip", 1329 "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/7f8cfe992faa96b6a33bbd75c7bace98864161e7", 1330 "reference": "7f8cfe992faa96b6a33bbd75c7bace98864161e7", 1331 "shasum": "" 1332 }, 1333 "require": { 1334 "php": "^7.2 || ^8.0", 1335 "php-stubs/wordpress-stubs": "^4.7 || ^5.0 || ^6.0", 1336 "phpstan/phpstan": "^1.10.31", 1337 "symfony/polyfill-php73": "^1.12.0" 1246 "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e" 1247 }, 1248 "dist": { 1249 "type": "zip", 1250 "url": "https://api.github.com/repos/szepeviktor/phpstan-wordpress/zipball/f7beb13cd22998e3d913fdb897a1e2553ccd637e", 1251 "reference": "f7beb13cd22998e3d913fdb897a1e2553ccd637e", 1252 "shasum": "" 1253 }, 1254 "require": { 1255 "php": "^7.4 || ^8.0", 1256 "php-stubs/wordpress-stubs": "^6.6.2", 1257 "phpstan/phpstan": "^2.0" 1338 1258 }, 1339 1259 "require-dev": { … … 1341 1261 "dealerdirect/phpcodesniffer-composer-installer": "^1.0", 1342 1262 "php-parallel-lint/php-parallel-lint": "^1.1", 1343 "phpstan/phpstan-strict-rules": "^ 1.2",1344 "phpunit/phpunit": "^ 8.0 || ^9.0",1263 "phpstan/phpstan-strict-rules": "^2.0", 1264 "phpunit/phpunit": "^9.0", 1345 1265 "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0", 1346 1266 "wp-coding-standards/wpcs": "3.1.0 as 2.3.0" … … 1349 1269 "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods" 1350 1270 }, 1351 "time": "2024- 06-28T22:27:19+00:00",1271 "time": "2024-12-01T02:13:05+00:00", 1352 1272 "type": "phpstan-extension", 1353 1273 "extra": { … … 1378 1298 "support": { 1379 1299 "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues", 1380 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v 1.3.5"1300 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1" 1381 1301 }, 1382 1302 "install-path": "../szepeviktor/phpstan-wordpress" … … 1461 1381 "phpstan/phpstan", 1462 1382 "squizlabs/php_codesniffer", 1463 "symfony/polyfill-php73",1464 1383 "szepeviktor/phpstan-wordpress", 1465 1384 "wp-coding-standards/wpcs" -
ilovepdf/trunk/vendor/composer/installed.php
r3192612 r3220398 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' 83f65b08d9396b3ea5971df4ddad8f61abe1123a',6 'reference' => '7f4c5eee2d7205b8ff3b601e5845e6457c8cf675', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'firebase/php-jwt' => array( 23 'pretty_version' => 'v6.10. 1',24 'version' => '6.10. 1.0',25 'reference' => ' 500501c2ce893c824c801da135d02661199f60c5',23 'pretty_version' => 'v6.10.2', 24 'version' => '6.10.2.0', 25 'reference' => '30c19ed0f3264cb660ea496895cfb6ef7ee3653b', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../firebase/php-jwt', … … 68 68 'pretty_version' => 'dev-develop', 69 69 'version' => 'dev-develop', 70 'reference' => ' 83f65b08d9396b3ea5971df4ddad8f61abe1123a',70 'reference' => '7f4c5eee2d7205b8ff3b601e5845e6457c8cf675', 71 71 'type' => 'wordpress-plugin', 72 72 'install_path' => __DIR__ . '/../../', … … 75 75 ), 76 76 'php-stubs/wordpress-stubs' => array( 77 'pretty_version' => 'v6. 6.2',78 'version' => '6. 6.2.0',79 'reference' => ' f50fd7ed45894d036e4fef9ab7e5bbbaff6a30cc',77 'pretty_version' => 'v6.7.1', 78 'version' => '6.7.1.0', 79 'reference' => '83448e918bf06d1ed3d67ceb6a985fc266a02fd1', 80 80 'type' => 'library', 81 81 'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs', … … 111 111 ), 112 112 'phpstan/phpstan' => array( 113 'pretty_version' => ' 1.12.11',114 'version' => ' 1.12.11.0',115 'reference' => ' 0d1fc20a962a91be578bcfe7cf939e6e1a2ff733',113 'pretty_version' => '2.1.1', 114 'version' => '2.1.1.0', 115 'reference' => 'cd6e973e04b4c2b94c86e8612b5a65f0da0e08e7', 116 116 'type' => 'library', 117 117 'install_path' => __DIR__ . '/../phpstan/phpstan', … … 174 174 ), 175 175 'squizlabs/php_codesniffer' => array( 176 'pretty_version' => '3.11. 1',177 'version' => '3.11. 1.0',178 'reference' => '1 9473c30efe4f7b3cd42522d0b2e6e7f243c6f87',176 'pretty_version' => '3.11.2', 177 'version' => '3.11.2.0', 178 'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079', 179 179 'type' => 'library', 180 180 'install_path' => __DIR__ . '/../squizlabs/php_codesniffer', … … 183 183 ), 184 184 'symfony/deprecation-contracts' => array( 185 'pretty_version' => 'v3.5. 0',186 'version' => '3.5. 0.0',187 'reference' => ' 0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1',185 'pretty_version' => 'v3.5.1', 186 'version' => '3.5.1.0', 187 'reference' => '74c71c939a79f7d5bf3c1ce9f5ea37ba0114c6f6', 188 188 'type' => 'library', 189 189 'install_path' => __DIR__ . '/../symfony/deprecation-contracts', … … 191 191 'dev_requirement' => false, 192 192 ), 193 'symfony/polyfill-php73' => array(194 'pretty_version' => 'v1.31.0',195 'version' => '1.31.0.0',196 'reference' => '0f68c03565dcaaf25a890667542e8bd75fe7e5bb',197 'type' => 'library',198 'install_path' => __DIR__ . '/../symfony/polyfill-php73',199 'aliases' => array(),200 'dev_requirement' => true,201 ),202 193 'szepeviktor/phpstan-wordpress' => array( 203 'pretty_version' => 'v 1.3.5',204 'version' => ' 1.3.5.0',205 'reference' => ' 7f8cfe992faa96b6a33bbd75c7bace98864161e7',194 'pretty_version' => 'v2.0.1', 195 'version' => '2.0.1.0', 196 'reference' => 'f7beb13cd22998e3d913fdb897a1e2553ccd637e', 206 197 'type' => 'phpstan-extension', 207 198 'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress', -
ilovepdf/trunk/vendor/firebase/php-jwt/CHANGELOG.md
r3118395 r3220398 1 1 # Changelog 2 3 ## [6.10.2](https://github.com/firebase/php-jwt/compare/v6.10.1...v6.10.2) (2024-11-24) 4 5 6 ### Bug Fixes 7 8 * Mitigate PHP8.4 deprecation warnings ([#570](https://github.com/firebase/php-jwt/issues/570)) ([76808fa](https://github.com/firebase/php-jwt/commit/76808fa227f3811aa5cdb3bf81233714b799a5b5)) 9 * support php 8.4 ([#583](https://github.com/firebase/php-jwt/issues/583)) ([e3d68b0](https://github.com/firebase/php-jwt/commit/e3d68b044421339443c74199edd020e03fb1887e)) 2 10 3 11 ## [6.10.1](https://github.com/firebase/php-jwt/compare/v6.10.0...v6.10.1) (2024-05-18) -
ilovepdf/trunk/vendor/firebase/php-jwt/src/CachedKeySet.php
r3118395 r3220398 81 81 RequestFactoryInterface $httpFactory, 82 82 CacheItemPoolInterface $cache, 83 int $expiresAfter = null,83 ?int $expiresAfter = null, 84 84 bool $rateLimit = false, 85 string $defaultAlg = null85 ?string $defaultAlg = null 86 86 ) { 87 87 $this->jwksUri = $jwksUri; … … 181 181 if ($jwksResponse->getStatusCode() !== 200) { 182 182 throw new UnexpectedValueException( 183 sprintf('HTTP Error: %d %s for URI "%s"',183 \sprintf('HTTP Error: %d %s for URI "%s"', 184 184 $jwksResponse->getStatusCode(), 185 185 $jwksResponse->getReasonPhrase(), -
ilovepdf/trunk/vendor/firebase/php-jwt/src/JWK.php
r2995378 r3220398 53 53 * @uses parseKey 54 54 */ 55 public static function parseKeySet(array $jwks, string $defaultAlg = null): array55 public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array 56 56 { 57 57 $keys = []; … … 94 94 * @uses createPemFromModulusAndExponent 95 95 */ 96 public static function parseKey(array $jwk, string $defaultAlg = null): ?Key96 public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key 97 97 { 98 98 if (empty($jwk)) { … … 213 213 ); 214 214 215 return sprintf(215 return \sprintf( 216 216 "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n", 217 217 wordwrap(base64_encode($pem), 64, "\n", true) -
ilovepdf/trunk/vendor/firebase/php-jwt/src/JWT.php
r3118395 r3220398 97 97 string $jwt, 98 98 $keyOrKeyArray, 99 stdClass &$headers = null99 ?stdClass &$headers = null 100 100 ): stdClass { 101 101 // Validate JWT … … 201 201 $key, 202 202 string $alg, 203 string $keyId = null,204 array $head = null203 ?string $keyId = null, 204 ?array $head = null 205 205 ): string { 206 206 $header = ['typ' => 'JWT']; 207 if (isset($head) && \is_array($head)) {207 if (isset($head)) { 208 208 $header = \array_merge($header, $head); 209 209 } … … 388 388 public static function jsonEncode(array $input): string 389 389 { 390 if (PHP_VERSION_ID >= 50400) { 391 $json = \json_encode($input, \JSON_UNESCAPED_SLASHES); 392 } else { 393 // PHP 5.3 only 394 $json = \json_encode($input); 395 } 390 $json = \json_encode($input, \JSON_UNESCAPED_SLASHES); 396 391 if ($errno = \json_last_error()) { 397 392 self::handleJsonError($errno);
Note: See TracChangeset
for help on using the changeset viewer.