Plugin Directory

Changeset 3220398


Ignore:
Timestamp:
01/10/2025 06:42:17 PM (15 months ago)
Author:
ilovepdf
Message:

Update to version 2.1.6 from GitHub

Location:
ilovepdf
Files:
2 deleted
34 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ilovepdf/tags/2.1.6/README.txt

    r3192612 r3220398  
    11=== PDF Compressor & Watermark - iLovePDF ===
    22Plugin Name: Image Compressor & Optimizer - iLovePDF
    3 Version: 2.1.5
     3Version: 2.1.6
    44Author: iLovePDF
    55Author URI: https://www.ilovepdf.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.1.5
     10Stable tag: 2.1.6
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    8181
    8282== Changelog ==
     83
     84= 2.1.6 =
     85Improved
     86* Update Libraries.
     87* Improved multisite support.
    8388
    8489= 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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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=`
    22            <dialog id="ilovepdf-restore-dialog" class="ilovepdf-restore-dialog">
    33                <h2 class="ilovepdf-title-dialog">Attention!</h2>
     
    77                    <button id="ilovepdf-dialog-close" class="button-secondary">Close</button>
    88                </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  
    1616    },
    1717    "require-dev": {
    18         "phpstan/phpstan": "^1.12",
    19         "szepeviktor/phpstan-wordpress": "^1.3",
     18        "phpstan/phpstan": "^2.1",
     19        "szepeviktor/phpstan-wordpress": "^2.0",
    2020        "phpstan/extension-installer": "^1.4",
    2121        "wp-coding-standards/wpcs": "^3.0"
  • ilovepdf/tags/2.1.6/ilove-pdf.php

    r3192612 r3220398  
    1111 * Plugin URI:        https://iloveapi.com/
    1212 * 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.5
     13 * Version:           2.1.6
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
     
    7575                }
    7676
    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 );
    7878
    7979            }
  • ilovepdf/tags/2.1.6/includes/Ilove_Pdf.php

    r3192612 r3220398  
    7575
    7676        $this->plugin_name = 'ilove-pdf';
    77         $this->version     = 'wp.2.1.5';
     77        $this->version     = 'wp.2.1.6';
    7878
    7979        $this->load_dependencies();
     
    181181
    182182    /**
    183      * Determines whether Multisite is enabled.
    184      *
    185      * @since  2.1.5
    186      * @return bool  True if Multisite is enabled, false otherwise.
    187      */
    188     public static function is_multisite() {
    189         return is_multisite();
    190     }
    191 
    192     /**
    193183     * Update option, works with multisite if enabled
    194184     *
     
    196186     * @param  string    $option Name of the option to update. Expected to not be SQL-escaped.
    197187     * @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.
    198189     * @param  bool|null $autoload Optional. Whether to load the option when WordPress starts up. Accepts a boolean, or null.
    199190     */
    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() ) {
    203194            update_option( $option, $value, $autoload );
    204195            return;
    205196        }
    206197
    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        }
    213207    }
    214208
     
    225219        }
    226220
    227         if ( ! self::is_multisite() ) {
     221        if ( ! is_multisite() ) {
    228222            foreach ( $directories as $directory ) {
    229223                $upload_dir = wp_upload_dir();
     
    253247        }
    254248    }
     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    }
    255264}
  • ilovepdf/tags/2.1.6/package.json

    r3192612 r3220398  
    1414    "gulp-clean-css": "^4.3.0",
    1515    "gulp-rename": "^2.0.0",
    16     "gulp-sass": "^5.1.0",
     16    "gulp-sass": "^6.0.0",
    1717    "gulp-uglify": "^3.0.2",
    1818    "merge-stream": "^2.0.0",
    19     "sass": "^1.80"
     19    "sass": "^1.83"
    2020  }
    2121}
  • ilovepdf/tags/2.1.6/phpstan.neon

    r3078801 r3220398  
    99            analyseAndScan:
    1010                    - vendor
    11                     - node_modules
     11                    - node_modules?
    1212            analyse:
    1313                    - vendor/ilovepdf
  • ilovepdf/tags/2.1.6/vendor/autoload.php

    r3192612 r3220398  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit634bd29bd263e33ce5cb3f59c562e5cc::getLoader();
     25return ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31::getLoader();
  • ilovepdf/tags/2.1.6/vendor/composer/InstalledVersions.php

    r2995378 r3220398  
    323323
    324324        $installed = array();
     325        $copiedLocalDir = false;
    325326
    326327        if (self::$canGetVendors) {
     
    331332                    /** @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 */
    332333                    $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;
    336339                    }
    337340                }
     
    351354        }
    352355
    353         if (self::$installed !== array()) {
     356        if (self::$installed !== array() && !$copiedLocalDir) {
    354357            $installed[] = self::$installed;
    355358        }
  • ilovepdf/tags/2.1.6/vendor/composer/autoload_real.php

    r3192612 r3220398  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit634bd29bd263e33ce5cb3f59c562e5cc
     5class ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit634bd29bd263e33ce5cb3f59c562e5cc', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit634bd29bd263e33ce5cb3f59c562e5cc', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::getInitializer($loader));
    3131
    3232        $loader->register(true);
    3333
    34         $filesToLoad = \Composer\Autoload\ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::$files;
     34        $filesToLoad = \Composer\Autoload\ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$files;
    3535        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3636            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • ilovepdf/tags/2.1.6/vendor/composer/autoload_static.php

    r3192612 r3220398  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc
     7class ComposerStaticInit52f8510a30b66ec23034f2df95e5df31
    88{
    99    public static $files = array (
     
    8484    {
    8585        return \Closure::bind(function () use ($loader) {
    86             $loader->prefixLengthsPsr4 = ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::$prefixLengthsPsr4;
    87             $loader->prefixDirsPsr4 = ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::$prefixDirsPsr4;
    88             $loader->classMap = ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::$classMap;
     86            $loader->prefixLengthsPsr4 = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$prefixLengthsPsr4;
     87            $loader->prefixDirsPsr4 = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$prefixDirsPsr4;
     88            $loader->classMap = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$classMap;
    8989
    9090        }, null, ClassLoader::class);
  • ilovepdf/tags/2.1.6/vendor/composer/installed.json

    r3192612 r3220398  
    8484        {
    8585            "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",
    8888            "source": {
    8989                "type": "git",
    9090                "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",
    9797                "shasum": ""
    9898            },
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2024-05-18T18:05:11+00:00",
     114            "time": "2024-11-24T11:22:49+00:00",
    115115            "type": "library",
    116116            "installation-source": "dist",
     
    144144            "support": {
    145145                "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"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    535535        {
    536536            "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",
    539539            "source": {
    540540                "type": "git",
    541541                "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",
    548548                "shasum": ""
    549549            },
     
    554554                "php-stubs/generator": "^0.8.3",
    555555                "phpdocumentor/reflection-docblock": "^5.4.1",
    556                 "phpstan/phpstan": "^1.10.49",
     556                "phpstan/phpstan": "^1.11",
    557557                "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",
    559559                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
    560560            },
     
    564564                "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
    565565            },
    566             "time": "2024-09-30T07:10:48+00:00",
     566            "time": "2024-11-24T03:57:09+00:00",
    567567            "type": "library",
    568568            "installation-source": "dist",
     
    580580            "support": {
    581581                "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"
    583583            },
    584584            "install-path": "../php-stubs/wordpress-stubs"
     
    809809        {
    810810            "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",
    813813            "source": {
    814814                "type": "git",
    815815                "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"
    826826            },
    827827            "conflict": {
    828828                "phpstan/phpstan-shim": "*"
    829829            },
    830             "time": "2024-11-17T14:08:01+00:00",
     830            "time": "2025-01-05T16:43:48+00:00",
    831831            "bin": [
    832832                "phpstan",
     
    10861086        {
    10871087            "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",
    10901090            "source": {
    10911091                "type": "git",
    10921092                "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
    1093                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87"
    1094             },
    1095             "dist": {
    1096                 "type": "zip",
    1097                 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
    1098                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
     1093                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079"
     1094            },
     1095            "dist": {
     1096                "type": "zip",
     1097                "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079",
     1098                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079",
    10991099                "shasum": ""
    11001100            },
     
    11081108                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
    11091109            },
    1110             "time": "2024-11-16T12:02:36+00:00",
     1110            "time": "2024-12-11T16:04:26+00:00",
    11111111            "bin": [
    11121112                "bin/phpcbf",
     
    11691169        {
    11701170            "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",
    11731173            "source": {
    11741174                "type": "git",
    11751175                "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",
    11821182                "shasum": ""
    11831183            },
     
    11851185                "php": ">=8.1"
    11861186            },
    1187             "time": "2024-04-18T09:32:20+00:00",
     1187            "time": "2024-09-25T14:20:29+00:00",
    11881188            "type": "library",
    11891189            "extra": {
     1190                "thanks": {
     1191                    "url": "https://github.com/symfony/contracts",
     1192                    "name": "symfony/contracts"
     1193                },
    11901194                "branch-alias": {
    11911195                    "dev-main": "3.5-dev"
    1192                 },
    1193                 "thanks": {
    1194                     "name": "symfony/contracts",
    1195                     "url": "https://github.com/symfony/contracts"
    11961196                }
    11971197            },
     
    12191219            "homepage": "https://symfony.com",
    12201220            "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"
    12221222            },
    12231223            "funding": [
     
    12381238        },
    12391239        {
    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         {
    13191240            "name": "szepeviktor/phpstan-wordpress",
    1320             "version": "v1.3.5",
    1321             "version_normalized": "1.3.5.0",
     1241            "version": "v2.0.1",
     1242            "version_normalized": "2.0.1.0",
    13221243            "source": {
    13231244                "type": "git",
    13241245                "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"
    13381258            },
    13391259            "require-dev": {
     
    13411261                "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
    13421262                "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",
    13451265                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
    13461266                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
     
    13491269                "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods"
    13501270            },
    1351             "time": "2024-06-28T22:27:19+00:00",
     1271            "time": "2024-12-01T02:13:05+00:00",
    13521272            "type": "phpstan-extension",
    13531273            "extra": {
     
    13781298            "support": {
    13791299                "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues",
    1380                 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.5"
     1300                "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1"
    13811301            },
    13821302            "install-path": "../szepeviktor/phpstan-wordpress"
     
    14611381        "phpstan/phpstan",
    14621382        "squizlabs/php_codesniffer",
    1463         "symfony/polyfill-php73",
    14641383        "szepeviktor/phpstan-wordpress",
    14651384        "wp-coding-standards/wpcs"
  • ilovepdf/tags/2.1.6/vendor/composer/installed.php

    r3192612 r3220398  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '83f65b08d9396b3ea5971df4ddad8f61abe1123a',
     6        'reference' => '7f4c5eee2d7205b8ff3b601e5845e6457c8cf675',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        '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',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    6868            'pretty_version' => 'dev-develop',
    6969            'version' => 'dev-develop',
    70             'reference' => '83f65b08d9396b3ea5971df4ddad8f61abe1123a',
     70            'reference' => '7f4c5eee2d7205b8ff3b601e5845e6457c8cf675',
    7171            'type' => 'wordpress-plugin',
    7272            'install_path' => __DIR__ . '/../../',
     
    7575        ),
    7676        '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',
    8080            'type' => 'library',
    8181            'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs',
     
    111111        ),
    112112        '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',
    116116            'type' => 'library',
    117117            'install_path' => __DIR__ . '/../phpstan/phpstan',
     
    174174        ),
    175175        'squizlabs/php_codesniffer' => array(
    176             'pretty_version' => '3.11.1',
    177             'version' => '3.11.1.0',
    178             'reference' => '19473c30efe4f7b3cd42522d0b2e6e7f243c6f87',
     176            'pretty_version' => '3.11.2',
     177            'version' => '3.11.2.0',
     178            'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079',
    179179            'type' => 'library',
    180180            'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
     
    183183        ),
    184184        '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',
    188188            'type' => 'library',
    189189            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
     
    191191            'dev_requirement' => false,
    192192        ),
    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         ),
    202193        'szepeviktor/phpstan-wordpress' => array(
    203             'pretty_version' => 'v1.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',
    206197            'type' => 'phpstan-extension',
    207198            'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress',
  • ilovepdf/tags/2.1.6/vendor/firebase/php-jwt/CHANGELOG.md

    r3118395 r3220398  
    11# 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))
    210
    311## [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  
    8181        RequestFactoryInterface $httpFactory,
    8282        CacheItemPoolInterface $cache,
    83         int $expiresAfter = null,
     83        ?int $expiresAfter = null,
    8484        bool $rateLimit = false,
    85         string $defaultAlg = null
     85        ?string $defaultAlg = null
    8686    ) {
    8787        $this->jwksUri = $jwksUri;
     
    181181            if ($jwksResponse->getStatusCode() !== 200) {
    182182                throw new UnexpectedValueException(
    183                     sprintf('HTTP Error: %d %s for URI "%s"',
     183                    \sprintf('HTTP Error: %d %s for URI "%s"',
    184184                        $jwksResponse->getStatusCode(),
    185185                        $jwksResponse->getReasonPhrase(),
  • ilovepdf/tags/2.1.6/vendor/firebase/php-jwt/src/JWK.php

    r2995378 r3220398  
    5353     * @uses parseKey
    5454     */
    55     public static function parseKeySet(array $jwks, string $defaultAlg = null): array
     55    public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array
    5656    {
    5757        $keys = [];
     
    9494     * @uses createPemFromModulusAndExponent
    9595     */
    96     public static function parseKey(array $jwk, string $defaultAlg = null): ?Key
     96    public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key
    9797    {
    9898        if (empty($jwk)) {
     
    213213            );
    214214
    215         return sprintf(
     215        return \sprintf(
    216216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    217217            wordwrap(base64_encode($pem), 64, "\n", true)
  • ilovepdf/tags/2.1.6/vendor/firebase/php-jwt/src/JWT.php

    r3118395 r3220398  
    9797        string $jwt,
    9898        $keyOrKeyArray,
    99         stdClass &$headers = null
     99        ?stdClass &$headers = null
    100100    ): stdClass {
    101101        // Validate JWT
     
    201201        $key,
    202202        string $alg,
    203         string $keyId = null,
    204         array $head = null
     203        ?string $keyId = null,
     204        ?array $head = null
    205205    ): string {
    206206        $header = ['typ' => 'JWT'];
    207         if (isset($head) && \is_array($head)) {
     207        if (isset($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    388388    public static function jsonEncode(array $input): string
    389389    {
    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);
    396391        if ($errno = \json_last_error()) {
    397392            self::handleJsonError($errno);
  • ilovepdf/trunk/README.txt

    r3192612 r3220398  
    11=== PDF Compressor & Watermark - iLovePDF ===
    22Plugin Name: Image Compressor & Optimizer - iLovePDF
    3 Version: 2.1.5
     3Version: 2.1.6
    44Author: iLovePDF
    55Author URI: https://www.ilovepdf.com/
     
    88Requires at least: 5.3
    99Tested up to: 6.7
    10 Stable tag: 2.1.5
     10Stable tag: 2.1.6
    1111Requires PHP: 7.4
    1212License: GPLv2 or later
     
    8181
    8282== Changelog ==
     83
     84= 2.1.6 =
     85Improved
     86* Update Libraries.
     87* Improved multisite support.
    8388
    8489= 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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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&amp;width=405&amp;inlineId=pricing_ilovepdf&amp;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=`
    22            <dialog id="ilovepdf-restore-dialog" class="ilovepdf-restore-dialog">
    33                <h2 class="ilovepdf-title-dialog">Attention!</h2>
     
    77                    <button id="ilovepdf-dialog-close" class="button-secondary">Close</button>
    88                </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  
    1616    },
    1717    "require-dev": {
    18         "phpstan/phpstan": "^1.12",
    19         "szepeviktor/phpstan-wordpress": "^1.3",
     18        "phpstan/phpstan": "^2.1",
     19        "szepeviktor/phpstan-wordpress": "^2.0",
    2020        "phpstan/extension-installer": "^1.4",
    2121        "wp-coding-standards/wpcs": "^3.0"
  • ilovepdf/trunk/ilove-pdf.php

    r3192612 r3220398  
    1111 * Plugin URI:        https://iloveapi.com/
    1212 * 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.5
     13 * Version:           2.1.6
    1414 * Requires at least: 5.3
    1515 * Requires PHP:      7.4
     
    7575                }
    7676
    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 );
    7878
    7979            }
  • ilovepdf/trunk/includes/Ilove_Pdf.php

    r3192612 r3220398  
    7575
    7676        $this->plugin_name = 'ilove-pdf';
    77         $this->version     = 'wp.2.1.5';
     77        $this->version     = 'wp.2.1.6';
    7878
    7979        $this->load_dependencies();
     
    181181
    182182    /**
    183      * Determines whether Multisite is enabled.
    184      *
    185      * @since  2.1.5
    186      * @return bool  True if Multisite is enabled, false otherwise.
    187      */
    188     public static function is_multisite() {
    189         return is_multisite();
    190     }
    191 
    192     /**
    193183     * Update option, works with multisite if enabled
    194184     *
     
    196186     * @param  string    $option Name of the option to update. Expected to not be SQL-escaped.
    197187     * @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.
    198189     * @param  bool|null $autoload Optional. Whether to load the option when WordPress starts up. Accepts a boolean, or null.
    199190     */
    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() ) {
    203194            update_option( $option, $value, $autoload );
    204195            return;
    205196        }
    206197
    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        }
    213207    }
    214208
     
    225219        }
    226220
    227         if ( ! self::is_multisite() ) {
     221        if ( ! is_multisite() ) {
    228222            foreach ( $directories as $directory ) {
    229223                $upload_dir = wp_upload_dir();
     
    253247        }
    254248    }
     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    }
    255264}
  • ilovepdf/trunk/package.json

    r3192612 r3220398  
    1414    "gulp-clean-css": "^4.3.0",
    1515    "gulp-rename": "^2.0.0",
    16     "gulp-sass": "^5.1.0",
     16    "gulp-sass": "^6.0.0",
    1717    "gulp-uglify": "^3.0.2",
    1818    "merge-stream": "^2.0.0",
    19     "sass": "^1.80"
     19    "sass": "^1.83"
    2020  }
    2121}
  • ilovepdf/trunk/phpstan.neon

    r3078801 r3220398  
    99            analyseAndScan:
    1010                    - vendor
    11                     - node_modules
     11                    - node_modules?
    1212            analyse:
    1313                    - vendor/ilovepdf
  • ilovepdf/trunk/vendor/autoload.php

    r3192612 r3220398  
    2323require_once __DIR__ . '/composer/autoload_real.php';
    2424
    25 return ComposerAutoloaderInit634bd29bd263e33ce5cb3f59c562e5cc::getLoader();
     25return ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31::getLoader();
  • ilovepdf/trunk/vendor/composer/InstalledVersions.php

    r2995378 r3220398  
    323323
    324324        $installed = array();
     325        $copiedLocalDir = false;
    325326
    326327        if (self::$canGetVendors) {
     
    331332                    /** @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 */
    332333                    $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;
    336339                    }
    337340                }
     
    351354        }
    352355
    353         if (self::$installed !== array()) {
     356        if (self::$installed !== array() && !$copiedLocalDir) {
    354357            $installed[] = self::$installed;
    355358        }
  • ilovepdf/trunk/vendor/composer/autoload_real.php

    r3192612 r3220398  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit634bd29bd263e33ce5cb3f59c562e5cc
     5class ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit634bd29bd263e33ce5cb3f59c562e5cc', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit634bd29bd263e33ce5cb3f59c562e5cc', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit52f8510a30b66ec23034f2df95e5df31', 'loadClassLoader'));
    2828
    2929        require __DIR__ . '/autoload_static.php';
    30         call_user_func(\Composer\Autoload\ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::getInitializer($loader));
     30        call_user_func(\Composer\Autoload\ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::getInitializer($loader));
    3131
    3232        $loader->register(true);
    3333
    34         $filesToLoad = \Composer\Autoload\ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::$files;
     34        $filesToLoad = \Composer\Autoload\ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$files;
    3535        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
    3636            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
  • ilovepdf/trunk/vendor/composer/autoload_static.php

    r3192612 r3220398  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc
     7class ComposerStaticInit52f8510a30b66ec23034f2df95e5df31
    88{
    99    public static $files = array (
     
    8484    {
    8585        return \Closure::bind(function () use ($loader) {
    86             $loader->prefixLengthsPsr4 = ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::$prefixLengthsPsr4;
    87             $loader->prefixDirsPsr4 = ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::$prefixDirsPsr4;
    88             $loader->classMap = ComposerStaticInit634bd29bd263e33ce5cb3f59c562e5cc::$classMap;
     86            $loader->prefixLengthsPsr4 = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$prefixLengthsPsr4;
     87            $loader->prefixDirsPsr4 = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$prefixDirsPsr4;
     88            $loader->classMap = ComposerStaticInit52f8510a30b66ec23034f2df95e5df31::$classMap;
    8989
    9090        }, null, ClassLoader::class);
  • ilovepdf/trunk/vendor/composer/installed.json

    r3192612 r3220398  
    8484        {
    8585            "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",
    8888            "source": {
    8989                "type": "git",
    9090                "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",
    9797                "shasum": ""
    9898            },
     
    112112                "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
    113113            },
    114             "time": "2024-05-18T18:05:11+00:00",
     114            "time": "2024-11-24T11:22:49+00:00",
    115115            "type": "library",
    116116            "installation-source": "dist",
     
    144144            "support": {
    145145                "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"
    147147            },
    148148            "install-path": "../firebase/php-jwt"
     
    535535        {
    536536            "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",
    539539            "source": {
    540540                "type": "git",
    541541                "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",
    548548                "shasum": ""
    549549            },
     
    554554                "php-stubs/generator": "^0.8.3",
    555555                "phpdocumentor/reflection-docblock": "^5.4.1",
    556                 "phpstan/phpstan": "^1.10.49",
     556                "phpstan/phpstan": "^1.11",
    557557                "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",
    559559                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
    560560            },
     
    564564                "szepeviktor/phpstan-wordpress": "WordPress extensions for PHPStan"
    565565            },
    566             "time": "2024-09-30T07:10:48+00:00",
     566            "time": "2024-11-24T03:57:09+00:00",
    567567            "type": "library",
    568568            "installation-source": "dist",
     
    580580            "support": {
    581581                "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"
    583583            },
    584584            "install-path": "../php-stubs/wordpress-stubs"
     
    809809        {
    810810            "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",
    813813            "source": {
    814814                "type": "git",
    815815                "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"
    826826            },
    827827            "conflict": {
    828828                "phpstan/phpstan-shim": "*"
    829829            },
    830             "time": "2024-11-17T14:08:01+00:00",
     830            "time": "2025-01-05T16:43:48+00:00",
    831831            "bin": [
    832832                "phpstan",
     
    10861086        {
    10871087            "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",
    10901090            "source": {
    10911091                "type": "git",
    10921092                "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
    1093                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87"
    1094             },
    1095             "dist": {
    1096                 "type": "zip",
    1097                 "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
    1098                 "reference": "19473c30efe4f7b3cd42522d0b2e6e7f243c6f87",
     1093                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079"
     1094            },
     1095            "dist": {
     1096                "type": "zip",
     1097                "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/1368f4a58c3c52114b86b1abe8f4098869cb0079",
     1098                "reference": "1368f4a58c3c52114b86b1abe8f4098869cb0079",
    10991099                "shasum": ""
    11001100            },
     
    11081108                "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
    11091109            },
    1110             "time": "2024-11-16T12:02:36+00:00",
     1110            "time": "2024-12-11T16:04:26+00:00",
    11111111            "bin": [
    11121112                "bin/phpcbf",
     
    11691169        {
    11701170            "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",
    11731173            "source": {
    11741174                "type": "git",
    11751175                "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",
    11821182                "shasum": ""
    11831183            },
     
    11851185                "php": ">=8.1"
    11861186            },
    1187             "time": "2024-04-18T09:32:20+00:00",
     1187            "time": "2024-09-25T14:20:29+00:00",
    11881188            "type": "library",
    11891189            "extra": {
     1190                "thanks": {
     1191                    "url": "https://github.com/symfony/contracts",
     1192                    "name": "symfony/contracts"
     1193                },
    11901194                "branch-alias": {
    11911195                    "dev-main": "3.5-dev"
    1192                 },
    1193                 "thanks": {
    1194                     "name": "symfony/contracts",
    1195                     "url": "https://github.com/symfony/contracts"
    11961196                }
    11971197            },
     
    12191219            "homepage": "https://symfony.com",
    12201220            "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"
    12221222            },
    12231223            "funding": [
     
    12381238        },
    12391239        {
    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         {
    13191240            "name": "szepeviktor/phpstan-wordpress",
    1320             "version": "v1.3.5",
    1321             "version_normalized": "1.3.5.0",
     1241            "version": "v2.0.1",
     1242            "version_normalized": "2.0.1.0",
    13221243            "source": {
    13231244                "type": "git",
    13241245                "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"
    13381258            },
    13391259            "require-dev": {
     
    13411261                "dealerdirect/phpcodesniffer-composer-installer": "^1.0",
    13421262                "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",
    13451265                "szepeviktor/phpcs-psr-12-neutron-hybrid-ruleset": "^1.0",
    13461266                "wp-coding-standards/wpcs": "3.1.0 as 2.3.0"
     
    13491269                "swissspidy/phpstan-no-private": "Detect usage of internal core functions, classes and methods"
    13501270            },
    1351             "time": "2024-06-28T22:27:19+00:00",
     1271            "time": "2024-12-01T02:13:05+00:00",
    13521272            "type": "phpstan-extension",
    13531273            "extra": {
     
    13781298            "support": {
    13791299                "issues": "https://github.com/szepeviktor/phpstan-wordpress/issues",
    1380                 "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v1.3.5"
     1300                "source": "https://github.com/szepeviktor/phpstan-wordpress/tree/v2.0.1"
    13811301            },
    13821302            "install-path": "../szepeviktor/phpstan-wordpress"
     
    14611381        "phpstan/phpstan",
    14621382        "squizlabs/php_codesniffer",
    1463         "symfony/polyfill-php73",
    14641383        "szepeviktor/phpstan-wordpress",
    14651384        "wp-coding-standards/wpcs"
  • ilovepdf/trunk/vendor/composer/installed.php

    r3192612 r3220398  
    44        'pretty_version' => 'dev-develop',
    55        'version' => 'dev-develop',
    6         'reference' => '83f65b08d9396b3ea5971df4ddad8f61abe1123a',
     6        'reference' => '7f4c5eee2d7205b8ff3b601e5845e6457c8cf675',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
     
    2121        ),
    2222        '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',
    2626            'type' => 'library',
    2727            'install_path' => __DIR__ . '/../firebase/php-jwt',
     
    6868            'pretty_version' => 'dev-develop',
    6969            'version' => 'dev-develop',
    70             'reference' => '83f65b08d9396b3ea5971df4ddad8f61abe1123a',
     70            'reference' => '7f4c5eee2d7205b8ff3b601e5845e6457c8cf675',
    7171            'type' => 'wordpress-plugin',
    7272            'install_path' => __DIR__ . '/../../',
     
    7575        ),
    7676        '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',
    8080            'type' => 'library',
    8181            'install_path' => __DIR__ . '/../php-stubs/wordpress-stubs',
     
    111111        ),
    112112        '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',
    116116            'type' => 'library',
    117117            'install_path' => __DIR__ . '/../phpstan/phpstan',
     
    174174        ),
    175175        'squizlabs/php_codesniffer' => array(
    176             'pretty_version' => '3.11.1',
    177             'version' => '3.11.1.0',
    178             'reference' => '19473c30efe4f7b3cd42522d0b2e6e7f243c6f87',
     176            'pretty_version' => '3.11.2',
     177            'version' => '3.11.2.0',
     178            'reference' => '1368f4a58c3c52114b86b1abe8f4098869cb0079',
    179179            'type' => 'library',
    180180            'install_path' => __DIR__ . '/../squizlabs/php_codesniffer',
     
    183183        ),
    184184        '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',
    188188            'type' => 'library',
    189189            'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
     
    191191            'dev_requirement' => false,
    192192        ),
    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         ),
    202193        'szepeviktor/phpstan-wordpress' => array(
    203             'pretty_version' => 'v1.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',
    206197            'type' => 'phpstan-extension',
    207198            'install_path' => __DIR__ . '/../szepeviktor/phpstan-wordpress',
  • ilovepdf/trunk/vendor/firebase/php-jwt/CHANGELOG.md

    r3118395 r3220398  
    11# 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))
    210
    311## [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  
    8181        RequestFactoryInterface $httpFactory,
    8282        CacheItemPoolInterface $cache,
    83         int $expiresAfter = null,
     83        ?int $expiresAfter = null,
    8484        bool $rateLimit = false,
    85         string $defaultAlg = null
     85        ?string $defaultAlg = null
    8686    ) {
    8787        $this->jwksUri = $jwksUri;
     
    181181            if ($jwksResponse->getStatusCode() !== 200) {
    182182                throw new UnexpectedValueException(
    183                     sprintf('HTTP Error: %d %s for URI "%s"',
     183                    \sprintf('HTTP Error: %d %s for URI "%s"',
    184184                        $jwksResponse->getStatusCode(),
    185185                        $jwksResponse->getReasonPhrase(),
  • ilovepdf/trunk/vendor/firebase/php-jwt/src/JWK.php

    r2995378 r3220398  
    5353     * @uses parseKey
    5454     */
    55     public static function parseKeySet(array $jwks, string $defaultAlg = null): array
     55    public static function parseKeySet(array $jwks, ?string $defaultAlg = null): array
    5656    {
    5757        $keys = [];
     
    9494     * @uses createPemFromModulusAndExponent
    9595     */
    96     public static function parseKey(array $jwk, string $defaultAlg = null): ?Key
     96    public static function parseKey(array $jwk, ?string $defaultAlg = null): ?Key
    9797    {
    9898        if (empty($jwk)) {
     
    213213            );
    214214
    215         return sprintf(
     215        return \sprintf(
    216216            "-----BEGIN PUBLIC KEY-----\n%s\n-----END PUBLIC KEY-----\n",
    217217            wordwrap(base64_encode($pem), 64, "\n", true)
  • ilovepdf/trunk/vendor/firebase/php-jwt/src/JWT.php

    r3118395 r3220398  
    9797        string $jwt,
    9898        $keyOrKeyArray,
    99         stdClass &$headers = null
     99        ?stdClass &$headers = null
    100100    ): stdClass {
    101101        // Validate JWT
     
    201201        $key,
    202202        string $alg,
    203         string $keyId = null,
    204         array $head = null
     203        ?string $keyId = null,
     204        ?array $head = null
    205205    ): string {
    206206        $header = ['typ' => 'JWT'];
    207         if (isset($head) && \is_array($head)) {
     207        if (isset($head)) {
    208208            $header = \array_merge($header, $head);
    209209        }
     
    388388    public static function jsonEncode(array $input): string
    389389    {
    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);
    396391        if ($errno = \json_last_error()) {
    397392            self::handleJsonError($errno);
Note: See TracChangeset for help on using the changeset viewer.