0V Q 'V P(V LV HV Q Ц'V 8P(V O V P V P(V P(V (O(V P(V `O V V Q(V hN(V (Q(V @Q(V XQ(V V @0V @V @p V &V V M(V Q(V P +V V @ PV D V `V V HR(V V `R(V @V "'%V @&V /V &V V @EV (1V R(V YV hV @m'V @&V H V 8S(V Q(V PS(V hS(V S(V V D z V S(V 0S(V XV Q pt!V S(V Q(V V Q ~V (T(V T(V T(V M(V T(V S(V V @ T(V U(V U(V 0U(V R(V `&V 6V `U(V R(V ?#V @pV U(V XU(V U(V R(V V D ?$V @#V @ V &V V &V V V D 0V 8V(V U(V PV(V hV(V jV @0V V D pO;V V D CV V(V >V V(V x=V @@#V @V &V `V V D :V V D 65V XW(V U(V pW(V 5V "V h@#V @ V PV D 0?V &V ЍV @#V @V 0V D P<V X(V W(V @V D 0G:V HX(V `X(V XH:V !V pV D @?V &V @V @#V @ V `V D ?V X(V W(V Y(V Y(V 5V #V " V D @V &V V @#V @V V D p?V Y(V W(V Y(V Y(V h5V Y(V W(V @&V V V D T3V V D @V XZ(V X(V pZ(V q,V 1 B(V 9(V _show_search_engines_discouraged_notification() { return $this->search_engines_are_discouraged() && $this->options_helper->get( 'ignore_search_engines_discouraged_notice', false ) === false; } /** * Remove the search engines discouraged notification if it exists. * * @return void */ protected function remove_search_engines_discouraged_notification_if_exists() { $this->notification_center->remove_notification_by_id( self::NOTIFICATION_ID ); } /** * Add the search engines discouraged notification if it does not exist yet. * * @return void */ protected function maybe_add_search_engines_discouraged_notification() { if ( ! $this->notification_center->get_notification_by_id( self::NOTIFICATION_ID ) ) { $notification = $this->notification(); $this->notification_helper->restore_notification( $notification ); $this->notification_center->add_notification( $notification ); } } /** * Checks whether search engines are discouraged from indexing the site. * * @return bool Whether search engines are discouraged from indexing the site. */ protected function search_engines_are_discouraged() { return (string) \get_option( 'blog_public' ) === '0'; } /** * Whether the search engines notice should be shown. * * @return bool */ protected function should_show_search_engines_discouraged_notice() { $pages_to_show_notice = [ 'index.php', 'plugins.php', 'update-core.php', ]; return ( $this->search_engines_are_discouraged() && $this->capability_helper->current_user_can( 'manage_options' ) && $this->options_helper->get( 'ignore_search_engines_discouraged_notice', false ) === false && ( $this->current_page_helper->is_yoast_seo_page() || \in_array( $this->current_page_helper->get_current_admin_page(), $pages_to_show_notice, true ) ) && $this->current_page_helper->get_current_yoast_seo_page() !== 'wpseo_dashboard' ); } /** * Show the search engines discouraged notice. * * @return void */ protected function show_search_engines_discouraged_notice() { \printf( '