Version Description
- 2020-04-07 =
- Added JavaScript trigger after AJAX call for WP Desk shipping integrations
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Shipping for WooCommerce |
Version | 3.9.15 |
Comparing to | |
See all releases |
Code changes from version 3.9.13 to 3.9.15
- assets/js/admin.js +1 -0
- assets/js/admin.min.js +1 -1
- assets/js/contextual-info.js +78 -0
- assets/js/contextual-info.min.js +1 -0
- classes/Flexible_Shipping_Contextual_Info.php +74 -0
- classes/class-flexible-shipping-plugin.php +53 -1
- classes/views/contextual-info-script.php +24 -0
- composer.lock +159 -161
- flexible-shipping.php +5 -5
- readme.txt +8 -2
- vendor/autoload.php +1 -1
- vendor/composer/autoload_classmap.php +2 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +6 -5
- vendor/composer/installed.json +6 -6
- vendor/psr/log/.gitignore +0 -1
- vendor/psr/log/Psr/Log/LoggerInterface.php +19 -19
- vendor/psr/log/Psr/Log/Test/DummyTest.php +18 -0
- vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php +0 -8
- vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/AjaxHandler.php +2 -2
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php +2 -17
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-plugin-update.php +4 -8
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseActivation.php +2 -2
- vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php +2 -2
- vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/class-wpdesk-tracker.php +11 -11
assets/js/admin.js
CHANGED
@@ -205,6 +205,7 @@ function fs_ajax(button, id, fs_action) {
|
|
205 |
jQuery('.button-shipping').attr('disabled', false);
|
206 |
jQuery('.shipping-spinner').parent().find('.spinner').css({visibility: 'hidden'});
|
207 |
fs_select2();
|
|
|
208 |
}).fail(function (jqXHR, textStatus) {
|
209 |
jQuery('#flexible_shipping_shipment_' + id + ' .flexible_shipping_shipment_message').addClass("flexible_shipping_shipment_message_error");
|
210 |
jQuery('#flexible_shipping_shipment_' + id + ' .flexible_shipping_shipment_message').show();
|
205 |
jQuery('.button-shipping').attr('disabled', false);
|
206 |
jQuery('.shipping-spinner').parent().find('.spinner').css({visibility: 'hidden'});
|
207 |
fs_select2();
|
208 |
+
jQuery('#flexible_shipping_shipment_' + id).trigger( "flexible_shipping_ajax_fs_action_after" );
|
209 |
}).fail(function (jqXHR, textStatus) {
|
210 |
jQuery('#flexible_shipping_shipment_' + id + ' .flexible_shipping_shipment_message').addClass("flexible_shipping_shipment_message_error");
|
211 |
jQuery('#flexible_shipping_shipment_' + id + ' .flexible_shipping_shipment_message').show();
|
assets/js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function fs_select2(){let
|
1 |
+
function fs_select2(){let elements=jQuery(".fs_select2");if(elements.length){if(jQuery.fn.selectWoo){elements.selectWoo()}else{elements.select2()}}}jQuery(document).ready(function(){if(jQuery("#flexible_shipping_labels_url").length){window.location.href=jQuery("#flexible_shipping_labels_url").attr("href")}if(jQuery("a.shipping_manifest_download").length==1){window.location.href=jQuery("a.shipping_manifest_download").attr("href")}if(typeof window.history.pushState=="function"){var a=document.location.href;var d=document.location.href;a=fs_removeParam("bulk_flexible_shipping_labels",a);a=fs_removeParam("bulk_flexible_shipping_send",a);a=fs_removeParam("bulk_flexible_shipping_manifests",a);a=fs_removeParam("bulk_flexible_shipping_no_labels_created",a);a=fs_trimChar(a,"?");if(a!=d){window.history.pushState({},"",a)}}var e=jQuery(".fs-connect__vertical-nav-container"),c=jQuery(".fs-connect__content-container");nextFeatureButtons=jQuery(".fs-banner__button-container .next-feature"),e.on("click",".vertical-menu__feature-item:not( .vertical-menu__feature-item-is-selected )",function(){b(jQuery(this).index())});nextFeatureButtons.on("click",function(g){g.preventDefault();var f=jQuery(this).closest(".fs-connect__slide").index();b(f+1)});function b(f){e.find(".vertical-menu__feature-item-is-selected").removeClass("vertical-menu__feature-item-is-selected");c.find(".fs__slide-is-active").removeClass("fs__slide-is-active");e.children().eq(f).addClass("vertical-menu__feature-item-is-selected");c.children().eq(f).addClass("fs__slide-is-active")}});function fs_removeParam(b,d){var e=d.split("?")[0],f,c=[],g=(d.indexOf("?")!==-1)?d.split("?")[1]:"";if(g!==""){c=g.split("&");for(var a=c.length-1;a>=0;a-=1){f=c[a].split("=")[0];if(f===b){c.splice(a,1)}}e=e+"?"+c.join("&")}return e}function fs_trimChar(b,a){while(b.charAt(0)==a){b=b.substring(1)}while(b.charAt(b.length-1)==a){b=b.substring(0,b.length-1)}return b}function fs_id(a){return jQuery(a).closest(".flexible_shipping_shipment").attr("data-id")}function fs_data_set_val(c,a,f){if(typeof a=="undefined"){return c}if(a.indexOf("[")==-1){c[a]=f}else{var d=a.split("[");var g=c;var e=c;var b="";jQuery.each(d,function(i,h){b=h.replace("]","");if(typeof g[b]=="undefined"){g[b]={}}e=g;g=g[b]});e[b]=f}return c}function fs_ajax(a,e,d){jQuery(".button-shipping").attr("disabled",true);jQuery(a).parent().find(".spinner").css({visibility:"visible"});var c={};jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content input, #flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content select, #flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content textarea").each(function(){if(jQuery(this).attr("type")=="radio"){c=fs_data_set_val(c,jQuery(this).attr("name"),jQuery("#flexible_shipping_shipment_"+e+" input[name="+jQuery(this).attr("name")+"]:checked").val())}else{if(jQuery(this).attr("type")=="checkbox"){if(jQuery(this).is(":checked")){c=fs_data_set_val(c,jQuery(this).attr("name"),jQuery(this).val())}else{c=fs_data_set_val(c,jQuery(this).attr("name"),"")}}else{c=fs_data_set_val(c,jQuery(this).attr("name"),jQuery(this).val())}}});var b=jQuery("#flexible_shipping_shipment_nonce_"+e).val();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").hide();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").removeClass("flexible_shipping_shipment_message_error");jQuery.ajax({url:fs_admin.ajax_url,type:"POST",data:{fs_action:d,action:"flexible_shipping",nonce:b,shipment_id:e,data:c},dataType:"json"}).done(function(f){if(f){if(f=="0"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html("Invalid response: 0")}else{if(f.status=="success"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content").html(f.content);jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").hide();if(typeof f.message!="undefined"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html(f.message)}}else{if(typeof f.content!=="undefined"){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_content").html(f.content)}jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").addClass("flexible_shipping_shipment_message_error");jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html(f.message)}}}else{jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").addClass("flexible_shipping_shipment_message_error");jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html("Request failed: invalid method?")}}).always(function(){jQuery(".button-shipping").attr("disabled",false);jQuery(".shipping-spinner").parent().find(".spinner").css({visibility:"hidden"});fs_select2();jQuery("#flexible_shipping_shipment_"+e).trigger("flexible_shipping_ajax_fs_action_after")}).fail(function(f,g){jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").addClass("flexible_shipping_shipment_message_error");jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").show();jQuery("#flexible_shipping_shipment_"+e+" .flexible_shipping_shipment_message").html("Request failed: "+g+" "+f.status)})}jQuery(function(a){a(document).on("click",".flexible-shipping-taxes-notice .notice-dismiss",function(){a.ajax(ajaxurl,{type:"POST",data:{action:"flexible_shipping_taxes_notice"}})});a(document).on("click","#enable-fs-connect-box",function(){var c=a(".enable-fs-connect-box");var b;if(c.prop("checked")){a(".fs-connect-integration-box").slideDown();b=1}else{a(".fs-connect-integration-box").slideUp();b=0}a.ajax(ajaxurl,{type:"POST",data:{action:"update_fs_connect_integration_setting",fs_box_state:b}})});a(document).on("click","#flexible_shipping_rate_plugin .close-fs-rate-notice",function(){a("#flexible_shipping_rate_plugin .notice-dismiss").click()});a(document).on("click","#flexible_shipping_rate_plugin .fs-not-good",function(){a("#flexible_shipping_rate_plugin p").html(fs_admin.notice_not_good_enought)})});
|
assets/js/contextual-info.js
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* Displays contextual info after input element.
|
3 |
+
*
|
4 |
+
* @package Contextual Info
|
5 |
+
*/
|
6 |
+
|
7 |
+
( function( $ ) {
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Contextual info jQuery plugin
|
11 |
+
*
|
12 |
+
* @param settings
|
13 |
+
* @returns {*}
|
14 |
+
*/
|
15 |
+
$.fn.contextualInfo = function( settings ) {
|
16 |
+
let config = $.extend(
|
17 |
+
{
|
18 |
+
'id': '',
|
19 |
+
'phrases': [],
|
20 |
+
'info_html': '',
|
21 |
+
},
|
22 |
+
settings
|
23 |
+
);
|
24 |
+
|
25 |
+
return this.each(
|
26 |
+
function() {
|
27 |
+
let $element = $( this );
|
28 |
+
createInfoHTMLElement( $element );
|
29 |
+
toggleInfoElement( $element );
|
30 |
+
$element.keyup(
|
31 |
+
function() {
|
32 |
+
toggleInfoElement( $element );
|
33 |
+
}
|
34 |
+
);
|
35 |
+
}
|
36 |
+
);
|
37 |
+
|
38 |
+
/**
|
39 |
+
* .
|
40 |
+
*
|
41 |
+
* @param $element
|
42 |
+
* @returns {string}
|
43 |
+
*/
|
44 |
+
function prepareInfoElementId( $element ) {
|
45 |
+
return $element.attr( 'id' ) + "_" + config.id;
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Create HTML info element.
|
50 |
+
*
|
51 |
+
* @param $element
|
52 |
+
*/
|
53 |
+
function createInfoHTMLElement( $element ) {
|
54 |
+
$( $element ).after(
|
55 |
+
function() {
|
56 |
+
return '<p class="description" id="' + prepareInfoElementId( $element ) + '" style="display: none;">' + config.info_html + "</p>";
|
57 |
+
}
|
58 |
+
);
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Toggle info element: show when element contains one or more phrases.
|
63 |
+
*
|
64 |
+
* @param $element
|
65 |
+
*/
|
66 |
+
function toggleInfoElement($element) {
|
67 |
+
let element_value = $element.val().toLowerCase();
|
68 |
+
let show_info = false;
|
69 |
+
$( config.phrases ).each(
|
70 |
+
function( index, value ) {
|
71 |
+
let phrase_value = value.toLowerCase();
|
72 |
+
show_info = show_info || element_value.indexOf( phrase_value ) !== -1;
|
73 |
+
}
|
74 |
+
);
|
75 |
+
$( '#' + $element.attr( 'id' ) + "_" + config.id ).toggle( show_info );
|
76 |
+
}
|
77 |
+
}
|
78 |
+
})( jQuery );
|
assets/js/contextual-info.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(function(a){a.fn.contextualInfo=function(d){let config=a.extend({id:"",phrases:[],info_html:""},d);return this.each(function(){let $element=a(this);b($element);e($element);$element.keyup(function(){e($element)})});function c(f){return f.attr("id")+"_"+config.id}function b(f){a(f).after(function(){return'<p class="description" id="'+c(f)+'" style="display: none;">'+config.info_html+"</p>"})}function e(f){let element_value=f.val().toLowerCase();let show_info=false;a(config.phrases).each(function(g,h){let phrase_value=h.toLowerCase();show_info=show_info||element_value.indexOf(phrase_value)!==-1});a("#"+f.attr("id")+"_"+config.id).toggle(show_info)}}})(jQuery);
|
classes/Flexible_Shipping_Contextual_Info.php
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Contextual info.
|
4 |
+
*
|
5 |
+
* @package Contextual Info
|
6 |
+
*/
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Can add contextual info script to admin footer.
|
10 |
+
*/
|
11 |
+
class Flexible_Shipping_Contextual_Info implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable {
|
12 |
+
|
13 |
+
/**
|
14 |
+
* .
|
15 |
+
*
|
16 |
+
* @var string
|
17 |
+
*/
|
18 |
+
private $html_elements_ids;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* .
|
22 |
+
*
|
23 |
+
* @var string
|
24 |
+
*/
|
25 |
+
private $info_id;
|
26 |
+
|
27 |
+
/**
|
28 |
+
* .
|
29 |
+
*
|
30 |
+
* @var array
|
31 |
+
*/
|
32 |
+
private $phrases;
|
33 |
+
|
34 |
+
/**
|
35 |
+
* .
|
36 |
+
*
|
37 |
+
* @var string
|
38 |
+
*/
|
39 |
+
private $info_html;
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Flexible_Shipping_Contextual_Info constructor.
|
43 |
+
*
|
44 |
+
* @param string $html_elements_ids Comma separated HTML element IDs to add contextual info.
|
45 |
+
* @param string $info_id Info element ID.
|
46 |
+
* @param array $phrases Phrases to display contextual info.
|
47 |
+
* @param string $info_html HTML code to display as info.
|
48 |
+
*/
|
49 |
+
public function __construct( $html_elements_ids, $info_id, array $phrases, $info_html ) {
|
50 |
+
$this->html_elements_ids = $html_elements_ids;
|
51 |
+
$this->info_id = $info_id;
|
52 |
+
$this->phrases = $phrases;
|
53 |
+
$this->info_html = $info_html;
|
54 |
+
}
|
55 |
+
|
56 |
+
/**
|
57 |
+
* Hooks.
|
58 |
+
*/
|
59 |
+
public function hooks() {
|
60 |
+
add_action( 'admin_footer', array( $this, 'add_contextual_info_script' ) );
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Add contextual info script.
|
65 |
+
*/
|
66 |
+
public function add_contextual_info_script() {
|
67 |
+
$html_elements_ids = '#' . implode( ',#', explode( ',', $this->html_elements_ids ) );
|
68 |
+
$info_id = $this->info_id;
|
69 |
+
$phrases = $this->phrases;
|
70 |
+
$info_html = $this->info_html;
|
71 |
+
include __DIR__ . '/views/contextual-info-script.php';
|
72 |
+
}
|
73 |
+
|
74 |
+
}
|
classes/class-flexible-shipping-plugin.php
CHANGED
@@ -41,7 +41,7 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
|
|
41 |
*
|
42 |
* @var string
|
43 |
*/
|
44 |
-
private $scripts_version = FLEXIBLE_SHIPPING_VERSION . '.
|
45 |
|
46 |
/**
|
47 |
* Admin notices.
|
@@ -165,6 +165,50 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
|
|
165 |
|
166 |
$this->add_hookable( new WPDesk_Flexible_Shipping_Rest_Api_Order_Response_Data_Appender() );
|
167 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
}
|
169 |
|
170 |
/**
|
@@ -504,6 +548,14 @@ class Flexible_Shipping_Plugin extends AbstractPlugin implements HookableCollect
|
|
504 |
|
505 |
$current_screen = get_current_screen();
|
506 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
if ( ! empty( $current_screen ) && 'shop_order' === $current_screen->id ) {
|
508 |
wp_enqueue_media();
|
509 |
}
|
41 |
*
|
42 |
* @var string
|
43 |
*/
|
44 |
+
private $scripts_version = FLEXIBLE_SHIPPING_VERSION . '.202';
|
45 |
|
46 |
/**
|
47 |
* Admin notices.
|
165 |
|
166 |
$this->add_hookable( new WPDesk_Flexible_Shipping_Rest_Api_Order_Response_Data_Appender() );
|
167 |
|
168 |
+
$this->init_contextual_info();
|
169 |
+
|
170 |
+
}
|
171 |
+
|
172 |
+
/**
|
173 |
+
* Init contextual info on Flexible Shipping settings fields.
|
174 |
+
*/
|
175 |
+
private function init_contextual_info() {
|
176 |
+
if ( ! defined( 'FLEXIBLE_SHIPPING_DHL_EXPRESS_VERSION' ) && ! defined( 'FLEXIBLE_SHIPPING_DHL_EXPRESS_PRO_VERSION' ) ) {
|
177 |
+
$this->add_hookable( new Flexible_Shipping_Contextual_Info(
|
178 |
+
'woocommerce_flexible_shipping_method_title,woocommerce_flexible_shipping_method_description',
|
179 |
+
'dhl',
|
180 |
+
array( 'dhl', 'dhl express' ),
|
181 |
+
sprintf(
|
182 |
+
__( 'Want to show your customers the DHL Express live rates? %1$sCheck our DHL Express plugin →%2$s', 'flexible-shipping' ),
|
183 |
+
'<a href="https://wpde.sk/fs-up-dhl-express" target="_blank">',
|
184 |
+
'</a>'
|
185 |
+
)
|
186 |
+
) );
|
187 |
+
}
|
188 |
+
if ( ! defined( 'FLEXIBLE_SHIPPING_FEDEX_VERSION' ) && ! defined( 'FLEXIBLE_SHIPPING_FEDEX_PRO_VERSION' ) ) {
|
189 |
+
$this->add_hookable( new Flexible_Shipping_Contextual_Info(
|
190 |
+
'woocommerce_flexible_shipping_method_title,woocommerce_flexible_shipping_method_description',
|
191 |
+
'fedex',
|
192 |
+
array( 'fedex' ),
|
193 |
+
sprintf(
|
194 |
+
__( 'Want to show your customers the FedEx live rates? %1$sCheck our FedEx plugin →%2$s', 'flexible-shipping' ),
|
195 |
+
'<a href="https://wpde.sk/fs-up-fedex" target="_blank">',
|
196 |
+
'</a>'
|
197 |
+
)
|
198 |
+
) );
|
199 |
+
}
|
200 |
+
if ( ! defined( 'FLEXIBLE_SHIPPING_UPS_VERSION' ) && ! defined( 'FLEXIBLE_SHIPPING_UPS_PRO_VERSION' ) ) {
|
201 |
+
$this->add_hookable( new Flexible_Shipping_Contextual_Info(
|
202 |
+
'woocommerce_flexible_shipping_method_title,woocommerce_flexible_shipping_method_description',
|
203 |
+
'ups',
|
204 |
+
array( 'ups' ),
|
205 |
+
sprintf(
|
206 |
+
__( 'Want to show your customers the UPS live rates? %1$sCheck our UPS plugin →%2$s', 'flexible-shipping' ),
|
207 |
+
'<a href="https://wpde.sk/fs-up-ups" target="_blank">',
|
208 |
+
'</a>'
|
209 |
+
)
|
210 |
+
) );
|
211 |
+
}
|
212 |
}
|
213 |
|
214 |
/**
|
548 |
|
549 |
$current_screen = get_current_screen();
|
550 |
|
551 |
+
wp_register_script(
|
552 |
+
'wpdesk_contextual_info',
|
553 |
+
trailingslashit( $this->get_plugin_assets_url() ) . 'js/contextual-info' . $suffix . '.js',
|
554 |
+
array( 'jquery' ),
|
555 |
+
$this->scripts_version
|
556 |
+
);
|
557 |
+
wp_enqueue_script( 'wpdesk_contextual_info' );
|
558 |
+
|
559 |
if ( ! empty( $current_screen ) && 'shop_order' === $current_screen->id ) {
|
560 |
wp_enqueue_media();
|
561 |
}
|
classes/views/contextual-info-script.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Display contextual info script.
|
4 |
+
*
|
5 |
+
* @package Contextual Info.
|
6 |
+
*
|
7 |
+
* @var $html_elements_ids string
|
8 |
+
* @var $info_id string
|
9 |
+
* @var $phrases array
|
10 |
+
* @var $info_html string
|
11 |
+
*/
|
12 |
+
?><script type="text/javascript">
|
13 |
+
jQuery( document ).ready(
|
14 |
+
function(){
|
15 |
+
jQuery( "<?php echo esc_attr( $html_elements_ids ); ?>" ).contextualInfo(
|
16 |
+
{
|
17 |
+
'id': '<?php echo esc_attr( $info_id ); ?>',
|
18 |
+
'phrases': <?php echo json_encode( $phrases ); // phpcs:ignore ?>,
|
19 |
+
'info_html': <?php echo json_encode( $info_html ); // phpcs:ignore ?>
|
20 |
+
}
|
21 |
+
);
|
22 |
+
}
|
23 |
+
);
|
24 |
+
</script>
|
composer.lock
CHANGED
@@ -8,16 +8,16 @@
|
|
8 |
"packages": [
|
9 |
{
|
10 |
"name": "psr/log",
|
11 |
-
"version": "1.1.
|
12 |
"source": {
|
13 |
"type": "git",
|
14 |
"url": "https://github.com/php-fig/log.git",
|
15 |
-
"reference": "
|
16 |
},
|
17 |
"dist": {
|
18 |
"type": "zip",
|
19 |
-
"url": "https://api.github.com/repos/php-fig/log/zipball/
|
20 |
-
"reference": "
|
21 |
"shasum": ""
|
22 |
},
|
23 |
"require": {
|
@@ -51,7 +51,7 @@
|
|
51 |
"psr",
|
52 |
"psr-3"
|
53 |
],
|
54 |
-
"time": "
|
55 |
},
|
56 |
{
|
57 |
"name": "wpdesk/wp-wpdesk-helper-override",
|
@@ -175,16 +175,16 @@
|
|
175 |
},
|
176 |
{
|
177 |
"name": "behat/gherkin",
|
178 |
-
"version": "v4.6.
|
179 |
"source": {
|
180 |
"type": "git",
|
181 |
"url": "https://github.com/Behat/Gherkin.git",
|
182 |
-
"reference": "
|
183 |
},
|
184 |
"dist": {
|
185 |
"type": "zip",
|
186 |
-
"url": "https://api.github.com/repos/Behat/Gherkin/zipball/
|
187 |
-
"reference": "
|
188 |
"shasum": ""
|
189 |
},
|
190 |
"require": {
|
@@ -230,7 +230,7 @@
|
|
230 |
"gherkin",
|
231 |
"parser"
|
232 |
],
|
233 |
-
"time": "
|
234 |
},
|
235 |
{
|
236 |
"name": "codeception/codeception",
|
@@ -330,16 +330,16 @@
|
|
330 |
},
|
331 |
{
|
332 |
"name": "codeception/phpunit-wrapper",
|
333 |
-
"version": "6.0.
|
334 |
"source": {
|
335 |
"type": "git",
|
336 |
"url": "https://github.com/Codeception/phpunit-wrapper.git",
|
337 |
-
"reference": "
|
338 |
},
|
339 |
"dist": {
|
340 |
"type": "zip",
|
341 |
-
"url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/
|
342 |
-
"reference": "
|
343 |
"shasum": ""
|
344 |
},
|
345 |
"require": {
|
@@ -358,7 +358,7 @@
|
|
358 |
"type": "library",
|
359 |
"autoload": {
|
360 |
"psr-4": {
|
361 |
-
"Codeception\\PHPUnit\\": "src
|
362 |
}
|
363 |
},
|
364 |
"notification-url": "https://packagist.org/downloads/",
|
@@ -372,7 +372,7 @@
|
|
372 |
}
|
373 |
],
|
374 |
"description": "PHPUnit classes used by Codeception",
|
375 |
-
"time": "2020-
|
376 |
},
|
377 |
{
|
378 |
"name": "codeception/stub",
|
@@ -462,16 +462,16 @@
|
|
462 |
},
|
463 |
{
|
464 |
"name": "composer/composer",
|
465 |
-
"version": "1.
|
466 |
"source": {
|
467 |
"type": "git",
|
468 |
"url": "https://github.com/composer/composer.git",
|
469 |
-
"reference": "
|
470 |
},
|
471 |
"dist": {
|
472 |
"type": "zip",
|
473 |
-
"url": "https://api.github.com/repos/composer/composer/zipball/
|
474 |
-
"reference": "
|
475 |
"shasum": ""
|
476 |
},
|
477 |
"require": {
|
@@ -484,17 +484,17 @@
|
|
484 |
"psr/log": "^1.0",
|
485 |
"seld/jsonlint": "^1.4",
|
486 |
"seld/phar-utils": "^1.0",
|
487 |
-
"symfony/console": "^2.7 || ^3.0 || ^4.0",
|
488 |
-
"symfony/filesystem": "^2.7 || ^3.0 || ^4.0",
|
489 |
-
"symfony/finder": "^2.7 || ^3.0 || ^4.0",
|
490 |
-
"symfony/process": "^2.7 || ^3.0 || ^4.0"
|
491 |
},
|
492 |
"conflict": {
|
493 |
"symfony/console": "2.8.38"
|
494 |
},
|
495 |
"require-dev": {
|
496 |
-
"
|
497 |
-
"
|
498 |
},
|
499 |
"suggest": {
|
500 |
"ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages",
|
@@ -507,7 +507,7 @@
|
|
507 |
"type": "library",
|
508 |
"extra": {
|
509 |
"branch-alias": {
|
510 |
-
"dev-master": "1.
|
511 |
}
|
512 |
},
|
513 |
"autoload": {
|
@@ -538,7 +538,7 @@
|
|
538 |
"dependency",
|
539 |
"package"
|
540 |
],
|
541 |
-
"time": "2020-
|
542 |
},
|
543 |
{
|
544 |
"name": "composer/semver",
|
@@ -663,16 +663,16 @@
|
|
663 |
},
|
664 |
{
|
665 |
"name": "composer/xdebug-handler",
|
666 |
-
"version": "1.4.
|
667 |
"source": {
|
668 |
"type": "git",
|
669 |
"url": "https://github.com/composer/xdebug-handler.git",
|
670 |
-
"reference": "
|
671 |
},
|
672 |
"dist": {
|
673 |
"type": "zip",
|
674 |
-
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/
|
675 |
-
"reference": "
|
676 |
"shasum": ""
|
677 |
},
|
678 |
"require": {
|
@@ -703,7 +703,7 @@
|
|
703 |
"Xdebug",
|
704 |
"performance"
|
705 |
],
|
706 |
-
"time": "
|
707 |
},
|
708 |
{
|
709 |
"name": "cweagans/composer-patches",
|
@@ -2211,16 +2211,16 @@
|
|
2211 |
},
|
2212 |
{
|
2213 |
"name": "lucatume/wp-browser",
|
2214 |
-
"version": "2.2.
|
2215 |
"source": {
|
2216 |
"type": "git",
|
2217 |
"url": "https://github.com/lucatume/wp-browser.git",
|
2218 |
-
"reference": "
|
2219 |
},
|
2220 |
"dist": {
|
2221 |
"type": "zip",
|
2222 |
-
"url": "https://api.github.com/repos/lucatume/wp-browser/zipball/
|
2223 |
-
"reference": "
|
2224 |
"shasum": ""
|
2225 |
},
|
2226 |
"require": {
|
@@ -2281,7 +2281,7 @@
|
|
2281 |
"codeception",
|
2282 |
"wordpress"
|
2283 |
],
|
2284 |
-
"time": "2020-02-
|
2285 |
},
|
2286 |
{
|
2287 |
"name": "matthiasmullie/minify",
|
@@ -2394,16 +2394,16 @@
|
|
2394 |
},
|
2395 |
{
|
2396 |
"name": "mck89/peast",
|
2397 |
-
"version": "v1.10.
|
2398 |
"source": {
|
2399 |
"type": "git",
|
2400 |
"url": "https://github.com/mck89/peast.git",
|
2401 |
-
"reference": "
|
2402 |
},
|
2403 |
"dist": {
|
2404 |
"type": "zip",
|
2405 |
-
"url": "https://api.github.com/repos/mck89/peast/zipball/
|
2406 |
-
"reference": "
|
2407 |
"shasum": ""
|
2408 |
},
|
2409 |
"require": {
|
@@ -2415,7 +2415,7 @@
|
|
2415 |
"type": "library",
|
2416 |
"extra": {
|
2417 |
"branch-alias": {
|
2418 |
-
"dev-master": "1.10.
|
2419 |
}
|
2420 |
},
|
2421 |
"autoload": {
|
@@ -2435,7 +2435,7 @@
|
|
2435 |
}
|
2436 |
],
|
2437 |
"description": "Peast is PHP library that generates AST for JavaScript code",
|
2438 |
-
"time": "
|
2439 |
},
|
2440 |
{
|
2441 |
"name": "mikemclin/laravel-wp-password",
|
@@ -2568,16 +2568,16 @@
|
|
2568 |
},
|
2569 |
{
|
2570 |
"name": "moneyphp/money",
|
2571 |
-
"version": "v3.3.
|
2572 |
"source": {
|
2573 |
"type": "git",
|
2574 |
"url": "https://github.com/moneyphp/money.git",
|
2575 |
-
"reference": "
|
2576 |
},
|
2577 |
"dist": {
|
2578 |
"type": "zip",
|
2579 |
-
"url": "https://api.github.com/repos/moneyphp/money/zipball/
|
2580 |
-
"reference": "
|
2581 |
"shasum": ""
|
2582 |
},
|
2583 |
"require": {
|
@@ -2646,7 +2646,7 @@
|
|
2646 |
"money",
|
2647 |
"vo"
|
2648 |
],
|
2649 |
-
"time": "
|
2650 |
},
|
2651 |
{
|
2652 |
"name": "monolog/monolog",
|
@@ -3112,20 +3112,20 @@
|
|
3112 |
},
|
3113 |
{
|
3114 |
"name": "phpoption/phpoption",
|
3115 |
-
"version": "1.7.
|
3116 |
"source": {
|
3117 |
"type": "git",
|
3118 |
"url": "https://github.com/schmittjoh/php-option.git",
|
3119 |
-
"reference": "
|
3120 |
},
|
3121 |
"dist": {
|
3122 |
"type": "zip",
|
3123 |
-
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/
|
3124 |
-
"reference": "
|
3125 |
"shasum": ""
|
3126 |
},
|
3127 |
"require": {
|
3128 |
-
"php": "^5.5.9 || ^7.0"
|
3129 |
},
|
3130 |
"require-dev": {
|
3131 |
"bamarni/composer-bin-plugin": "^1.3",
|
@@ -3163,20 +3163,20 @@
|
|
3163 |
"php",
|
3164 |
"type"
|
3165 |
],
|
3166 |
-
"time": "
|
3167 |
},
|
3168 |
{
|
3169 |
"name": "phpspec/prophecy",
|
3170 |
-
"version": "v1.10.
|
3171 |
"source": {
|
3172 |
"type": "git",
|
3173 |
"url": "https://github.com/phpspec/prophecy.git",
|
3174 |
-
"reference": "
|
3175 |
},
|
3176 |
"dist": {
|
3177 |
"type": "zip",
|
3178 |
-
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/
|
3179 |
-
"reference": "
|
3180 |
"shasum": ""
|
3181 |
},
|
3182 |
"require": {
|
@@ -3226,7 +3226,7 @@
|
|
3226 |
"spy",
|
3227 |
"stub"
|
3228 |
],
|
3229 |
-
"time": "2020-
|
3230 |
},
|
3231 |
{
|
3232 |
"name": "phpunit/php-code-coverage",
|
@@ -4417,7 +4417,7 @@
|
|
4417 |
},
|
4418 |
{
|
4419 |
"name": "symfony/browser-kit",
|
4420 |
-
"version": "v3.4.
|
4421 |
"source": {
|
4422 |
"type": "git",
|
4423 |
"url": "https://github.com/symfony/browser-kit.git",
|
@@ -4474,16 +4474,16 @@
|
|
4474 |
},
|
4475 |
{
|
4476 |
"name": "symfony/console",
|
4477 |
-
"version": "v3.4.
|
4478 |
"source": {
|
4479 |
"type": "git",
|
4480 |
"url": "https://github.com/symfony/console.git",
|
4481 |
-
"reference": "
|
4482 |
},
|
4483 |
"dist": {
|
4484 |
"type": "zip",
|
4485 |
-
"url": "https://api.github.com/repos/symfony/console/zipball/
|
4486 |
-
"reference": "
|
4487 |
"shasum": ""
|
4488 |
},
|
4489 |
"require": {
|
@@ -4542,20 +4542,20 @@
|
|
4542 |
],
|
4543 |
"description": "Symfony Console Component",
|
4544 |
"homepage": "https://symfony.com",
|
4545 |
-
"time": "2020-
|
4546 |
},
|
4547 |
{
|
4548 |
"name": "symfony/css-selector",
|
4549 |
-
"version": "v3.4.
|
4550 |
"source": {
|
4551 |
"type": "git",
|
4552 |
"url": "https://github.com/symfony/css-selector.git",
|
4553 |
-
"reference": "
|
4554 |
},
|
4555 |
"dist": {
|
4556 |
"type": "zip",
|
4557 |
-
"url": "https://api.github.com/repos/symfony/css-selector/zipball/
|
4558 |
-
"reference": "
|
4559 |
"shasum": ""
|
4560 |
},
|
4561 |
"require": {
|
@@ -4595,20 +4595,20 @@
|
|
4595 |
],
|
4596 |
"description": "Symfony CssSelector Component",
|
4597 |
"homepage": "https://symfony.com",
|
4598 |
-
"time": "2020-
|
4599 |
},
|
4600 |
{
|
4601 |
"name": "symfony/debug",
|
4602 |
-
"version": "v3.4.
|
4603 |
"source": {
|
4604 |
"type": "git",
|
4605 |
"url": "https://github.com/symfony/debug.git",
|
4606 |
-
"reference": "
|
4607 |
},
|
4608 |
"dist": {
|
4609 |
"type": "zip",
|
4610 |
-
"url": "https://api.github.com/repos/symfony/debug/zipball/
|
4611 |
-
"reference": "
|
4612 |
"shasum": ""
|
4613 |
},
|
4614 |
"require": {
|
@@ -4651,20 +4651,20 @@
|
|
4651 |
],
|
4652 |
"description": "Symfony Debug Component",
|
4653 |
"homepage": "https://symfony.com",
|
4654 |
-
"time": "2020-
|
4655 |
},
|
4656 |
{
|
4657 |
"name": "symfony/dom-crawler",
|
4658 |
-
"version": "v3.4.
|
4659 |
"source": {
|
4660 |
"type": "git",
|
4661 |
"url": "https://github.com/symfony/dom-crawler.git",
|
4662 |
-
"reference": "
|
4663 |
},
|
4664 |
"dist": {
|
4665 |
"type": "zip",
|
4666 |
-
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/
|
4667 |
-
"reference": "
|
4668 |
"shasum": ""
|
4669 |
},
|
4670 |
"require": {
|
@@ -4708,20 +4708,20 @@
|
|
4708 |
],
|
4709 |
"description": "Symfony DomCrawler Component",
|
4710 |
"homepage": "https://symfony.com",
|
4711 |
-
"time": "2020-
|
4712 |
},
|
4713 |
{
|
4714 |
"name": "symfony/event-dispatcher",
|
4715 |
-
"version": "v3.4.
|
4716 |
"source": {
|
4717 |
"type": "git",
|
4718 |
"url": "https://github.com/symfony/event-dispatcher.git",
|
4719 |
-
"reference": "
|
4720 |
},
|
4721 |
"dist": {
|
4722 |
"type": "zip",
|
4723 |
-
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/
|
4724 |
-
"reference": "
|
4725 |
"shasum": ""
|
4726 |
},
|
4727 |
"require": {
|
@@ -4771,11 +4771,11 @@
|
|
4771 |
],
|
4772 |
"description": "Symfony EventDispatcher Component",
|
4773 |
"homepage": "https://symfony.com",
|
4774 |
-
"time": "2020-
|
4775 |
},
|
4776 |
{
|
4777 |
"name": "symfony/filesystem",
|
4778 |
-
"version": "v3.4.
|
4779 |
"source": {
|
4780 |
"type": "git",
|
4781 |
"url": "https://github.com/symfony/filesystem.git",
|
@@ -4825,16 +4825,16 @@
|
|
4825 |
},
|
4826 |
{
|
4827 |
"name": "symfony/finder",
|
4828 |
-
"version": "v3.4.
|
4829 |
"source": {
|
4830 |
"type": "git",
|
4831 |
"url": "https://github.com/symfony/finder.git",
|
4832 |
-
"reference": "
|
4833 |
},
|
4834 |
"dist": {
|
4835 |
"type": "zip",
|
4836 |
-
"url": "https://api.github.com/repos/symfony/finder/zipball/
|
4837 |
-
"reference": "
|
4838 |
"shasum": ""
|
4839 |
},
|
4840 |
"require": {
|
@@ -4870,20 +4870,20 @@
|
|
4870 |
],
|
4871 |
"description": "Symfony Finder Component",
|
4872 |
"homepage": "https://symfony.com",
|
4873 |
-
"time": "2020-
|
4874 |
},
|
4875 |
{
|
4876 |
"name": "symfony/polyfill-ctype",
|
4877 |
-
"version": "v1.
|
4878 |
"source": {
|
4879 |
"type": "git",
|
4880 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|
4881 |
-
"reference": "
|
4882 |
},
|
4883 |
"dist": {
|
4884 |
"type": "zip",
|
4885 |
-
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/
|
4886 |
-
"reference": "
|
4887 |
"shasum": ""
|
4888 |
},
|
4889 |
"require": {
|
@@ -4895,7 +4895,7 @@
|
|
4895 |
"type": "library",
|
4896 |
"extra": {
|
4897 |
"branch-alias": {
|
4898 |
-
"dev-master": "1.
|
4899 |
}
|
4900 |
},
|
4901 |
"autoload": {
|
@@ -4928,20 +4928,20 @@
|
|
4928 |
"polyfill",
|
4929 |
"portable"
|
4930 |
],
|
4931 |
-
"time": "2020-
|
4932 |
},
|
4933 |
{
|
4934 |
"name": "symfony/polyfill-mbstring",
|
4935 |
-
"version": "v1.
|
4936 |
"source": {
|
4937 |
"type": "git",
|
4938 |
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
4939 |
-
"reference": "
|
4940 |
},
|
4941 |
"dist": {
|
4942 |
"type": "zip",
|
4943 |
-
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/
|
4944 |
-
"reference": "
|
4945 |
"shasum": ""
|
4946 |
},
|
4947 |
"require": {
|
@@ -4953,7 +4953,7 @@
|
|
4953 |
"type": "library",
|
4954 |
"extra": {
|
4955 |
"branch-alias": {
|
4956 |
-
"dev-master": "1.
|
4957 |
}
|
4958 |
},
|
4959 |
"autoload": {
|
@@ -4987,20 +4987,20 @@
|
|
4987 |
"portable",
|
4988 |
"shim"
|
4989 |
],
|
4990 |
-
"time": "2020-
|
4991 |
},
|
4992 |
{
|
4993 |
"name": "symfony/process",
|
4994 |
-
"version": "v3.4.
|
4995 |
"source": {
|
4996 |
"type": "git",
|
4997 |
"url": "https://github.com/symfony/process.git",
|
4998 |
-
"reference": "
|
4999 |
},
|
5000 |
"dist": {
|
5001 |
"type": "zip",
|
5002 |
-
"url": "https://api.github.com/repos/symfony/process/zipball/
|
5003 |
-
"reference": "
|
5004 |
"shasum": ""
|
5005 |
},
|
5006 |
"require": {
|
@@ -5036,20 +5036,20 @@
|
|
5036 |
],
|
5037 |
"description": "Symfony Process Component",
|
5038 |
"homepage": "https://symfony.com",
|
5039 |
-
"time": "2020-
|
5040 |
},
|
5041 |
{
|
5042 |
"name": "symfony/yaml",
|
5043 |
-
"version": "v3.4.
|
5044 |
"source": {
|
5045 |
"type": "git",
|
5046 |
"url": "https://github.com/symfony/yaml.git",
|
5047 |
-
"reference": "
|
5048 |
},
|
5049 |
"dist": {
|
5050 |
"type": "zip",
|
5051 |
-
"url": "https://api.github.com/repos/symfony/yaml/zipball/
|
5052 |
-
"reference": "
|
5053 |
"shasum": ""
|
5054 |
},
|
5055 |
"require": {
|
@@ -5095,20 +5095,20 @@
|
|
5095 |
],
|
5096 |
"description": "Symfony Yaml Component",
|
5097 |
"homepage": "https://symfony.com",
|
5098 |
-
"time": "2020-01-
|
5099 |
},
|
5100 |
{
|
5101 |
"name": "vlucas/phpdotenv",
|
5102 |
-
"version": "v3.6.
|
5103 |
"source": {
|
5104 |
"type": "git",
|
5105 |
"url": "https://github.com/vlucas/phpdotenv.git",
|
5106 |
-
"reference": "
|
5107 |
},
|
5108 |
"dist": {
|
5109 |
"type": "zip",
|
5110 |
-
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/
|
5111 |
-
"reference": "
|
5112 |
"shasum": ""
|
5113 |
},
|
5114 |
"require": {
|
@@ -5117,8 +5117,12 @@
|
|
5117 |
"symfony/polyfill-ctype": "^1.9"
|
5118 |
},
|
5119 |
"require-dev": {
|
|
|
5120 |
"phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0"
|
5121 |
},
|
|
|
|
|
|
|
5122 |
"type": "library",
|
5123 |
"extra": {
|
5124 |
"branch-alias": {
|
@@ -5152,7 +5156,7 @@
|
|
5152 |
"env",
|
5153 |
"environment"
|
5154 |
],
|
5155 |
-
"time": "
|
5156 |
},
|
5157 |
{
|
5158 |
"name": "vria/nodiacritic",
|
@@ -6026,16 +6030,16 @@
|
|
6026 |
},
|
6027 |
{
|
6028 |
"name": "wp-cli/extension-command",
|
6029 |
-
"version": "v2.0.
|
6030 |
"source": {
|
6031 |
"type": "git",
|
6032 |
"url": "https://github.com/wp-cli/extension-command.git",
|
6033 |
-
"reference": "
|
6034 |
},
|
6035 |
"dist": {
|
6036 |
"type": "zip",
|
6037 |
-
"url": "https://api.github.com/repos/wp-cli/extension-command/zipball/
|
6038 |
-
"reference": "
|
6039 |
"shasum": ""
|
6040 |
},
|
6041 |
"require": {
|
@@ -6109,7 +6113,7 @@
|
|
6109 |
],
|
6110 |
"description": "Manages plugins and themes, including installs, activations, and updates.",
|
6111 |
"homepage": "https://github.com/wp-cli/extension-command",
|
6112 |
-
"time": "
|
6113 |
},
|
6114 |
{
|
6115 |
"name": "wp-cli/i18n-command",
|
@@ -7040,22 +7044,21 @@
|
|
7040 |
},
|
7041 |
{
|
7042 |
"name": "wp-cli/wp-cli",
|
7043 |
-
"version": "v2.4.
|
7044 |
"source": {
|
7045 |
"type": "git",
|
7046 |
"url": "https://github.com/wp-cli/wp-cli.git",
|
7047 |
-
"reference": "
|
7048 |
},
|
7049 |
"dist": {
|
7050 |
"type": "zip",
|
7051 |
-
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/
|
7052 |
-
"reference": "
|
7053 |
"shasum": ""
|
7054 |
},
|
7055 |
"require": {
|
7056 |
-
"cweagans/composer-patches": "^1.6",
|
7057 |
"ext-curl": "*",
|
7058 |
-
"mustache/mustache": "~2.
|
7059 |
"php": "^5.4 || ^7.0",
|
7060 |
"rmccue/requests": "~1.6",
|
7061 |
"symfony/finder": ">2.7",
|
@@ -7082,11 +7085,6 @@
|
|
7082 |
"extra": {
|
7083 |
"branch-alias": {
|
7084 |
"dev-master": "2.4.x-dev"
|
7085 |
-
},
|
7086 |
-
"patches": {
|
7087 |
-
"mustache/mustache": {
|
7088 |
-
"Avoid notices on PHP 7.4+": "https://patch-diff.githubusercontent.com/raw/bobthecow/mustache.php/pull/349.patch"
|
7089 |
-
}
|
7090 |
}
|
7091 |
},
|
7092 |
"autoload": {
|
@@ -7104,7 +7102,7 @@
|
|
7104 |
"cli",
|
7105 |
"wordpress"
|
7106 |
],
|
7107 |
-
"time": "
|
7108 |
},
|
7109 |
{
|
7110 |
"name": "wp-cli/wp-cli-bundle",
|
@@ -7389,16 +7387,16 @@
|
|
7389 |
},
|
7390 |
{
|
7391 |
"name": "wpdesk/wp-codeception",
|
7392 |
-
"version": "1.4.
|
7393 |
"source": {
|
7394 |
"type": "git",
|
7395 |
"url": "https://gitlab.com/wpdesk/wp-codeception.git",
|
7396 |
-
"reference": "
|
7397 |
},
|
7398 |
"dist": {
|
7399 |
"type": "zip",
|
7400 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-codeception/repository/archive.zip?sha=
|
7401 |
-
"reference": "
|
7402 |
"shasum": ""
|
7403 |
},
|
7404 |
"require": {
|
@@ -7444,7 +7442,7 @@
|
|
7444 |
"codeception",
|
7445 |
"wordpress"
|
7446 |
],
|
7447 |
-
"time": "2020-
|
7448 |
},
|
7449 |
{
|
7450 |
"name": "wpdesk/wp-logs",
|
@@ -7549,16 +7547,16 @@
|
|
7549 |
},
|
7550 |
{
|
7551 |
"name": "wpdesk/wp-notice",
|
7552 |
-
"version": "3.1.
|
7553 |
"source": {
|
7554 |
"type": "git",
|
7555 |
"url": "https://gitlab.com/wpdesk/wp-notice.git",
|
7556 |
-
"reference": "
|
7557 |
},
|
7558 |
"dist": {
|
7559 |
"type": "zip",
|
7560 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=
|
7561 |
-
"reference": "
|
7562 |
"shasum": ""
|
7563 |
},
|
7564 |
"require": {
|
@@ -7599,7 +7597,7 @@
|
|
7599 |
"notice",
|
7600 |
"wordpress"
|
7601 |
],
|
7602 |
-
"time": "
|
7603 |
},
|
7604 |
{
|
7605 |
"name": "wpdesk/wp-persistence",
|
@@ -7783,16 +7781,16 @@
|
|
7783 |
},
|
7784 |
{
|
7785 |
"name": "wpdesk/wp-wpdesk-composer",
|
7786 |
-
"version": "2.6.
|
7787 |
"source": {
|
7788 |
"type": "git",
|
7789 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
|
7790 |
-
"reference": "
|
7791 |
},
|
7792 |
"dist": {
|
7793 |
"type": "zip",
|
7794 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=
|
7795 |
-
"reference": "
|
7796 |
"shasum": ""
|
7797 |
},
|
7798 |
"require": {
|
@@ -7821,7 +7819,7 @@
|
|
7821 |
"email": "krzysiek@wpdesk.pl"
|
7822 |
}
|
7823 |
],
|
7824 |
-
"time": "2020-
|
7825 |
},
|
7826 |
{
|
7827 |
"name": "wpdesk/wp-wpdesk-helper",
|
@@ -7878,16 +7876,16 @@
|
|
7878 |
},
|
7879 |
{
|
7880 |
"name": "wpdesk/wp-wpdesk-license",
|
7881 |
-
"version": "2.
|
7882 |
"source": {
|
7883 |
"type": "git",
|
7884 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
|
7885 |
-
"reference": "
|
7886 |
},
|
7887 |
"dist": {
|
7888 |
"type": "zip",
|
7889 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=
|
7890 |
-
"reference": "
|
7891 |
"shasum": ""
|
7892 |
},
|
7893 |
"require": {
|
@@ -7927,20 +7925,20 @@
|
|
7927 |
"email": "krzysiek@wpdesk.pl"
|
7928 |
}
|
7929 |
],
|
7930 |
-
"time": "
|
7931 |
},
|
7932 |
{
|
7933 |
"name": "wpdesk/wp-wpdesk-tracker",
|
7934 |
-
"version": "2.1.
|
7935 |
"source": {
|
7936 |
"type": "git",
|
7937 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker.git",
|
7938 |
-
"reference": "
|
7939 |
},
|
7940 |
"dist": {
|
7941 |
"type": "zip",
|
7942 |
-
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker/repository/archive.zip?sha=
|
7943 |
-
"reference": "
|
7944 |
"shasum": ""
|
7945 |
},
|
7946 |
"require": {
|
@@ -7974,7 +7972,7 @@
|
|
7974 |
"email": "krzysiek@wpdesk.pl"
|
7975 |
}
|
7976 |
],
|
7977 |
-
"time": "
|
7978 |
},
|
7979 |
{
|
7980 |
"name": "wpdesk/wp-wpdesk-tracker-deactivation",
|
8 |
"packages": [
|
9 |
{
|
10 |
"name": "psr/log",
|
11 |
+
"version": "1.1.3",
|
12 |
"source": {
|
13 |
"type": "git",
|
14 |
"url": "https://github.com/php-fig/log.git",
|
15 |
+
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
|
16 |
},
|
17 |
"dist": {
|
18 |
"type": "zip",
|
19 |
+
"url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
|
20 |
+
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
|
21 |
"shasum": ""
|
22 |
},
|
23 |
"require": {
|
51 |
"psr",
|
52 |
"psr-3"
|
53 |
],
|
54 |
+
"time": "2020-03-23T09:12:05+00:00"
|
55 |
},
|
56 |
{
|
57 |
"name": "wpdesk/wp-wpdesk-helper-override",
|
175 |
},
|
176 |
{
|
177 |
"name": "behat/gherkin",
|
178 |
+
"version": "v4.6.2",
|
179 |
"source": {
|
180 |
"type": "git",
|
181 |
"url": "https://github.com/Behat/Gherkin.git",
|
182 |
+
"reference": "51ac4500c4dc30cbaaabcd2f25694299df666a31"
|
183 |
},
|
184 |
"dist": {
|
185 |
"type": "zip",
|
186 |
+
"url": "https://api.github.com/repos/Behat/Gherkin/zipball/51ac4500c4dc30cbaaabcd2f25694299df666a31",
|
187 |
+
"reference": "51ac4500c4dc30cbaaabcd2f25694299df666a31",
|
188 |
"shasum": ""
|
189 |
},
|
190 |
"require": {
|
230 |
"gherkin",
|
231 |
"parser"
|
232 |
],
|
233 |
+
"time": "2020-03-17T14:03:26+00:00"
|
234 |
},
|
235 |
{
|
236 |
"name": "codeception/codeception",
|
330 |
},
|
331 |
{
|
332 |
"name": "codeception/phpunit-wrapper",
|
333 |
+
"version": "6.0.19",
|
334 |
"source": {
|
335 |
"type": "git",
|
336 |
"url": "https://github.com/Codeception/phpunit-wrapper.git",
|
337 |
+
"reference": "f6dfd72bea6c66fcff86164600f5d725c1883ecc"
|
338 |
},
|
339 |
"dist": {
|
340 |
"type": "zip",
|
341 |
+
"url": "https://api.github.com/repos/Codeception/phpunit-wrapper/zipball/f6dfd72bea6c66fcff86164600f5d725c1883ecc",
|
342 |
+
"reference": "f6dfd72bea6c66fcff86164600f5d725c1883ecc",
|
343 |
"shasum": ""
|
344 |
},
|
345 |
"require": {
|
358 |
"type": "library",
|
359 |
"autoload": {
|
360 |
"psr-4": {
|
361 |
+
"Codeception\\PHPUnit\\": "src/"
|
362 |
}
|
363 |
},
|
364 |
"notification-url": "https://packagist.org/downloads/",
|
372 |
}
|
373 |
],
|
374 |
"description": "PHPUnit classes used by Codeception",
|
375 |
+
"time": "2020-03-20T08:04:35+00:00"
|
376 |
},
|
377 |
{
|
378 |
"name": "codeception/stub",
|
462 |
},
|
463 |
{
|
464 |
"name": "composer/composer",
|
465 |
+
"version": "1.10.1",
|
466 |
"source": {
|
467 |
"type": "git",
|
468 |
"url": "https://github.com/composer/composer.git",
|
469 |
+
"reference": "b912a45da3e2b22f5cb5a23e441b697a295ba011"
|
470 |
},
|
471 |
"dist": {
|
472 |
"type": "zip",
|
473 |
+
"url": "https://api.github.com/repos/composer/composer/zipball/b912a45da3e2b22f5cb5a23e441b697a295ba011",
|
474 |
+
"reference": "b912a45da3e2b22f5cb5a23e441b697a295ba011",
|
475 |
"shasum": ""
|
476 |
},
|
477 |
"require": {
|
484 |
"psr/log": "^1.0",
|
485 |
"seld/jsonlint": "^1.4",
|
486 |
"seld/phar-utils": "^1.0",
|
487 |
+
"symfony/console": "^2.7 || ^3.0 || ^4.0 || ^5.0",
|
488 |
+
"symfony/filesystem": "^2.7 || ^3.0 || ^4.0 || ^5.0",
|
489 |
+
"symfony/finder": "^2.7 || ^3.0 || ^4.0 || ^5.0",
|
490 |
+
"symfony/process": "^2.7 || ^3.0 || ^4.0 || ^5.0"
|
491 |
},
|
492 |
"conflict": {
|
493 |
"symfony/console": "2.8.38"
|
494 |
},
|
495 |
"require-dev": {
|
496 |
+
"phpspec/prophecy": "^1.10",
|
497 |
+
"symfony/phpunit-bridge": "^3.4"
|
498 |
},
|
499 |
"suggest": {
|
500 |
"ext-openssl": "Enabling the openssl extension allows you to access https URLs for repositories and packages",
|
507 |
"type": "library",
|
508 |
"extra": {
|
509 |
"branch-alias": {
|
510 |
+
"dev-master": "1.10-dev"
|
511 |
}
|
512 |
},
|
513 |
"autoload": {
|
538 |
"dependency",
|
539 |
"package"
|
540 |
],
|
541 |
+
"time": "2020-03-13T19:34:27+00:00"
|
542 |
},
|
543 |
{
|
544 |
"name": "composer/semver",
|
663 |
},
|
664 |
{
|
665 |
"name": "composer/xdebug-handler",
|
666 |
+
"version": "1.4.1",
|
667 |
"source": {
|
668 |
"type": "git",
|
669 |
"url": "https://github.com/composer/xdebug-handler.git",
|
670 |
+
"reference": "1ab9842d69e64fb3a01be6b656501032d1b78cb7"
|
671 |
},
|
672 |
"dist": {
|
673 |
"type": "zip",
|
674 |
+
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/1ab9842d69e64fb3a01be6b656501032d1b78cb7",
|
675 |
+
"reference": "1ab9842d69e64fb3a01be6b656501032d1b78cb7",
|
676 |
"shasum": ""
|
677 |
},
|
678 |
"require": {
|
703 |
"Xdebug",
|
704 |
"performance"
|
705 |
],
|
706 |
+
"time": "2020-03-01T12:26:26+00:00"
|
707 |
},
|
708 |
{
|
709 |
"name": "cweagans/composer-patches",
|
2211 |
},
|
2212 |
{
|
2213 |
"name": "lucatume/wp-browser",
|
2214 |
+
"version": "2.2.37",
|
2215 |
"source": {
|
2216 |
"type": "git",
|
2217 |
"url": "https://github.com/lucatume/wp-browser.git",
|
2218 |
+
"reference": "8c4b6428f220dd159df0855f06c75957a6c5859b"
|
2219 |
},
|
2220 |
"dist": {
|
2221 |
"type": "zip",
|
2222 |
+
"url": "https://api.github.com/repos/lucatume/wp-browser/zipball/8c4b6428f220dd159df0855f06c75957a6c5859b",
|
2223 |
+
"reference": "8c4b6428f220dd159df0855f06c75957a6c5859b",
|
2224 |
"shasum": ""
|
2225 |
},
|
2226 |
"require": {
|
2281 |
"codeception",
|
2282 |
"wordpress"
|
2283 |
],
|
2284 |
+
"time": "2020-02-21T13:28:14+00:00"
|
2285 |
},
|
2286 |
{
|
2287 |
"name": "matthiasmullie/minify",
|
2394 |
},
|
2395 |
{
|
2396 |
"name": "mck89/peast",
|
2397 |
+
"version": "v1.10.2",
|
2398 |
"source": {
|
2399 |
"type": "git",
|
2400 |
"url": "https://github.com/mck89/peast.git",
|
2401 |
+
"reference": "1c3984ba9fc3cb93848748f141f5ddac0a65c5e1"
|
2402 |
},
|
2403 |
"dist": {
|
2404 |
"type": "zip",
|
2405 |
+
"url": "https://api.github.com/repos/mck89/peast/zipball/1c3984ba9fc3cb93848748f141f5ddac0a65c5e1",
|
2406 |
+
"reference": "1c3984ba9fc3cb93848748f141f5ddac0a65c5e1",
|
2407 |
"shasum": ""
|
2408 |
},
|
2409 |
"require": {
|
2415 |
"type": "library",
|
2416 |
"extra": {
|
2417 |
"branch-alias": {
|
2418 |
+
"dev-master": "1.10.2-dev"
|
2419 |
}
|
2420 |
},
|
2421 |
"autoload": {
|
2435 |
}
|
2436 |
],
|
2437 |
"description": "Peast is PHP library that generates AST for JavaScript code",
|
2438 |
+
"time": "2020-03-15T16:03:55+00:00"
|
2439 |
},
|
2440 |
{
|
2441 |
"name": "mikemclin/laravel-wp-password",
|
2568 |
},
|
2569 |
{
|
2570 |
"name": "moneyphp/money",
|
2571 |
+
"version": "v3.3.1",
|
2572 |
"source": {
|
2573 |
"type": "git",
|
2574 |
"url": "https://github.com/moneyphp/money.git",
|
2575 |
+
"reference": "122664c2621a95180a13c1ac81fea1d2ef20781e"
|
2576 |
},
|
2577 |
"dist": {
|
2578 |
"type": "zip",
|
2579 |
+
"url": "https://api.github.com/repos/moneyphp/money/zipball/122664c2621a95180a13c1ac81fea1d2ef20781e",
|
2580 |
+
"reference": "122664c2621a95180a13c1ac81fea1d2ef20781e",
|
2581 |
"shasum": ""
|
2582 |
},
|
2583 |
"require": {
|
2646 |
"money",
|
2647 |
"vo"
|
2648 |
],
|
2649 |
+
"time": "2020-03-18T17:49:59+00:00"
|
2650 |
},
|
2651 |
{
|
2652 |
"name": "monolog/monolog",
|
3112 |
},
|
3113 |
{
|
3114 |
"name": "phpoption/phpoption",
|
3115 |
+
"version": "1.7.3",
|
3116 |
"source": {
|
3117 |
"type": "git",
|
3118 |
"url": "https://github.com/schmittjoh/php-option.git",
|
3119 |
+
"reference": "4acfd6a4b33a509d8c88f50e5222f734b6aeebae"
|
3120 |
},
|
3121 |
"dist": {
|
3122 |
"type": "zip",
|
3123 |
+
"url": "https://api.github.com/repos/schmittjoh/php-option/zipball/4acfd6a4b33a509d8c88f50e5222f734b6aeebae",
|
3124 |
+
"reference": "4acfd6a4b33a509d8c88f50e5222f734b6aeebae",
|
3125 |
"shasum": ""
|
3126 |
},
|
3127 |
"require": {
|
3128 |
+
"php": "^5.5.9 || ^7.0 || ^8.0"
|
3129 |
},
|
3130 |
"require-dev": {
|
3131 |
"bamarni/composer-bin-plugin": "^1.3",
|
3163 |
"php",
|
3164 |
"type"
|
3165 |
],
|
3166 |
+
"time": "2020-03-21T18:07:53+00:00"
|
3167 |
},
|
3168 |
{
|
3169 |
"name": "phpspec/prophecy",
|
3170 |
+
"version": "v1.10.3",
|
3171 |
"source": {
|
3172 |
"type": "git",
|
3173 |
"url": "https://github.com/phpspec/prophecy.git",
|
3174 |
+
"reference": "451c3cd1418cf640de218914901e51b064abb093"
|
3175 |
},
|
3176 |
"dist": {
|
3177 |
"type": "zip",
|
3178 |
+
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/451c3cd1418cf640de218914901e51b064abb093",
|
3179 |
+
"reference": "451c3cd1418cf640de218914901e51b064abb093",
|
3180 |
"shasum": ""
|
3181 |
},
|
3182 |
"require": {
|
3226 |
"spy",
|
3227 |
"stub"
|
3228 |
],
|
3229 |
+
"time": "2020-03-05T15:02:03+00:00"
|
3230 |
},
|
3231 |
{
|
3232 |
"name": "phpunit/php-code-coverage",
|
4417 |
},
|
4418 |
{
|
4419 |
"name": "symfony/browser-kit",
|
4420 |
+
"version": "v3.4.38",
|
4421 |
"source": {
|
4422 |
"type": "git",
|
4423 |
"url": "https://github.com/symfony/browser-kit.git",
|
4474 |
},
|
4475 |
{
|
4476 |
"name": "symfony/console",
|
4477 |
+
"version": "v3.4.38",
|
4478 |
"source": {
|
4479 |
"type": "git",
|
4480 |
"url": "https://github.com/symfony/console.git",
|
4481 |
+
"reference": "6827023c5872bea44b29d145de693b21981cf4cd"
|
4482 |
},
|
4483 |
"dist": {
|
4484 |
"type": "zip",
|
4485 |
+
"url": "https://api.github.com/repos/symfony/console/zipball/6827023c5872bea44b29d145de693b21981cf4cd",
|
4486 |
+
"reference": "6827023c5872bea44b29d145de693b21981cf4cd",
|
4487 |
"shasum": ""
|
4488 |
},
|
4489 |
"require": {
|
4542 |
],
|
4543 |
"description": "Symfony Console Component",
|
4544 |
"homepage": "https://symfony.com",
|
4545 |
+
"time": "2020-02-15T13:27:16+00:00"
|
4546 |
},
|
4547 |
{
|
4548 |
"name": "symfony/css-selector",
|
4549 |
+
"version": "v3.4.38",
|
4550 |
"source": {
|
4551 |
"type": "git",
|
4552 |
"url": "https://github.com/symfony/css-selector.git",
|
4553 |
+
"reference": "ee9b946e7223b11257329a054c64396b19d619e1"
|
4554 |
},
|
4555 |
"dist": {
|
4556 |
"type": "zip",
|
4557 |
+
"url": "https://api.github.com/repos/symfony/css-selector/zipball/ee9b946e7223b11257329a054c64396b19d619e1",
|
4558 |
+
"reference": "ee9b946e7223b11257329a054c64396b19d619e1",
|
4559 |
"shasum": ""
|
4560 |
},
|
4561 |
"require": {
|
4595 |
],
|
4596 |
"description": "Symfony CssSelector Component",
|
4597 |
"homepage": "https://symfony.com",
|
4598 |
+
"time": "2020-02-04T08:04:52+00:00"
|
4599 |
},
|
4600 |
{
|
4601 |
"name": "symfony/debug",
|
4602 |
+
"version": "v3.4.38",
|
4603 |
"source": {
|
4604 |
"type": "git",
|
4605 |
"url": "https://github.com/symfony/debug.git",
|
4606 |
+
"reference": "a99278d50af8a9164219da38d61fb161a7f6e0a6"
|
4607 |
},
|
4608 |
"dist": {
|
4609 |
"type": "zip",
|
4610 |
+
"url": "https://api.github.com/repos/symfony/debug/zipball/a99278d50af8a9164219da38d61fb161a7f6e0a6",
|
4611 |
+
"reference": "a99278d50af8a9164219da38d61fb161a7f6e0a6",
|
4612 |
"shasum": ""
|
4613 |
},
|
4614 |
"require": {
|
4651 |
],
|
4652 |
"description": "Symfony Debug Component",
|
4653 |
"homepage": "https://symfony.com",
|
4654 |
+
"time": "2020-02-03T15:10:40+00:00"
|
4655 |
},
|
4656 |
{
|
4657 |
"name": "symfony/dom-crawler",
|
4658 |
+
"version": "v3.4.38",
|
4659 |
"source": {
|
4660 |
"type": "git",
|
4661 |
"url": "https://github.com/symfony/dom-crawler.git",
|
4662 |
+
"reference": "5ea08fead7392bc5bfe83fb8a289ac9b72cb689e"
|
4663 |
},
|
4664 |
"dist": {
|
4665 |
"type": "zip",
|
4666 |
+
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/5ea08fead7392bc5bfe83fb8a289ac9b72cb689e",
|
4667 |
+
"reference": "5ea08fead7392bc5bfe83fb8a289ac9b72cb689e",
|
4668 |
"shasum": ""
|
4669 |
},
|
4670 |
"require": {
|
4708 |
],
|
4709 |
"description": "Symfony DomCrawler Component",
|
4710 |
"homepage": "https://symfony.com",
|
4711 |
+
"time": "2020-02-26T17:12:32+00:00"
|
4712 |
},
|
4713 |
{
|
4714 |
"name": "symfony/event-dispatcher",
|
4715 |
+
"version": "v3.4.38",
|
4716 |
"source": {
|
4717 |
"type": "git",
|
4718 |
"url": "https://github.com/symfony/event-dispatcher.git",
|
4719 |
+
"reference": "2f67a869aef3eecf42e7f8be4a8b86c92308686c"
|
4720 |
},
|
4721 |
"dist": {
|
4722 |
"type": "zip",
|
4723 |
+
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/2f67a869aef3eecf42e7f8be4a8b86c92308686c",
|
4724 |
+
"reference": "2f67a869aef3eecf42e7f8be4a8b86c92308686c",
|
4725 |
"shasum": ""
|
4726 |
},
|
4727 |
"require": {
|
4771 |
],
|
4772 |
"description": "Symfony EventDispatcher Component",
|
4773 |
"homepage": "https://symfony.com",
|
4774 |
+
"time": "2020-02-04T08:04:52+00:00"
|
4775 |
},
|
4776 |
{
|
4777 |
"name": "symfony/filesystem",
|
4778 |
+
"version": "v3.4.38",
|
4779 |
"source": {
|
4780 |
"type": "git",
|
4781 |
"url": "https://github.com/symfony/filesystem.git",
|
4825 |
},
|
4826 |
{
|
4827 |
"name": "symfony/finder",
|
4828 |
+
"version": "v3.4.38",
|
4829 |
"source": {
|
4830 |
"type": "git",
|
4831 |
"url": "https://github.com/symfony/finder.git",
|
4832 |
+
"reference": "5ec813ccafa8164ef21757e8c725d3a57da59200"
|
4833 |
},
|
4834 |
"dist": {
|
4835 |
"type": "zip",
|
4836 |
+
"url": "https://api.github.com/repos/symfony/finder/zipball/5ec813ccafa8164ef21757e8c725d3a57da59200",
|
4837 |
+
"reference": "5ec813ccafa8164ef21757e8c725d3a57da59200",
|
4838 |
"shasum": ""
|
4839 |
},
|
4840 |
"require": {
|
4870 |
],
|
4871 |
"description": "Symfony Finder Component",
|
4872 |
"homepage": "https://symfony.com",
|
4873 |
+
"time": "2020-02-14T07:34:21+00:00"
|
4874 |
},
|
4875 |
{
|
4876 |
"name": "symfony/polyfill-ctype",
|
4877 |
+
"version": "v1.15.0",
|
4878 |
"source": {
|
4879 |
"type": "git",
|
4880 |
"url": "https://github.com/symfony/polyfill-ctype.git",
|
4881 |
+
"reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14"
|
4882 |
},
|
4883 |
"dist": {
|
4884 |
"type": "zip",
|
4885 |
+
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/4719fa9c18b0464d399f1a63bf624b42b6fa8d14",
|
4886 |
+
"reference": "4719fa9c18b0464d399f1a63bf624b42b6fa8d14",
|
4887 |
"shasum": ""
|
4888 |
},
|
4889 |
"require": {
|
4895 |
"type": "library",
|
4896 |
"extra": {
|
4897 |
"branch-alias": {
|
4898 |
+
"dev-master": "1.15-dev"
|
4899 |
}
|
4900 |
},
|
4901 |
"autoload": {
|
4928 |
"polyfill",
|
4929 |
"portable"
|
4930 |
],
|
4931 |
+
"time": "2020-02-27T09:26:54+00:00"
|
4932 |
},
|
4933 |
{
|
4934 |
"name": "symfony/polyfill-mbstring",
|
4935 |
+
"version": "v1.15.0",
|
4936 |
"source": {
|
4937 |
"type": "git",
|
4938 |
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
4939 |
+
"reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac"
|
4940 |
},
|
4941 |
"dist": {
|
4942 |
"type": "zip",
|
4943 |
+
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/81ffd3a9c6d707be22e3012b827de1c9775fc5ac",
|
4944 |
+
"reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac",
|
4945 |
"shasum": ""
|
4946 |
},
|
4947 |
"require": {
|
4953 |
"type": "library",
|
4954 |
"extra": {
|
4955 |
"branch-alias": {
|
4956 |
+
"dev-master": "1.15-dev"
|
4957 |
}
|
4958 |
},
|
4959 |
"autoload": {
|
4987 |
"portable",
|
4988 |
"shim"
|
4989 |
],
|
4990 |
+
"time": "2020-03-09T19:04:49+00:00"
|
4991 |
},
|
4992 |
{
|
4993 |
"name": "symfony/process",
|
4994 |
+
"version": "v3.4.38",
|
4995 |
"source": {
|
4996 |
"type": "git",
|
4997 |
"url": "https://github.com/symfony/process.git",
|
4998 |
+
"reference": "b03b02dcea26ba4c65c16a73bab4f00c186b13da"
|
4999 |
},
|
5000 |
"dist": {
|
5001 |
"type": "zip",
|
5002 |
+
"url": "https://api.github.com/repos/symfony/process/zipball/b03b02dcea26ba4c65c16a73bab4f00c186b13da",
|
5003 |
+
"reference": "b03b02dcea26ba4c65c16a73bab4f00c186b13da",
|
5004 |
"shasum": ""
|
5005 |
},
|
5006 |
"require": {
|
5036 |
],
|
5037 |
"description": "Symfony Process Component",
|
5038 |
"homepage": "https://symfony.com",
|
5039 |
+
"time": "2020-02-04T08:04:52+00:00"
|
5040 |
},
|
5041 |
{
|
5042 |
"name": "symfony/yaml",
|
5043 |
+
"version": "v3.4.38",
|
5044 |
"source": {
|
5045 |
"type": "git",
|
5046 |
"url": "https://github.com/symfony/yaml.git",
|
5047 |
+
"reference": "bc63e15160866e8730a1f738541b194c401f72bf"
|
5048 |
},
|
5049 |
"dist": {
|
5050 |
"type": "zip",
|
5051 |
+
"url": "https://api.github.com/repos/symfony/yaml/zipball/bc63e15160866e8730a1f738541b194c401f72bf",
|
5052 |
+
"reference": "bc63e15160866e8730a1f738541b194c401f72bf",
|
5053 |
"shasum": ""
|
5054 |
},
|
5055 |
"require": {
|
5095 |
],
|
5096 |
"description": "Symfony Yaml Component",
|
5097 |
"homepage": "https://symfony.com",
|
5098 |
+
"time": "2020-01-16T19:04:26+00:00"
|
5099 |
},
|
5100 |
{
|
5101 |
"name": "vlucas/phpdotenv",
|
5102 |
+
"version": "v3.6.1",
|
5103 |
"source": {
|
5104 |
"type": "git",
|
5105 |
"url": "https://github.com/vlucas/phpdotenv.git",
|
5106 |
+
"reference": "8f7961f7b9deb3b432452c18093cf16f88205902"
|
5107 |
},
|
5108 |
"dist": {
|
5109 |
"type": "zip",
|
5110 |
+
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/8f7961f7b9deb3b432452c18093cf16f88205902",
|
5111 |
+
"reference": "8f7961f7b9deb3b432452c18093cf16f88205902",
|
5112 |
"shasum": ""
|
5113 |
},
|
5114 |
"require": {
|
5117 |
"symfony/polyfill-ctype": "^1.9"
|
5118 |
},
|
5119 |
"require-dev": {
|
5120 |
+
"ext-filter": "*",
|
5121 |
"phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0"
|
5122 |
},
|
5123 |
+
"suggest": {
|
5124 |
+
"ext-filter": "Required to use the boolean validator."
|
5125 |
+
},
|
5126 |
"type": "library",
|
5127 |
"extra": {
|
5128 |
"branch-alias": {
|
5156 |
"env",
|
5157 |
"environment"
|
5158 |
],
|
5159 |
+
"time": "2020-03-12T13:44:00+00:00"
|
5160 |
},
|
5161 |
{
|
5162 |
"name": "vria/nodiacritic",
|
6030 |
},
|
6031 |
{
|
6032 |
"name": "wp-cli/extension-command",
|
6033 |
+
"version": "v2.0.8",
|
6034 |
"source": {
|
6035 |
"type": "git",
|
6036 |
"url": "https://github.com/wp-cli/extension-command.git",
|
6037 |
+
"reference": "3f55805356ccc502f38a24f224b8943f181d4813"
|
6038 |
},
|
6039 |
"dist": {
|
6040 |
"type": "zip",
|
6041 |
+
"url": "https://api.github.com/repos/wp-cli/extension-command/zipball/3f55805356ccc502f38a24f224b8943f181d4813",
|
6042 |
+
"reference": "3f55805356ccc502f38a24f224b8943f181d4813",
|
6043 |
"shasum": ""
|
6044 |
},
|
6045 |
"require": {
|
6113 |
],
|
6114 |
"description": "Manages plugins and themes, including installs, activations, and updates.",
|
6115 |
"homepage": "https://github.com/wp-cli/extension-command",
|
6116 |
+
"time": "2020-02-24T02:53:35+00:00"
|
6117 |
},
|
6118 |
{
|
6119 |
"name": "wp-cli/i18n-command",
|
7044 |
},
|
7045 |
{
|
7046 |
"name": "wp-cli/wp-cli",
|
7047 |
+
"version": "v2.4.1",
|
7048 |
"source": {
|
7049 |
"type": "git",
|
7050 |
"url": "https://github.com/wp-cli/wp-cli.git",
|
7051 |
+
"reference": "ceb18598e79befa9b2a37a51efbb34910628988b"
|
7052 |
},
|
7053 |
"dist": {
|
7054 |
"type": "zip",
|
7055 |
+
"url": "https://api.github.com/repos/wp-cli/wp-cli/zipball/ceb18598e79befa9b2a37a51efbb34910628988b",
|
7056 |
+
"reference": "ceb18598e79befa9b2a37a51efbb34910628988b",
|
7057 |
"shasum": ""
|
7058 |
},
|
7059 |
"require": {
|
|
|
7060 |
"ext-curl": "*",
|
7061 |
+
"mustache/mustache": "~2.13",
|
7062 |
"php": "^5.4 || ^7.0",
|
7063 |
"rmccue/requests": "~1.6",
|
7064 |
"symfony/finder": ">2.7",
|
7085 |
"extra": {
|
7086 |
"branch-alias": {
|
7087 |
"dev-master": "2.4.x-dev"
|
|
|
|
|
|
|
|
|
|
|
7088 |
}
|
7089 |
},
|
7090 |
"autoload": {
|
7102 |
"cli",
|
7103 |
"wordpress"
|
7104 |
],
|
7105 |
+
"time": "2020-02-18T08:15:37+00:00"
|
7106 |
},
|
7107 |
{
|
7108 |
"name": "wp-cli/wp-cli-bundle",
|
7387 |
},
|
7388 |
{
|
7389 |
"name": "wpdesk/wp-codeception",
|
7390 |
+
"version": "1.4.19",
|
7391 |
"source": {
|
7392 |
"type": "git",
|
7393 |
"url": "https://gitlab.com/wpdesk/wp-codeception.git",
|
7394 |
+
"reference": "b3cdbffc6f62ae1e50c957d4a2f3944332266034"
|
7395 |
},
|
7396 |
"dist": {
|
7397 |
"type": "zip",
|
7398 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-codeception/repository/archive.zip?sha=b3cdbffc6f62ae1e50c957d4a2f3944332266034",
|
7399 |
+
"reference": "b3cdbffc6f62ae1e50c957d4a2f3944332266034",
|
7400 |
"shasum": ""
|
7401 |
},
|
7402 |
"require": {
|
7442 |
"codeception",
|
7443 |
"wordpress"
|
7444 |
],
|
7445 |
+
"time": "2020-03-16T16:57:32+00:00"
|
7446 |
},
|
7447 |
{
|
7448 |
"name": "wpdesk/wp-logs",
|
7547 |
},
|
7548 |
{
|
7549 |
"name": "wpdesk/wp-notice",
|
7550 |
+
"version": "3.1.3",
|
7551 |
"source": {
|
7552 |
"type": "git",
|
7553 |
"url": "https://gitlab.com/wpdesk/wp-notice.git",
|
7554 |
+
"reference": "bd062f56852a6206ae23f0c635ee7c97aa553438"
|
7555 |
},
|
7556 |
"dist": {
|
7557 |
"type": "zip",
|
7558 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-notice/repository/archive.zip?sha=bd062f56852a6206ae23f0c635ee7c97aa553438",
|
7559 |
+
"reference": "bd062f56852a6206ae23f0c635ee7c97aa553438",
|
7560 |
"shasum": ""
|
7561 |
},
|
7562 |
"require": {
|
7597 |
"notice",
|
7598 |
"wordpress"
|
7599 |
],
|
7600 |
+
"time": "2020-03-06T11:09:25+00:00"
|
7601 |
},
|
7602 |
{
|
7603 |
"name": "wpdesk/wp-persistence",
|
7781 |
},
|
7782 |
{
|
7783 |
"name": "wpdesk/wp-wpdesk-composer",
|
7784 |
+
"version": "2.6.3",
|
7785 |
"source": {
|
7786 |
"type": "git",
|
7787 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-composer.git",
|
7788 |
+
"reference": "49294b1ea0cdacc3add01470e1e7015473276e82"
|
7789 |
},
|
7790 |
"dist": {
|
7791 |
"type": "zip",
|
7792 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-composer/repository/archive.zip?sha=49294b1ea0cdacc3add01470e1e7015473276e82",
|
7793 |
+
"reference": "49294b1ea0cdacc3add01470e1e7015473276e82",
|
7794 |
"shasum": ""
|
7795 |
},
|
7796 |
"require": {
|
7819 |
"email": "krzysiek@wpdesk.pl"
|
7820 |
}
|
7821 |
],
|
7822 |
+
"time": "2020-03-19T10:57:52+00:00"
|
7823 |
},
|
7824 |
{
|
7825 |
"name": "wpdesk/wp-wpdesk-helper",
|
7876 |
},
|
7877 |
{
|
7878 |
"name": "wpdesk/wp-wpdesk-license",
|
7879 |
+
"version": "2.8.0",
|
7880 |
"source": {
|
7881 |
"type": "git",
|
7882 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-license.git",
|
7883 |
+
"reference": "d386ad95b89844547e97e472128bb10d8216a7e1"
|
7884 |
},
|
7885 |
"dist": {
|
7886 |
"type": "zip",
|
7887 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-license/repository/archive.zip?sha=d386ad95b89844547e97e472128bb10d8216a7e1",
|
7888 |
+
"reference": "d386ad95b89844547e97e472128bb10d8216a7e1",
|
7889 |
"shasum": ""
|
7890 |
},
|
7891 |
"require": {
|
7925 |
"email": "krzysiek@wpdesk.pl"
|
7926 |
}
|
7927 |
],
|
7928 |
+
"time": "2020-03-06T11:13:06+00:00"
|
7929 |
},
|
7930 |
{
|
7931 |
"name": "wpdesk/wp-wpdesk-tracker",
|
7932 |
+
"version": "2.1.2",
|
7933 |
"source": {
|
7934 |
"type": "git",
|
7935 |
"url": "https://gitlab.com/wpdesk/wp-wpdesk-tracker.git",
|
7936 |
+
"reference": "de6363eee5ff8677e3f8610b592eb5acdd969a8c"
|
7937 |
},
|
7938 |
"dist": {
|
7939 |
"type": "zip",
|
7940 |
+
"url": "https://gitlab.com/api/v4/projects/wpdesk%2Fwp-wpdesk-tracker/repository/archive.zip?sha=de6363eee5ff8677e3f8610b592eb5acdd969a8c",
|
7941 |
+
"reference": "de6363eee5ff8677e3f8610b592eb5acdd969a8c",
|
7942 |
"shasum": ""
|
7943 |
},
|
7944 |
"require": {
|
7972 |
"email": "krzysiek@wpdesk.pl"
|
7973 |
}
|
7974 |
],
|
7975 |
+
"time": "2020-03-06T11:13:37+00:00"
|
7976 |
},
|
7977 |
{
|
7978 |
"name": "wpdesk/wp-wpdesk-tracker-deactivation",
|
flexible-shipping.php
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
* Plugin Name: Flexible Shipping
|
4 |
* Plugin URI: https://wordpress.org/plugins/flexible-shipping/
|
5 |
* Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
|
6 |
-
* Version: 3.9.
|
7 |
* Author: WP Desk
|
8 |
* Author URI: https://www.wpdesk.net/
|
9 |
* Text Domain: flexible-shipping
|
10 |
* Domain Path: /lang/
|
11 |
* Requires at least: 4.5
|
12 |
-
* Tested up to: 5.
|
13 |
* WC requires at least: 3.1.0
|
14 |
-
* WC tested up to: 4.
|
15 |
* Requires PHP: 5.6
|
16 |
*
|
17 |
* Copyright 2017 WP Desk Ltd.
|
@@ -38,8 +38,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
38 |
} // Exit if accessed directly
|
39 |
|
40 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
41 |
-
$plugin_version = '3.9.
|
42 |
-
$plugin_release_timestamp = '2020-
|
43 |
|
44 |
$plugin_name = 'Flexible Shipping';
|
45 |
$product_id = 'Flexible Shipping';
|
3 |
* Plugin Name: Flexible Shipping
|
4 |
* Plugin URI: https://wordpress.org/plugins/flexible-shipping/
|
5 |
* Description: Create additional shipment methods in WooCommerce and enable pricing based on cart weight or total.
|
6 |
+
* Version: 3.9.15
|
7 |
* Author: WP Desk
|
8 |
* Author URI: https://www.wpdesk.net/
|
9 |
* Text Domain: flexible-shipping
|
10 |
* Domain Path: /lang/
|
11 |
* Requires at least: 4.5
|
12 |
+
* Tested up to: 5.4
|
13 |
* WC requires at least: 3.1.0
|
14 |
+
* WC tested up to: 4.1
|
15 |
* Requires PHP: 5.6
|
16 |
*
|
17 |
* Copyright 2017 WP Desk Ltd.
|
38 |
} // Exit if accessed directly
|
39 |
|
40 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
41 |
+
$plugin_version = '3.9.15';
|
42 |
+
$plugin_release_timestamp = '2020-04-07 10:36';
|
43 |
|
44 |
$plugin_name = 'Flexible Shipping';
|
45 |
$product_id = 'Flexible Shipping';
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdesk,dyszczo,grola,piotrpo,dwukropek,marcinkolanko
|
|
3 |
Donate link: https://flexibleshipping.com/table-rate/
|
4 |
Tags: table rate, table rate shipping, conditional shipping, shipping method, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes, shipping, free shipping
|
5 |
Requires at least: 4.5
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 3.9.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -171,6 +171,12 @@ If you are upgrading from the old Flexible Shipping version (1.3.2, woo-flexible
|
|
171 |
|
172 |
== Changelog ==
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
= 3.9.13 - 2020-03-18 =
|
175 |
* Fixed icon for shipments with manifest created status
|
176 |
|
3 |
Donate link: https://flexibleshipping.com/table-rate/
|
4 |
Tags: table rate, table rate shipping, conditional shipping, shipping method, woocommerce shipping, flexible shipping, woocommerce table rate shipping, cart based shipping, weight shipping, weight based shipping, totals based shipping, order based shipping, shipping zones, shipping classes, shipping, free shipping
|
5 |
Requires at least: 4.5
|
6 |
+
Tested up to: 5.4
|
7 |
+
Stable tag: 3.9.15
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
171 |
|
172 |
== Changelog ==
|
173 |
|
174 |
+
= 3.9.15 - 2020-04-07 =
|
175 |
+
* Added JavaScript trigger after AJAX call for WP Desk shipping integrations
|
176 |
+
|
177 |
+
= 3.9.14 - 2020-03-27 =
|
178 |
+
* Added contextual info for DHL Express
|
179 |
+
|
180 |
= 3.9.13 - 2020-03-18 =
|
181 |
* Fixed icon for shipments with manifest created status
|
182 |
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit9cdc996e0fd29311efdb1b496c0173c6::getLoader();
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -263,6 +263,7 @@ return array(
|
|
263 |
'FSVendor\\WPDesk_Translable' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Translable.php',
|
264 |
'FSVendor\\WPDesk_Translatable' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Translatable.php',
|
265 |
'FSVendor\\WPDesk_Update_API_Check' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-plugin-update.php',
|
|
|
266 |
'Flexible_Shipping_Plugin' => $baseDir . '/classes/class-flexible-shipping-plugin.php',
|
267 |
'Psr\\Log\\AbstractLogger' => $vendorDir . '/psr/log/Psr/Log/AbstractLogger.php',
|
268 |
'Psr\\Log\\InvalidArgumentException' => $vendorDir . '/psr/log/Psr/Log/InvalidArgumentException.php',
|
@@ -272,7 +273,7 @@ return array(
|
|
272 |
'Psr\\Log\\LoggerInterface' => $vendorDir . '/psr/log/Psr/Log/LoggerInterface.php',
|
273 |
'Psr\\Log\\LoggerTrait' => $vendorDir . '/psr/log/Psr/Log/LoggerTrait.php',
|
274 |
'Psr\\Log\\NullLogger' => $vendorDir . '/psr/log/Psr/Log/NullLogger.php',
|
275 |
-
'Psr\\Log\\Test\\DummyTest' => $vendorDir . '/psr/log/Psr/Log/Test/
|
276 |
'Psr\\Log\\Test\\LoggerInterfaceTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
|
277 |
'Psr\\Log\\Test\\TestLogger' => $vendorDir . '/psr/log/Psr/Log/Test/TestLogger.php',
|
278 |
'WPDesk\\FS\\Rate\\FirstRateNotice' => $baseDir . '/classes/wp-wpdesk-fs-shipment/rate-notices/first-rate-notice.php',
|
263 |
'FSVendor\\WPDesk_Translable' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Translable.php',
|
264 |
'FSVendor\\WPDesk_Translatable' => $baseDir . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Translatable.php',
|
265 |
'FSVendor\\WPDesk_Update_API_Check' => $baseDir . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-plugin-update.php',
|
266 |
+
'Flexible_Shipping_Contextual_Info' => $baseDir . '/classes/Flexible_Shipping_Contextual_Info.php',
|
267 |
'Flexible_Shipping_Plugin' => $baseDir . '/classes/class-flexible-shipping-plugin.php',
|
268 |
'Psr\\Log\\AbstractLogger' => $vendorDir . '/psr/log/Psr/Log/AbstractLogger.php',
|
269 |
'Psr\\Log\\InvalidArgumentException' => $vendorDir . '/psr/log/Psr/Log/InvalidArgumentException.php',
|
273 |
'Psr\\Log\\LoggerInterface' => $vendorDir . '/psr/log/Psr/Log/LoggerInterface.php',
|
274 |
'Psr\\Log\\LoggerTrait' => $vendorDir . '/psr/log/Psr/Log/LoggerTrait.php',
|
275 |
'Psr\\Log\\NullLogger' => $vendorDir . '/psr/log/Psr/Log/NullLogger.php',
|
276 |
+
'Psr\\Log\\Test\\DummyTest' => $vendorDir . '/psr/log/Psr/Log/Test/DummyTest.php',
|
277 |
'Psr\\Log\\Test\\LoggerInterfaceTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
|
278 |
'Psr\\Log\\Test\\TestLogger' => $vendorDir . '/psr/log/Psr/Log/Test/TestLogger.php',
|
279 |
'WPDesk\\FS\\Rate\\FirstRateNotice' => $baseDir . '/classes/wp-wpdesk-fs-shipment/rate-notices/first-rate-notice.php',
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitbbc8a8c6de76372e157f93f92f310c7b
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit9cdc996e0fd29311efdb1b496c0173c6
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit9cdc996e0fd29311efdb1b496c0173c6', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit9cdc996e0fd29311efdb1b496c0173c6', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit9cdc996e0fd29311efdb1b496c0173c6::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
@@ -278,6 +278,7 @@ class ComposerStaticInitbbc8a8c6de76372e157f93f92f310c7b
|
|
278 |
'FSVendor\\WPDesk_Translable' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Translable.php',
|
279 |
'FSVendor\\WPDesk_Translatable' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Translatable.php',
|
280 |
'FSVendor\\WPDesk_Update_API_Check' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-plugin-update.php',
|
|
|
281 |
'Flexible_Shipping_Plugin' => __DIR__ . '/../..' . '/classes/class-flexible-shipping-plugin.php',
|
282 |
'Psr\\Log\\AbstractLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/AbstractLogger.php',
|
283 |
'Psr\\Log\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/log/Psr/Log/InvalidArgumentException.php',
|
@@ -287,7 +288,7 @@ class ComposerStaticInitbbc8a8c6de76372e157f93f92f310c7b
|
|
287 |
'Psr\\Log\\LoggerInterface' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerInterface.php',
|
288 |
'Psr\\Log\\LoggerTrait' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerTrait.php',
|
289 |
'Psr\\Log\\NullLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/NullLogger.php',
|
290 |
-
'Psr\\Log\\Test\\DummyTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/
|
291 |
'Psr\\Log\\Test\\LoggerInterfaceTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
|
292 |
'Psr\\Log\\Test\\TestLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/TestLogger.php',
|
293 |
'WPDesk\\FS\\Rate\\FirstRateNotice' => __DIR__ . '/../..' . '/classes/wp-wpdesk-fs-shipment/rate-notices/first-rate-notice.php',
|
@@ -358,9 +359,9 @@ class ComposerStaticInitbbc8a8c6de76372e157f93f92f310c7b
|
|
358 |
public static function getInitializer(ClassLoader $loader)
|
359 |
{
|
360 |
return \Closure::bind(function () use ($loader) {
|
361 |
-
$loader->prefixLengthsPsr4 =
|
362 |
-
$loader->prefixDirsPsr4 =
|
363 |
-
$loader->classMap =
|
364 |
|
365 |
}, null, ClassLoader::class);
|
366 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit9cdc996e0fd29311efdb1b496c0173c6
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
278 |
'FSVendor\\WPDesk_Translable' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Translable.php',
|
279 |
'FSVendor\\WPDesk_Translatable' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-builder/src/Plugin/WithoutNamespace/Translatable.php',
|
280 |
'FSVendor\\WPDesk_Update_API_Check' => __DIR__ . '/../..' . '/vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-plugin-update.php',
|
281 |
+
'Flexible_Shipping_Contextual_Info' => __DIR__ . '/../..' . '/classes/Flexible_Shipping_Contextual_Info.php',
|
282 |
'Flexible_Shipping_Plugin' => __DIR__ . '/../..' . '/classes/class-flexible-shipping-plugin.php',
|
283 |
'Psr\\Log\\AbstractLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/AbstractLogger.php',
|
284 |
'Psr\\Log\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/log/Psr/Log/InvalidArgumentException.php',
|
288 |
'Psr\\Log\\LoggerInterface' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerInterface.php',
|
289 |
'Psr\\Log\\LoggerTrait' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerTrait.php',
|
290 |
'Psr\\Log\\NullLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/NullLogger.php',
|
291 |
+
'Psr\\Log\\Test\\DummyTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/DummyTest.php',
|
292 |
'Psr\\Log\\Test\\LoggerInterfaceTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php',
|
293 |
'Psr\\Log\\Test\\TestLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/TestLogger.php',
|
294 |
'WPDesk\\FS\\Rate\\FirstRateNotice' => __DIR__ . '/../..' . '/classes/wp-wpdesk-fs-shipment/rate-notices/first-rate-notice.php',
|
359 |
public static function getInitializer(ClassLoader $loader)
|
360 |
{
|
361 |
return \Closure::bind(function () use ($loader) {
|
362 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit9cdc996e0fd29311efdb1b496c0173c6::$prefixLengthsPsr4;
|
363 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit9cdc996e0fd29311efdb1b496c0173c6::$prefixDirsPsr4;
|
364 |
+
$loader->classMap = ComposerStaticInit9cdc996e0fd29311efdb1b496c0173c6::$classMap;
|
365 |
|
366 |
}, null, ClassLoader::class);
|
367 |
}
|
vendor/composer/installed.json
CHANGED
@@ -1,23 +1,23 @@
|
|
1 |
[
|
2 |
{
|
3 |
"name": "psr/log",
|
4 |
-
"version": "1.1.
|
5 |
-
"version_normalized": "1.1.
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/php-fig/log.git",
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/php-fig/log/zipball/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
18 |
"php": ">=5.3.0"
|
19 |
},
|
20 |
-
"time": "
|
21 |
"type": "library",
|
22 |
"extra": {
|
23 |
"branch-alias": {
|
1 |
[
|
2 |
{
|
3 |
"name": "psr/log",
|
4 |
+
"version": "1.1.3",
|
5 |
+
"version_normalized": "1.1.3.0",
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/php-fig/log.git",
|
9 |
+
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc",
|
14 |
+
"reference": "0f73288fd15629204f9d42b7055f72dacbe811fc",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
18 |
"php": ">=5.3.0"
|
19 |
},
|
20 |
+
"time": "2020-03-23T09:12:05+00:00",
|
21 |
"type": "library",
|
22 |
"extra": {
|
23 |
"branch-alias": {
|
vendor/psr/log/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
vendor
|
|
vendor/psr/log/Psr/Log/LoggerInterface.php
CHANGED
@@ -22,8 +22,8 @@ interface LoggerInterface
|
|
22 |
/**
|
23 |
* System is unusable.
|
24 |
*
|
25 |
-
* @param string
|
26 |
-
* @param
|
27 |
*
|
28 |
* @return void
|
29 |
*/
|
@@ -35,8 +35,8 @@ interface LoggerInterface
|
|
35 |
* Example: Entire website down, database unavailable, etc. This should
|
36 |
* trigger the SMS alerts and wake you up.
|
37 |
*
|
38 |
-
* @param string
|
39 |
-
* @param
|
40 |
*
|
41 |
* @return void
|
42 |
*/
|
@@ -47,8 +47,8 @@ interface LoggerInterface
|
|
47 |
*
|
48 |
* Example: Application component unavailable, unexpected exception.
|
49 |
*
|
50 |
-
* @param string
|
51 |
-
* @param
|
52 |
*
|
53 |
* @return void
|
54 |
*/
|
@@ -58,8 +58,8 @@ interface LoggerInterface
|
|
58 |
* Runtime errors that do not require immediate action but should typically
|
59 |
* be logged and monitored.
|
60 |
*
|
61 |
-
* @param string
|
62 |
-
* @param
|
63 |
*
|
64 |
* @return void
|
65 |
*/
|
@@ -71,8 +71,8 @@ interface LoggerInterface
|
|
71 |
* Example: Use of deprecated APIs, poor use of an API, undesirable things
|
72 |
* that are not necessarily wrong.
|
73 |
*
|
74 |
-
* @param string
|
75 |
-
* @param
|
76 |
*
|
77 |
* @return void
|
78 |
*/
|
@@ -81,8 +81,8 @@ interface LoggerInterface
|
|
81 |
/**
|
82 |
* Normal but significant events.
|
83 |
*
|
84 |
-
* @param string
|
85 |
-
* @param
|
86 |
*
|
87 |
* @return void
|
88 |
*/
|
@@ -93,8 +93,8 @@ interface LoggerInterface
|
|
93 |
*
|
94 |
* Example: User logs in, SQL logs.
|
95 |
*
|
96 |
-
* @param string
|
97 |
-
* @param
|
98 |
*
|
99 |
* @return void
|
100 |
*/
|
@@ -103,8 +103,8 @@ interface LoggerInterface
|
|
103 |
/**
|
104 |
* Detailed debug information.
|
105 |
*
|
106 |
-
* @param string
|
107 |
-
* @param
|
108 |
*
|
109 |
* @return void
|
110 |
*/
|
@@ -113,9 +113,9 @@ interface LoggerInterface
|
|
113 |
/**
|
114 |
* Logs with an arbitrary level.
|
115 |
*
|
116 |
-
* @param mixed
|
117 |
-
* @param string
|
118 |
-
* @param
|
119 |
*
|
120 |
* @return void
|
121 |
*
|
22 |
/**
|
23 |
* System is unusable.
|
24 |
*
|
25 |
+
* @param string $message
|
26 |
+
* @param mixed[] $context
|
27 |
*
|
28 |
* @return void
|
29 |
*/
|
35 |
* Example: Entire website down, database unavailable, etc. This should
|
36 |
* trigger the SMS alerts and wake you up.
|
37 |
*
|
38 |
+
* @param string $message
|
39 |
+
* @param mixed[] $context
|
40 |
*
|
41 |
* @return void
|
42 |
*/
|
47 |
*
|
48 |
* Example: Application component unavailable, unexpected exception.
|
49 |
*
|
50 |
+
* @param string $message
|
51 |
+
* @param mixed[] $context
|
52 |
*
|
53 |
* @return void
|
54 |
*/
|
58 |
* Runtime errors that do not require immediate action but should typically
|
59 |
* be logged and monitored.
|
60 |
*
|
61 |
+
* @param string $message
|
62 |
+
* @param mixed[] $context
|
63 |
*
|
64 |
* @return void
|
65 |
*/
|
71 |
* Example: Use of deprecated APIs, poor use of an API, undesirable things
|
72 |
* that are not necessarily wrong.
|
73 |
*
|
74 |
+
* @param string $message
|
75 |
+
* @param mixed[] $context
|
76 |
*
|
77 |
* @return void
|
78 |
*/
|
81 |
/**
|
82 |
* Normal but significant events.
|
83 |
*
|
84 |
+
* @param string $message
|
85 |
+
* @param mixed[] $context
|
86 |
*
|
87 |
* @return void
|
88 |
*/
|
93 |
*
|
94 |
* Example: User logs in, SQL logs.
|
95 |
*
|
96 |
+
* @param string $message
|
97 |
+
* @param mixed[] $context
|
98 |
*
|
99 |
* @return void
|
100 |
*/
|
103 |
/**
|
104 |
* Detailed debug information.
|
105 |
*
|
106 |
+
* @param string $message
|
107 |
+
* @param mixed[] $context
|
108 |
*
|
109 |
* @return void
|
110 |
*/
|
113 |
/**
|
114 |
* Logs with an arbitrary level.
|
115 |
*
|
116 |
+
* @param mixed $level
|
117 |
+
* @param string $message
|
118 |
+
* @param mixed[] $context
|
119 |
*
|
120 |
* @return void
|
121 |
*
|
vendor/psr/log/Psr/Log/Test/DummyTest.php
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Psr\Log\Test;
|
4 |
+
|
5 |
+
/**
|
6 |
+
* This class is internal and does not follow the BC promise.
|
7 |
+
*
|
8 |
+
* Do NOT use this class in any way.
|
9 |
+
*
|
10 |
+
* @internal
|
11 |
+
*/
|
12 |
+
class DummyTest
|
13 |
+
{
|
14 |
+
public function __toString()
|
15 |
+
{
|
16 |
+
return 'DummyTest';
|
17 |
+
}
|
18 |
+
}
|
vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php
CHANGED
@@ -136,11 +136,3 @@ abstract class LoggerInterfaceTest extends TestCase
|
|
136 |
$this->assertEquals($expected, $this->getLogs());
|
137 |
}
|
138 |
}
|
139 |
-
|
140 |
-
class DummyTest
|
141 |
-
{
|
142 |
-
public function __toString()
|
143 |
-
{
|
144 |
-
return 'DummyTest';
|
145 |
-
}
|
146 |
-
}
|
136 |
$this->assertEquals($expected, $this->getLogs());
|
137 |
}
|
138 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vendor_prefixed/wpdesk/wp-notice/src/WPDesk/Notice/AjaxHandler.php
CHANGED
@@ -67,9 +67,9 @@ class AjaxHandler implements \FSVendor\WPDesk\PluginBuilder\Plugin\HookablePlugi
|
|
67 |
public function processAjaxNoticeDismiss()
|
68 |
{
|
69 |
if (isset($_POST[self::POST_FIELD_NOTICE_NAME])) {
|
70 |
-
$noticeName = $_POST[self::POST_FIELD_NOTICE_NAME];
|
71 |
if (isset($_POST[self::POST_FIELD_SOURCE])) {
|
72 |
-
$source = $_POST[self::POST_FIELD_SOURCE];
|
73 |
} else {
|
74 |
$source = null;
|
75 |
}
|
67 |
public function processAjaxNoticeDismiss()
|
68 |
{
|
69 |
if (isset($_POST[self::POST_FIELD_NOTICE_NAME])) {
|
70 |
+
$noticeName = \sanitize_text_field($_POST[self::POST_FIELD_NOTICE_NAME]);
|
71 |
if (isset($_POST[self::POST_FIELD_SOURCE])) {
|
72 |
+
$source = \sanitize_text_field($_POST[self::POST_FIELD_SOURCE]);
|
73 |
} else {
|
74 |
$source = null;
|
75 |
}
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-api-manager-menu.php
CHANGED
@@ -23,28 +23,13 @@ if (!\class_exists('FSVendor\\WPDesk_API_MENU')) {
|
|
23 |
public function __construct($api_manager)
|
24 |
{
|
25 |
$this->api_manager = $api_manager;
|
26 |
-
\add_action('admin_menu', [$this, 'add_menu'], 100);
|
27 |
-
// add_action( 'admin_init', array( $this, 'load_settings' ) );
|
28 |
-
}
|
29 |
-
// Add option page menu
|
30 |
-
public function add_menu()
|
31 |
-
{
|
32 |
-
/*
|
33 |
-
add_submenu_page( 'flexible-shipping',
|
34 |
-
__( $this->api_manager->settings_menu_title, $this->api_manager->text_domain ),
|
35 |
-
__( $this->api_manager->settings_menu_title, $this->api_manager->text_domain ),
|
36 |
-
'manage_options',
|
37 |
-
$this->api_manager->activation_tab_key,
|
38 |
-
array( $this, 'config_page')
|
39 |
-
);
|
40 |
-
*/
|
41 |
}
|
42 |
// Draw option page
|
43 |
public function config_page()
|
44 |
{
|
45 |
$settings_tabs = [$this->api_manager->activation_tab_key => \__($this->api_manager->menu_tab_activation_title, $this->api_manager->text_domain), $this->api_manager->deactivation_tab_key => \__($this->api_manager->menu_tab_deactivation_title, $this->api_manager->text_domain)];
|
46 |
-
$current_tab = isset($_GET['tab']) ? $_GET['tab'] : $this->api_manager->activation_tab_key;
|
47 |
-
$tab = isset($_GET['tab']) ? $_GET['tab'] : $this->api_manager->activation_tab_key;
|
48 |
?>
|
49 |
<div class='wrap'>
|
50 |
<?php
|
23 |
public function __construct($api_manager)
|
24 |
{
|
25 |
$this->api_manager = $api_manager;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
// Draw option page
|
28 |
public function config_page()
|
29 |
{
|
30 |
$settings_tabs = [$this->api_manager->activation_tab_key => \__($this->api_manager->menu_tab_activation_title, $this->api_manager->text_domain), $this->api_manager->deactivation_tab_key => \__($this->api_manager->menu_tab_deactivation_title, $this->api_manager->text_domain)];
|
31 |
+
$current_tab = isset($_GET['tab']) ? \sanitize_key($_GET['tab']) : $this->api_manager->activation_tab_key;
|
32 |
+
$tab = isset($_GET['tab']) ? \sanitize_key($_GET['tab']) : $this->api_manager->activation_tab_key;
|
33 |
?>
|
34 |
<div class='wrap'>
|
35 |
<?php
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/ApiManager/class-wc-plugin-update.php
CHANGED
@@ -206,14 +206,8 @@ if (!\class_exists('FSVendor\\WPDesk_Update_API_Check')) {
|
|
206 |
}
|
207 |
return \false;
|
208 |
}
|
209 |
-
$
|
210 |
-
|
211 |
-
* For debugging errors from the API
|
212 |
-
* For errors like: unserialize(): Error at offset 0 of 170 bytes
|
213 |
-
* Comment out $response above first
|
214 |
-
*/
|
215 |
-
// $response = wp_remote_retrieve_body( $request );
|
216 |
-
// print_r($response); exit;
|
217 |
if (\is_object($response)) {
|
218 |
if (isset($response->sections)) {
|
219 |
$response->sections['description'] = \apply_filters('the_content', isset($response->sections['description_base64']) ? \base64_decode($response->sections['description_base64']) : '');
|
@@ -241,6 +235,8 @@ if (!\class_exists('FSVendor\\WPDesk_Update_API_Check')) {
|
|
241 |
} else {
|
242 |
if (\class_exists('FSVendor\\WPDesk_Logger_Factory')) {
|
243 |
\FSVendor\WPDesk_Logger_Factory::log_message_backtrace('Response is not an object', \FSVendor\WPDesk_Logger::DEBUG, \debug_backtrace());
|
|
|
|
|
244 |
}
|
245 |
return \false;
|
246 |
}
|
206 |
}
|
207 |
return \false;
|
208 |
}
|
209 |
+
$raw_response = \wp_remote_retrieve_body($request);
|
210 |
+
$response = @\unserialize($raw_response);
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
if (\is_object($response)) {
|
212 |
if (isset($response->sections)) {
|
213 |
$response->sections['description'] = \apply_filters('the_content', isset($response->sections['description_base64']) ? \base64_decode($response->sections['description_base64']) : '');
|
235 |
} else {
|
236 |
if (\class_exists('FSVendor\\WPDesk_Logger_Factory')) {
|
237 |
\FSVendor\WPDesk_Logger_Factory::log_message_backtrace('Response is not an object', \FSVendor\WPDesk_Logger::DEBUG, \debug_backtrace());
|
238 |
+
} else {
|
239 |
+
\error_log("Unserialize error. Please send this report to support@wpdesk.net. Request: {$request}. Raw Response: {$raw_response}");
|
240 |
}
|
241 |
return \false;
|
242 |
}
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/License/Action/LicenseActivation.php
CHANGED
@@ -25,8 +25,8 @@ class LicenseActivation implements \FSVendor\WPDesk\License\Page\Action
|
|
25 |
*/
|
26 |
public function execute(array $plugin)
|
27 |
{
|
28 |
-
$activation_email = \trim($_POST['activation_email']);
|
29 |
-
$api_key = \trim($_POST['api_key']);
|
30 |
$product_id = $plugin['product_id'];
|
31 |
$this->plugin_data = $plugin;
|
32 |
$this->activate_license($activation_email, $api_key, new \FSVendor\WPDesk\License\ServerAddressRepository($product_id));
|
25 |
*/
|
26 |
public function execute(array $plugin)
|
27 |
{
|
28 |
+
$activation_email = \sanitize_email(\trim($_POST['activation_email']));
|
29 |
+
$api_key = \sanitize_text_field(\trim($_POST['api_key']));
|
30 |
$product_id = $plugin['product_id'];
|
31 |
$this->plugin_data = $plugin;
|
32 |
$this->activate_license($activation_email, $api_key, new \FSVendor\WPDesk\License\ServerAddressRepository($product_id));
|
vendor_prefixed/wpdesk/wp-wpdesk-license/src/Page/LicensePage.php
CHANGED
@@ -52,7 +52,7 @@ class LicensePage implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
52 |
$wpdesk_helper_plugins = [];
|
53 |
}
|
54 |
if (isset($_POST['plugin']) && $_POST['action']) {
|
55 |
-
$this->execute_plugin_action($_POST['plugin'], $_POST['action']);
|
56 |
}
|
57 |
$plugins = $this->plugin_database->get_plugins_activation_info();
|
58 |
/** @noinspection PhpUnusedLocalVariableInspection */
|
@@ -106,7 +106,7 @@ class LicensePage implements \FSVendor\WPDesk\PluginBuilder\Plugin\Hookable
|
|
106 |
public function handle_api_hide_message()
|
107 |
{
|
108 |
if (\wp_verify_nonce($_REQUEST['nonce'], 'wpdesk-api-ajax-notification-nonce')) {
|
109 |
-
if (\update_option('wpdesk_api_message_close', $_REQUEST['value'])) {
|
110 |
die('1');
|
111 |
}
|
112 |
die('0');
|
52 |
$wpdesk_helper_plugins = [];
|
53 |
}
|
54 |
if (isset($_POST['plugin']) && $_POST['action']) {
|
55 |
+
$this->execute_plugin_action(\sanitize_text_field($_POST['plugin']), \sanitize_key($_POST['action']));
|
56 |
}
|
57 |
$plugins = $this->plugin_database->get_plugins_activation_info();
|
58 |
/** @noinspection PhpUnusedLocalVariableInspection */
|
106 |
public function handle_api_hide_message()
|
107 |
{
|
108 |
if (\wp_verify_nonce($_REQUEST['nonce'], 'wpdesk-api-ajax-notification-nonce')) {
|
109 |
+
if (\update_option('wpdesk_api_message_close', \sanitize_key($_REQUEST['value']))) {
|
110 |
die('1');
|
111 |
}
|
112 |
die('0');
|
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/class-wpdesk-tracker.php
CHANGED
@@ -160,9 +160,9 @@ if (!\class_exists('FSVendor\\WPDesk_Tracker')) {
|
|
160 |
}
|
161 |
$type = '';
|
162 |
if (isset($_REQUEST['type'])) {
|
163 |
-
$type = $_REQUEST['type'];
|
164 |
}
|
165 |
-
if ($type
|
166 |
$options = \get_option('wpdesk_helper_options', array());
|
167 |
if (!\is_array($options)) {
|
168 |
$options = array();
|
@@ -172,7 +172,7 @@ if (!\class_exists('FSVendor\\WPDesk_Tracker')) {
|
|
172 |
$options['wpdesk_tracker_agree'] = '1';
|
173 |
\update_option('wpdesk_helper_options', $options);
|
174 |
}
|
175 |
-
if ($type
|
176 |
$options = \get_option('wpdesk_helper_options', array());
|
177 |
if (!\is_array($options)) {
|
178 |
$options = array();
|
@@ -251,7 +251,7 @@ if (!\class_exists('FSVendor\\WPDesk_Tracker')) {
|
|
251 |
}
|
252 |
}
|
253 |
}
|
254 |
-
if ($screen->id
|
255 |
if (isset($_GET['wpdesk_tracker_opt_out'])) {
|
256 |
$options = \get_option('wpdesk_helper_options', array());
|
257 |
if (!\is_array($options)) {
|
@@ -269,7 +269,7 @@ if (!\class_exists('FSVendor\\WPDesk_Tracker')) {
|
|
269 |
$user = \wp_get_current_user();
|
270 |
$username = $user->first_name ? $user->first_name : $user->user_login;
|
271 |
$allow_url = \admin_url('admin.php?page=wpdesk_tracker');
|
272 |
-
$allow_url = \add_query_arg('plugin', $_GET['plugin'], $allow_url);
|
273 |
$skip_url = $allow_url;
|
274 |
$allow_url = \add_query_arg('allow', '1', $allow_url);
|
275 |
$skip_url = \add_query_arg('allow', '0', $skip_url);
|
@@ -280,14 +280,14 @@ if (!\class_exists('FSVendor\\WPDesk_Tracker')) {
|
|
280 |
{
|
281 |
$user = \wp_get_current_user();
|
282 |
$username = $user->first_name;
|
283 |
-
$plugin = $_GET['plugin'];
|
284 |
$active_plugins = \get_plugins();
|
285 |
$plugin_name = $active_plugins[$plugin]['Name'];
|
286 |
include 'views/tracker-deactivate.php';
|
287 |
}
|
288 |
public function admin_init()
|
289 |
{
|
290 |
-
if (isset($_GET['page']) && $_GET['page']
|
291 |
if (isset($_GET['plugin']) && isset($_GET['allow'])) {
|
292 |
$options = \get_option('wpdesk_helper_options', array());
|
293 |
if (!\is_array($options)) {
|
@@ -325,11 +325,11 @@ if (!\class_exists('FSVendor\\WPDesk_Tracker')) {
|
|
325 |
{
|
326 |
$params = array();
|
327 |
$params['click_action'] = 'plugin_deactivation';
|
328 |
-
$params['plugin'] = $_REQUEST['plugin'];
|
329 |
-
$params['plugin_name'] = $_REQUEST['plugin_name'];
|
330 |
-
$params['reason'] = $_REQUEST['reason'];
|
331 |
if (!empty($_REQUEST['additional_info'])) {
|
332 |
-
$params['additional_info'] = $_REQUEST['additional_info'];
|
333 |
}
|
334 |
$this->send_payload_to_wpdesk(\apply_filters('wpdesk_tracker_deactivation_data', $params));
|
335 |
}
|
160 |
}
|
161 |
$type = '';
|
162 |
if (isset($_REQUEST['type'])) {
|
163 |
+
$type = \sanitize_key($_REQUEST['type']);
|
164 |
}
|
165 |
+
if ($type === 'allow') {
|
166 |
$options = \get_option('wpdesk_helper_options', array());
|
167 |
if (!\is_array($options)) {
|
168 |
$options = array();
|
172 |
$options['wpdesk_tracker_agree'] = '1';
|
173 |
\update_option('wpdesk_helper_options', $options);
|
174 |
}
|
175 |
+
if ($type === 'dismiss') {
|
176 |
$options = \get_option('wpdesk_helper_options', array());
|
177 |
if (!\is_array($options)) {
|
178 |
$options = array();
|
251 |
}
|
252 |
}
|
253 |
}
|
254 |
+
if ($screen->id === 'plugins') {
|
255 |
if (isset($_GET['wpdesk_tracker_opt_out'])) {
|
256 |
$options = \get_option('wpdesk_helper_options', array());
|
257 |
if (!\is_array($options)) {
|
269 |
$user = \wp_get_current_user();
|
270 |
$username = $user->first_name ? $user->first_name : $user->user_login;
|
271 |
$allow_url = \admin_url('admin.php?page=wpdesk_tracker');
|
272 |
+
$allow_url = \add_query_arg('plugin', \sanitize_text_field($_GET['plugin']), $allow_url);
|
273 |
$skip_url = $allow_url;
|
274 |
$allow_url = \add_query_arg('allow', '1', $allow_url);
|
275 |
$skip_url = \add_query_arg('allow', '0', $skip_url);
|
280 |
{
|
281 |
$user = \wp_get_current_user();
|
282 |
$username = $user->first_name;
|
283 |
+
$plugin = \sanitize_text_field($_GET['plugin']);
|
284 |
$active_plugins = \get_plugins();
|
285 |
$plugin_name = $active_plugins[$plugin]['Name'];
|
286 |
include 'views/tracker-deactivate.php';
|
287 |
}
|
288 |
public function admin_init()
|
289 |
{
|
290 |
+
if (isset($_GET['page']) && $_GET['page'] === 'wpdesk_tracker') {
|
291 |
if (isset($_GET['plugin']) && isset($_GET['allow'])) {
|
292 |
$options = \get_option('wpdesk_helper_options', array());
|
293 |
if (!\is_array($options)) {
|
325 |
{
|
326 |
$params = array();
|
327 |
$params['click_action'] = 'plugin_deactivation';
|
328 |
+
$params['plugin'] = \sanitize_text_field($_REQUEST['plugin']);
|
329 |
+
$params['plugin_name'] = \sanitize_text_field($_REQUEST['plugin_name']);
|
330 |
+
$params['reason'] = \sanitize_text_field($_REQUEST['reason']);
|
331 |
if (!empty($_REQUEST['additional_info'])) {
|
332 |
+
$params['additional_info'] = \sanitize_text_field($_REQUEST['additional_info']);
|
333 |
}
|
334 |
$this->send_payload_to_wpdesk(\apply_filters('wpdesk_tracker_deactivation_data', $params));
|
335 |
}
|