I have this PHP Warning: Undefined array key “standard” in /public_html/wp-content/plugins/booster-plus-for-woocommerce/includes/shortcodes/class-wcj-orders-shortcodes.php on line 254\n
That line contains: $atts[‘standard’] = wcj_sanitize_input_attribute_values( $atts[‘standard’] );
The PHP warning, Undefined array key “standard”, occurs because the array key “standard” is not defined in the $atts array when it is being accessed. This can happen if the shortcode that the code is handling doesn’t include the standard attribute.
I have Booster Plus for WooCommerce version 7.2.2
How to solve this?
]]>I am developing a plugin and I use WordPress standard (Code Sniffer)
But I get the following standard error on this code
I need to know how can I use $wpdb->prepare in the following code to pass the standard?
My code:
$get_order = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM {$table_name} WHERE order_id = %d", $order_id ) );
I get this error:
Use placeholders and $wpdb->prepare(); found interpolated variable {$table_name} at "SELECT * FROM {$table_name} WHERE order_id = %d"
“code”: “WordPress.DB.PreparedSQL.InterpolatedNotPrepared”,
“severity”: 8,
“message”: “Use placeholders and $wpdb->prepare(); found interpolated variable {$table_name} at \”SELECT * FROM {$table_name} WHERE order_id = %d\””,
“source”: “PHPCS”,
Thank you for any help
Can you please confirm whether there is any issue in using Express accounts?
]]>I’d send a pull request, … but you know. CVS.
The following code on includes/wc-template-functions.php line 355 is incorrect:
function wc_no_js() {
?>
<script type="text/javascript">
(function () { ...
})();
</script>
<?php
}
Automattic programming standards, it should be:
function wc_no_js() {
wp_print_script_tag([]);
?>
(function () { ...
})();
</script>
<?php
}
Making this change will allow woocommerce users to implement a secure Content Security Policy using existing WordPress standards. Thanks for reading, I hope this change makes it to the repo soon!
]]>Finish: 5.29 s DOMContentLoaded: 215 ms Load: 341 ms
The target value, standard, should be 2 to 3 sec. Right? But for which one? The first,Finish or the second, DOMContentLoaded?
Regards Loek from The Netherlands
]]>How can I reset my templates to the default, so I get a formatting for a single event (https://eventsmanager.site/events/neil-young-main/) and the event-list (https://eventsmanager.site/events/)
My Installation has a broken variant and I want to keep my entries. So I can’t deinstall and make a fresh install, I guess?
]]>On attempting to reconnect with PayPal, a Business account is required. I’d prefer to not set this up and to continue using a personal PayPal account – is this possible?
According to the plugin’s FAQ it’s possible to have a Standard PayPal account and to use this plugin. Is this correct?
Does the Pro version of this plugin allow it if not the standard version?
]]>Is there a way to adjust the settings of the search bar so that it will also search for product tags?
Thanks in advance,
Chris
The issue is that some other plugins, like WP Bottom Menu, automatically use the standard wordpress search bar inside their plugin. So unless I’m missing something, the bottom menu search form is still unable to deliver search results based on product tags.
Is that correct? Is there still no way to fix this issue by altering the standard WordPress search?
I tried downloading “Search by Product Tag for Woocommerce” by Matthew Lawson but that plugin is 9 years out-of-date and appears non-functional at this time.
If anyone has ideas, I’m all-ears.
Thanks in advance,
Chris
The clone (made with Installatron) now shows indeed all pages, etc. but cannot open them with the standard editor by Classic Editor; it only gives the Gutenberg screen. De-activate and activate Classic Editor does not help. “Standard” is chosen. On the original site made a clone from Classic Editor functions well.
Because it is a testenvironment I cannot show the clonesite. The link-to-page isn’t the problemsite then.
But I would appreciate any suggestion to look for or to try in order to find the cause.
Cheers
Rudolph Smits, Netherlands