P'˜VţPÎ?Đ“˜V` ˙˙˙˙Đ@$“˜VPđŃs ÷˜Vđ˙˙˙˙Ń`˜V€˙˙˙˙Ń+0Ԓ˜VP@ŃQ v˜V˙˙˙˙ Ń A˜VŔ˙˙˙˙˙˙˙˙Ń*Đ/˜V˙˙˙˙đŃE€Ç˜VPŃt€Ç˜Vđ`ŃtĐN˜V˙˙˙˙˙˙˙˙0Ń<0ö˜V0˙˙˙˙ Ń`¤“˜Vp ˙˙˙˙Ń@$“˜VP€PŇs˜VP`PŇ.@$“˜VPP`ŇsŔ ˜V`˙˙˙˙PŇ4`˜VP`˙˙˙˙Ň+pi˜V˙˙˙˙pŇ A˜V@˙˙˙˙˙˙˙˙Ň*pi˜VĐ˙˙˙˙pŇ`¤“˜V€p˙˙˙˙Ň@$“˜VP Ós ÷˜V˙˙˙˙ Ó`˜V €˙˙˙˙Ó+0Ԓ˜VPP°ÓQ v˜V°˙˙˙˙ŔÓ A˜VŔ˙˙˙˙˙˙˙˙Ó*Đ/˜V˙˙˙˙ÓE€Ç˜VPÓt€Ç˜V`ÓtĐN˜V˙˙˙˙˙˙˙˙ĐÓ<0ö˜VĐ˙˙˙˙ŔÓ`¤“˜VŔ˙˙˙˙ÓŔˆ“˜V˙˙˙˙đÔš`˜Vđ`˙˙˙˙Ô+pi˜VP˙˙˙˙Ô A˜V@˙˙˙˙˙˙˙˙Ô*pi˜V ˙˙˙˙Ô`¤“˜V ˙˙˙˙Ô@$“˜VPđ Ős ÷˜V ˙˙˙˙0Ő`˜V0€˙˙˙˙Ő+0Ԓ˜VP @ŐQ v˜V@˙˙˙˙PŐ A˜V@˙˙˙˙˙˙˙˙Ő*pi˜VP˙˙˙˙PŐ`¤“˜V°P˙˙˙˙Ő@$“˜VP pÖs ÷˜Vp˙˙˙˙€Ö`˜V€€˙˙˙˙Ö+0Ԓ˜VPАÖQ v˜V˙˙˙˙ Ö A˜V@˙˙˙˙˙˙˙˙Ö*pi˜V€˙˙˙˙ Ö`¤“˜VŔ ˙˙˙˙Öđƒ˜V°PŔ×`˜VŔŕ˙˙˙˙×+Đ/˜V˙˙˙˙ ×E€Ç˜V0P×t€Ç˜V `×tĐN˜V˙˙˙˙˙˙˙˙Đ×<0ö˜VĐ˙˙˙˙ŕ× A˜V@˙˙˙˙˙˙˙˙×*pi˜V°˙˙˙˙ŕ×`¤“˜VĐŕ˙˙˙˙×đƒ˜V°€Ř˜V`Ř.Ŕˆ“˜VĐ˙˙˙˙ŘšŔ ˜V˙˙˙˙Ř4`˜Vŕ˙˙˙˙Ř+Đ/˜V˙˙˙˙đŘE€Ç˜VPŘt€Ç˜Vđ`ŘtĐN˜V˙˙˙˙˙˙˙˙ Ř<0ö˜V ˙˙˙˙0Ř A˜V@˙˙˙˙˙˙˙˙Ř*Ŕ”’˜VĐ˙˙˙˙0Ř`¤“˜VĐ0˙˙˙˙ŘĐ/˜V˙˙˙˙@ âE€Ç˜VPPât#’˜V˙˙˙˙˙˙˙˙âd’˜V`ŠI P)â^€Ó‘˜VP`âš”“˜VPpâBK˜V˙˙˙˙˙˙˙˙˙˙˙˙â<@Ȓ˜V°°pä`˜Vp` ˙˙˙˙ä+€$’˜VP€€Aĺ”`˜V€Ŕ˙˙˙˙ĺ+Đ/˜V˙˙˙˙`pćEĐN˜V˙˙˙˙˙˙˙˙ ć< [˜V Pxćp€Ç˜VPPćtĐN˜V˙˙˙˙˙˙˙˙°ć< [˜V° ˆćp#’˜V˙˙˙˙˙˙˙˙ćd’˜VŤŔ™ć^€Ó‘˜VŔPćš€Ç˜VĐ`ćtĐN˜V˙˙˙˙˙˙˙˙Đć<p6’˜V¤đ ˙˙˙˙XćŘe˜VĐ˙˙˙˙˙˙˙˙所$’˜VP`ŕąé”`˜Vŕ˙˙˙˙é+Đ/˜V˙˙˙˙@ŕęE#’˜V˙˙˙˙˙˙˙˙ęd’˜V§yŠ˜0éę^€Ó‘˜VPęšĐN˜V˙˙˙˙˙˙˙˙ę<p6’˜V¤ ˙˙˙˙ČęŘe˜V˙˙˙˙˙˙˙˙ę‰@’˜VŔŠI  í[p˜V  0íZPP˜V0€ @ís ÷˜V@˙˙˙˙Pí`˜VPŔ˙˙˙˙í+Ŕ’˜VĐ ŠI0 `îRpS˜V` pîQpS˜Vp €îQ’˜V €î`¤“˜V`˙˙˙˙îĐ/˜V˙˙˙˙Đ 0ńE”“˜V`PńBĐN˜V˙˙˙˙˙˙˙˙°ń<’˜V  °Ŕń01˜VŔ Đńered_by_header" => true, "{$allow_prefix}remove_pingback_header" => true, "{$allow_prefix}clean_campaign_tracking_urls" => true, "{$allow_prefix}clean_permalinks" => true, "{$allow_prefix}search_cleanup" => true, "{$allow_prefix}search_cleanup_emoji" => true, "{$allow_prefix}search_cleanup_patterns" => true, "{$allow_prefix}redirect_search_pretty_urls" => true, "{$allow_prefix}algolia_integration_active" => true, ]; if ( is_multisite() ) { parent::__construct(); add_filter( 'admin_title', [ 'Yoast_Input_Validation', 'add_yoast_admin_document_title_errors' ] ); } } /** * Add filters to make sure that the option default is returned if the option is not set * * @return void */ public function add_default_filters() { // Don't change, needs to check for false as could return prio 0 which would evaluate to false. if ( has_filter( 'default_site_option_' . $this->option_name, [ $this, 'get_defaults' ] ) === false ) { add_filter( 'default_site_option_' . $this->option_name, [ $this, 'get_defaults' ] ); } } /** * Remove the default filters. * Called from the validate() method to prevent failure to add new options. * * @return void */ public function remove_default_filters() { remove_filter( 'default_site_option_' . $this->option_name, [ $this, 'get_defaults' ] ); } /** * Add filters to make sure that the option is merged with its defaults before being returned. * * @return void */ public function add_option_filters() { // Don't change, needs to check for false as could return prio 0 which would evaluate to false. if ( has_filter( 'site_option_' . $this->option_name, [ $this, 'get_option' ] ) === false ) { add_filter( 'site_option_' . $this->option_name, [ $this, 'get_option' ] ); } } /** * Remove the option filters. * Called from the clean_up methods to make sure we retrieve the original old option. * * @return void */ public function remove_option_filters() { remove_filter( 'site_option_' . $this->option_name, [ $this, 'get_option' ] ); } /* *********** METHODS influencing add_uption(), update_option() and saving from admin pages *********** */ /** * Validate the option. * * @param array $dirty New value for the option. * @param array $clean Clean value for the option, normally the defaults. * @param array $old Old value of the option. * * @return array Validated clean value for the option to be saved to the database. */ protected function validate_option( $dirty, $clean, $old ) { foreach ( $clean as $key => $value ) { switch ( $key ) { case 'access': if ( isset( $dirty[ $key ] ) && in_array( $dirty[ $key ], self::$allowed_access_options, true ) ) { $clean[ $key ] = $dirty[ $key ]; } elseif ( function_exists( 'add_settings_error' ) ) { add_settings_error( $this->group_name, // Slug title of the setting. $key, // Suffix-ID for the error message box. /* translators: %1$s expands to the option name and %2$sexpands to Yoast SEO */ sprintf( __( '%1$s is not a valid choice for who should be allowed access to the %2$s settings. Value reset to the default.', 'wordpress-seo' ), esc_html( sanitize_text_field( $dirty[ $key ] ) ), 'Yoast SEO' ), // The error message. 'error' // Message type. ); } break; case 'defaultblog': if ( isset( $dirty[ $key ] ) && ( $dirty[ $key ] !== '' && $dirty[ $key ] !== '-' ) ) { $int = WPSEO_Utils::validate_int( $dirty[ $key ] ); if ( $int !== false && $int > 0 ) { // Check if a valid blog number has been received. $exists = get_blog_details( $int, false ); if ( $exists && $exists->deleted === '0' ) { $clean[ $key ] = $int; } elseif ( function_exists( 'add_settings_error' ) ) { add_settings_error( $this->group_name, // Slug title of the setting. $key, // Suffix-ID for the error message box. esc_html__( 'The default blog setting must be the numeric blog id of the blog you want to use as default.', 'wordpress-seo' ) . '
' . sprintf( /* translators: %s is the ID number of a blog. */ esc_html__( 'This must be an existing blog. Blog %s does not exist or has been marked as deleted.', 'wordpress-seo' ), '' . esc_html( sanitize_text_field( $dirty[ $key ] ) ) . '' ), // The error message. 'error' // Message type. ); } unset( $exists ); } elseif ( function_exists( 'add_settings_error' ) ) { add_settings_error( $this->group_name, // Slug title of the setting. $key, // Suffix-ID for the error message box. esc_html__( 'The default blog setting must be the numeric blog id of the blog you want to use as default.', 'wordpress-seo' ) . '
' . esc_html__( 'No numeric value was received.', 'wordpress-seo' ), // The error message. 'error' // Message type. ); } unset( $int ); } break; default: $clean[ $key ] = ( isset( $dirty[ $key ] ) ? WPSEO_Utils::validate_bool( $dirty[ $key ] ) : false ); break; } } return $clean; } }