You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
<p><?phpesc_html_e('The WooCommerce Blocks feature plugin requires a more recent version of WordPress and has been paused. Please update WordPress to continue enjoying WooCommerce Blocks.', 'woo-gutenberg-products-block'); ?></p>
58
+
<p><?phpesc_html_e('The WooCommerce Blocks feature plugin requires a more recent version of WordPress and has been paused. Please update WordPress to continue enjoying WooCommerce Blocks.', 'woo-gutenberg-products-block'); ?></p>
* If development version is detected and the Jetpack constant is not defined, show a notice.
91
87
*/
92
-
if (woocommerce_blocks_is_development_version() && !defined('JETPACK_AUTOLOAD_DEV')) {
88
+
if (woocommerce_blocks_is_development_version() && !defined('JETPACK_AUTOLOAD_DEV' ) ) {
93
89
add_action(
94
90
'admin_notices',
95
91
function () {
96
92
echo'<div class="error"><p>';
97
93
printf(
98
94
/* translators: %1$s is referring to a php constant name, %2$s is referring to the wp-config.php file. */
99
-
esc_html__('WooCommerce Blocks development mode requires the %1$s constant to be defined and true in your %2$s file. Otherwise you are loading the blocks package from WooCommerce core.', 'woo-gutenberg-products-block'),
95
+
esc_html__('WooCommerce Blocks development mode requires the %1$s constant to be defined and true in your %2$s file. Otherwise you are loading the blocks package from WooCommerce core.', 'woo-gutenberg-products-block'),
100
96
'JETPACK_AUTOLOAD_DEV',
101
97
'wp-config.php'
102
98
);
@@ -116,16 +112,16 @@ function () {
116
112
* If the autoloader is not present, let's log the failure and display a nice admin notice.
esc_html__('Your installation of the WooCommerce Blocks feature plugin is incomplete. Please run %1$s within the %2$s directory.', 'woo-gutenberg-products-block'),
122
+
esc_html__('Your installation of the WooCommerce Blocks feature plugin is incomplete. Please run %1$s within the %2$s directory.', 'woo-gutenberg-products-block'),
esc_html__('Your installation of the WooCommerce Blocks feature plugin is incomplete. Please run %1$s within the %2$s directory.', 'woo-gutenberg-products-block'),
140
+
esc_html__('Your installation of the WooCommerce Blocks feature plugin is incomplete. Please run %1$s within the %2$s directory.', 'woo-gutenberg-products-block'),
@@ -268,17 +261,17 @@ function woocommerce_blocks_plugin_outdated_notice()
268
261
* the current path is from the WC Core, we can consider the plugin is
269
262
* outdated because Jetpack Autoloader always loads the newer package.
270
263
*/
271
-
if (!strpos($woocommerce_blocks_path, 'packages/woocommerce-blocks')) {
264
+
if ( ! strpos($woocommerce_blocks_path, 'packages/woocommerce-blocks' ) ) {
272
265
return;
273
266
}
274
267
275
-
if (should_display_compatibility_notices()) {
276
-
?>
268
+
if (should_display_compatibility_notices()) {
269
+
?>
277
270
<div class="notice notice-warning">
278
-
<p><?phpesc_html_e('You have WooCommerce Blocks installed, but the WooCommerce bundled version is running because it is more up-to-date. This may cause unexpected compatibility issues. Please update the WooCommerce Blocks plugin.', 'woo-gutenberg-products-block'); ?></p>
271
+
<p><?phpesc_html_e('You have WooCommerce Blocks installed, but the WooCommerce bundled version is running because it is more up-to-date. This may cause unexpected compatibility issues. Please update the WooCommerce Blocks plugin.', 'woo-gutenberg-products-block'); ?></p>
0 commit comments