| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | * @wordpress-plugin |
| 11 | 11 | * Plugin Name: Parse.ly |
| 12 | 12 | * Plugin URI: https://docs.parse.ly/wordpress |
| 13 | 13 | * Description: This plugin makes it a snap to add Parse.ly tracking code and metadata to your WordPress blog. |
| 14 | - * Version: 3.23.3 | |
| 14 | + * Version: 3.24.2 | |
| 15 | 15 | * Author: Parse.ly |
| 16 | 16 | * Author URI: https://www.parse.ly |
| 17 | 17 | * Text Domain: wp-parsely |
| 18 | 18 | * License: GPL-2.0-or-later |
| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | * License: GPL-2.0-or-later |
| 19 | 19 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 20 | 20 | * GitHub Plugin URI: https://github.com/Parsely/wp-parsely |
| 21 | 21 | * Requires PHP: 7.4 |
| 22 | - * Requires WP: 6.0.0 | |
| 22 | + * Requires WP: 6.1.0 | |
| 23 | 23 | */ |
| 24 | 24 | |
| 25 | 25 | declare(strict_types=1); |
| 26 | 26 | |
| @@ -49,9 +49,9 @@ | ||
| 49 | 49 | if ( class_exists( Parsely::class ) ) { |
| 50 | 50 | return; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | -const PARSELY_VERSION = '3.23.3'; | |
| 53 | +const PARSELY_VERSION = '3.24.2'; | |
| 54 | 54 | const PARSELY_FILE = __FILE__; |
| 55 | 55 | const PARSELY_DATA_SCHEMA_VERSION = '1'; |
| 56 | 56 | const PARSELY_CACHE_GROUP = 'wp-parsely'; |
| 57 | 57 | |
| @@ -224,8 +224,22 @@ | ||
| 224 | 224 | function init_content_helper_editor_sidebar(): void { |
| 225 | 225 | $GLOBALS['parsely_editor_sidebar']->run(); |
| 226 | 226 | } |
| 227 | 227 | |
| 228 | +add_action( 'enqueue_block_assets', __NAMESPACE__ . '\\init_content_helper_canvas_styles' ); | |
| 229 | +/** | |
| 230 | + * Inserts the PCH Editor Sidebar styles that need to reach the Editor canvas. | |
| 231 | + * | |
| 232 | + * @since 3.24.0 | |
| 233 | + */ | |
| 234 | +function init_content_helper_canvas_styles(): void { | |
| 235 | + if ( ! isset( $GLOBALS['parsely_editor_sidebar'] ) ) { | |
| 236 | + return; | |
| 237 | + } | |
| 238 | + | |
| 239 | + $GLOBALS['parsely_editor_sidebar']->run_canvas_styles(); | |
| 240 | +} | |
| 241 | + | |
| 228 | 242 | add_action( 'admin_init', __NAMESPACE__ . '\\parsely_content_helper_editor_sidebar_features' ); |
| 229 | 243 | add_action( 'rest_api_init', __NAMESPACE__ . '\\parsely_content_helper_editor_sidebar_features' ); |
| 230 | 244 | /** |
| 231 | 245 | * Initializes the PCH Editor Sidebar features. |
| @@ -313,9 +327,9 @@ | ||
| 313 | 327 | // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.get_posts_get_posts |
| 314 | 328 | $smart_links_without_status = get_posts( |
| 315 | 329 | array( |
| 316 | 330 | 'post_type' => 'parsely_smart_link', |
| 317 | - 'posts_per_page' => -1, | |
| 331 | + 'posts_per_page' => -1, // phpcs:ignore WordPressVIPMinimum.Performance.NoPaging.posts_per_page_posts_per_page | |
| 318 | 332 | 'fields' => 'ids', |
| 319 | 333 | // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query |
| 320 | 334 | 'tax_query' => array( |
| 321 | 335 | array( |