Õï$ `Älî$ ˜Älî$ ĞÄlî$ XA À}ô@ Ålî$ 0A 0A °·õ@ êï$ êï$ ³lî$ 8éï$ 8éï$ Ğ\½î$ €ô@ `ù@ ñï$ èøï$ èøï$ €üï$ Ğ A ¸qA ¸qA œô@ ˜ıï$ ]½î$ àï$ àï$ `Émî$ hï$ hï$ ÀÉmî$ Êmî$ 0ï$ 0ï$ @Ålî$ ï$ ï$ xÅlî$ ï$ ï$ °Ålî$ À ï$ À ï$ èÅlî$ Hï$ Hï$ @³lî$ Uhî$ Uhî$ Ælî$ Vhî$ ğ:½î$ ğ:½î$ XÆlî$ 07lî$ 07lî$ @Ëmî$ Ëmî$ ¨7lî$ ¨7lî$ €³lî$ `9lî$ `9lî$ Ælî$ ˜8lî$ ˜8lî$ À³lî$ Ğ\hî$ Ğ\hî$ ÈÆlî$ lî$ lî$ p]½î$ ¸lî$ ¸lî$ Çlî$ àlî$ èA H A 84lî$ 84lî$ ´lî$ è3lî$ è3lî$ ÀÌmî$ ğ ö@ À3lî$ À3lî$ @´lî$ pÇlî$ ¸lî$ ¸lî$ À]½î$ €´lî$ X2lî$ X2lî$ À´lî$ à1lî$ à1lî$ Ímî$ ğ ö@ È0lî$ È0lî$ µlî$ 0lî$ 0lî$ €Ímî$ ğ ö@ Plî$ Plî$ @µlî$ ¨Çlî$ ¸qA ¸qA ^½î$ lî$ lî$ °Ímî$ ˜lî$ ˜lî$ Hlî$ lî$ ølî$ ølî$ àÇlî$ ø2lî$ ø2lî$ pÎmî$ lî$ lî$ Èlî$ °$¼î$ °$¼î$ ĞÎmî$ %¼î$ %¼î$ €µlî$ P%¼î$ P%¼î$ 0Ïmî$ %¼î$ &¼î$ &¼î$ PÈlî$ P*¼î$ P*¼î$ ÀÏmî$ 0Plî$ È*¼î$ È*¼î$ Àµlî$ @+¼î$ @+¼î$ Plî$ p(¼î$ p(¼î$ ¶lî$ À(¼î$ À(¼î$ ğPlî$ )¼î$ )¼î$ `^½î$ `)¼î$ `)¼î$ PQlî$ X'¼î$ èA H A ¼î$ ¼î$ @¶lî$ ¸¼î$ ¸¼î$ ¼î$ ğ ö@ X¼î$ X¼î$ €¶lî$ ÀÈlî$ ¨¼î$ ¨¼î$ °^½î$ À¶lî$ ø¼î$ ø¼î$ ·lî$ p ¼î$ p ¼î$ ¸!¼î$ ğ ö@ 0"¼î$ 0"¼î$ @·lî$ ¨"¼î$ ¨"¼î$ ȼî$ ğ ö@ ( ¼î$ ( ¼î$ €·lî$ øÈlî$ ¸qA ¸qA 0Élî$ c¿î$ €c¿î$ è ¼î$ è ¼î$ À·lî$ Ğò»î$ Ğò»î$ Hó»î$ ğ ö@ r->enqueue_style( 'monorepo' ); $data = [ 'disabled' => ! $this->indexable_helper->should_index_indexables(), 'amount' => $this->indexing_helper->get_filtered_unindexed_count(), 'firstTime' => ( $this->indexing_helper->is_initial_indexing() === true ), 'errorMessage' => $this->render_indexing_error(), 'restApi' => [ 'root' => \esc_url_raw( \rest_url() ), 'indexing_endpoints' => $this->get_indexing_endpoints(), 'importing_endpoints' => $this->get_importing_endpoints(), 'nonce' => \wp_create_nonce( 'wp_rest' ), ], ]; /** * Filter: 'wpseo_indexing_data' Filter to adapt the data used in the indexing process. * * @param array $data The indexing data to adapt. */ $data = \apply_filters( 'wpseo_indexing_data', $data ); $this->asset_manager->localize_script( 'indexation', 'yoastIndexingData', $data ); } /** * The error to show if optimization failed. * * @return string The error to show if optimization failed. */ protected function render_indexing_error() { $presenter = new Indexing_Error_Presenter( $this->short_link_helper, $this->product_helper, $this->addon_manager ); return $presenter->present(); } /** * Determines if the site has a valid Premium subscription. * * @return bool If the site has a valid Premium subscription. */ protected function has_valid_premium_subscription() { return $this->addon_manager->has_valid_subscription( WPSEO_Addon_Manager::PREMIUM_SLUG ); } /** * Renders the indexing list item. * * @return void */ public function render_indexing_list_item() { if ( \current_user_can( 'manage_options' ) ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The output is correctly escaped in the presenter. echo new Indexing_List_Item_Presenter( $this->short_link_helper ); } } /** * Retrieves a list of the indexing endpoints to use. * * @return array The endpoints. */ protected function get_indexing_endpoints() { $endpoints = [ 'prepare' => Indexing_Route::FULL_PREPARE_ROUTE, 'terms' => Indexing_Route::FULL_TERMS_ROUTE, 'posts' => Indexing_Route::FULL_POSTS_ROUTE, 'archives' => Indexing_Route::FULL_POST_TYPE_ARCHIVES_ROUTE, 'general' => Indexing_Route::FULL_GENERAL_ROUTE, 'indexablesComplete' => Indexing_Route::FULL_INDEXABLES_COMPLETE_ROUTE, 'post_link' => Indexing_Route::FULL_POST_LINKS_INDEXING_ROUTE, 'term_link' => Indexing_Route::FULL_TERM_LINKS_INDEXING_ROUTE, ]; $endpoints = \apply_filters( 'wpseo_indexing_endpoints', $endpoints ); $endpoints['complete'] = Indexing_Route::FULL_COMPLETE_ROUTE; return $endpoints; } /** * Retrieves a list of the importing endpoints to use. * * @return array The endpoints. */ protected function get_importing_endpoints() { $available_actions = $this->importable_detector->detect_importers(); $importing_endpoints = []; foreach ( $available_actions as $plugin => $types ) { foreach ( $types as $type ) { $importing_endpoints[ $plugin ][] = $this->importing_route->get_endpoint( $plugin, $type ); } } return $importing_endpoints; } }