| @@ -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.16.1 | |
| 14 | + * Version: 3.14.1 | |
| 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 |
| @@ -31,9 +31,8 @@ | ||
| 31 | 31 | use Parsely\Content_Helper\Excerpt_Generator; |
| 32 | 32 | use Parsely\Content_Helper\Post_List_Stats; |
| 33 | 33 | use Parsely\Endpoints\Analytics_Post_Detail_API_Proxy; |
| 34 | 34 | use Parsely\Endpoints\Analytics_Posts_API_Proxy; |
| 35 | -use Parsely\Endpoints\Content_Helper\Smart_Linking_Endpoint; | |
| 36 | 35 | use Parsely\Endpoints\ContentSuggestions\Suggest_Brief_API_Proxy; |
| 37 | 36 | use Parsely\Endpoints\ContentSuggestions\Suggest_Headline_API_Proxy; |
| 38 | 37 | use Parsely\Endpoints\ContentSuggestions\Suggest_Linked_Reference_API_Proxy; |
| 39 | 38 | use Parsely\Endpoints\GraphQL_Metadata; |
| @@ -69,17 +68,12 @@ | ||
| 69 | 68 | if ( class_exists( Parsely::class ) ) { |
| 70 | 69 | return; |
| 71 | 70 | } |
| 72 | 71 | |
| 73 | -const PARSELY_VERSION = '3.16.1'; | |
| 72 | +const PARSELY_VERSION = '3.14.1'; | |
| 74 | 73 | const PARSELY_FILE = __FILE__; |
| 75 | 74 | |
| 76 | -require_once __DIR__ . '/src/Models/class-base-model.php'; | |
| 77 | -require_once __DIR__ . '/src/Models/class-smart-link.php'; | |
| 78 | -require_once __DIR__ . '/src/Models/class-inbound-smart-link.php'; | |
| 79 | - | |
| 80 | 75 | require_once __DIR__ . '/src/class-parsely.php'; |
| 81 | -require_once __DIR__ . '/src/class-permissions.php'; | |
| 82 | 76 | require_once __DIR__ . '/src/class-scripts.php'; |
| 83 | 77 | require_once __DIR__ . '/src/class-dashboard-link.php'; |
| 84 | 78 | require_once __DIR__ . '/src/class-validator.php'; |
| 85 | 79 | require_once __DIR__ . '/src/UI/class-admin-bar.php'; |
| @@ -177,9 +171,8 @@ | ||
| 177 | 171 | require_once __DIR__ . '/src/Endpoints/content-suggestions/class-suggest-headline-api-proxy.php'; |
| 178 | 172 | require_once __DIR__ . '/src/Endpoints/content-suggestions/class-suggest-linked-reference-api-proxy.php'; |
| 179 | 173 | require_once __DIR__ . '/src/Endpoints/user-meta/class-dashboard-widget-settings-endpoint.php'; |
| 180 | 174 | require_once __DIR__ . '/src/Endpoints/user-meta/class-editor-sidebar-settings-endpoint.php'; |
| 181 | -require_once __DIR__ . '/src/Endpoints/content-helper/class-smart-linking-endpoint.php'; | |
| 182 | 175 | |
| 183 | 176 | // RemoteAPI base classes. |
| 184 | 177 | require_once __DIR__ . '/src/RemoteAPI/interface-cache.php'; |
| 185 | 178 | require_once __DIR__ . '/src/RemoteAPI/interface-remote-api.php'; |
| @@ -213,11 +206,8 @@ | ||
| 213 | 206 | // Content Helper settings endpoints. |
| 214 | 207 | ( new Dashboard_Widget_Settings_Endpoint( $GLOBALS['parsely'] ) )->run(); |
| 215 | 208 | ( new Editor_Sidebar_Settings_Endpoint( $GLOBALS['parsely'] ) )->run(); |
| 216 | 209 | |
| 217 | - // Internal Content Helper endpoints. | |
| 218 | - ( new Smart_Linking_Endpoint( $GLOBALS['parsely'] ) )->run(); | |
| 219 | - | |
| 220 | 210 | parsely_run_rest_api_endpoint( |
| 221 | 211 | Related_API::class, |
| 222 | 212 | Related_API_Proxy::class, |
| 223 | 213 | $wp_cache |
| @@ -280,31 +270,12 @@ | ||
| 280 | 270 | * @since 3.5.0 Moved from Parsely\Scripts\enqueue_block_editor_assets(). |
| 281 | 271 | * @since 3.9.0 Renamed from init_content_helper(). |
| 282 | 272 | */ |
| 283 | 273 | function init_content_helper_editor_sidebar(): void { |
| 284 | - $GLOBALS['parsely_editor_sidebar']->run(); | |
| 274 | + ( new Editor_Sidebar( $GLOBALS['parsely'] ) )->run(); | |
| 285 | 275 | } |
| 286 | 276 | |
| 287 | 277 | require_once __DIR__ . '/src/content-helper/excerpt-generator/class-excerpt-generator.php'; |
| 288 | - | |
| 289 | -add_action( 'admin_init', __NAMESPACE__ . '\\parsely_content_helper_editor_sidebar_features' ); | |
| 290 | -add_action( 'rest_api_init', __NAMESPACE__ . '\\parsely_content_helper_editor_sidebar_features' ); | |
| 291 | - | |
| 292 | -/** | |
| 293 | - * Initializes the PCH Editor Sidebar features. | |
| 294 | - * | |
| 295 | - * @since 3.16.0 | |
| 296 | - */ | |
| 297 | -function parsely_content_helper_editor_sidebar_features(): void { | |
| 298 | - /** | |
| 299 | - * The Editor Sidebar instance. | |
| 300 | - * | |
| 301 | - * @since 3.16.0 | |
| 302 | - * @var Editor_Sidebar $GLOBALS['parsely_editor_sidebar'] | |
| 303 | - */ | |
| 304 | - $GLOBALS['parsely_editor_sidebar'] = new Editor_Sidebar( $GLOBALS['parsely'] ); | |
| 305 | - $GLOBALS['parsely_editor_sidebar']->init_features(); | |
| 306 | -} | |
| 307 | 278 | |
| 308 | 279 | // The priority of 9 is used to ensure that the Excerpt Generator is loaded before the PCH Editor Sidebar (10). |
| 309 | 280 | add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\\init_content_helper_excerpt_generator', 9 ); |
| 310 | 281 | /** |