17+02:00","ts_net_unix":1713314131,"ts_net_iso":"2024-04-17T02:35:31+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22938904,"ts_unix":1713317717,"time_stamp":"2024-04-17T03:35:17+02:00","ts_net_unix":1713317731,"ts_net_iso":"2024-04-17T03:35:31+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22940325,"ts_unix":1713321317,"time_stamp":"2024-04-17T04:35:17+02:00","ts_net_unix":1713321332,"ts_net_iso":"2024-04-17T04:35:32+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22941633,"ts_unix":1713324917,"time_stamp":"2024-04-17T05:35:17+02:00","ts_net_unix":1713324932,"ts_net_iso":"2024-04-17T05:35:32+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22942960,"ts_unix":1713328517,"time_stamp":"2024-04-17T06:35:17+02:00","ts_net_unix":1713328533,"ts_net_iso":"2024-04-17T06:35:33+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22944261,"ts_unix":1713332117,"time_stamp":"2024-04-17T07:35:17+02:00","ts_net_unix":1713332133,"ts_net_iso":"2024-04-17T07:35:33+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22945737,"ts_unix":1713335717,"time_stamp":"2024-04-17T08:35:17+02:00","ts_net_unix":1713335734,"ts_net_iso":"2024-04-17T08:35:34+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22949780,"ts_unix":1713342917,"time_stamp":"2024-04-17T10:35:17+02:00","ts_net_unix":1713342935,"ts_net_iso":"2024-04-17T10:35:35+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22951414,"ts_unix":1713346517,"time_stamp":"2024-04-17T11:35:17+02:00","ts_net_unix":1713346535,"ts_net_iso":"2024-04-17T11:35:35+02:00","geoloc_LAT":47.176205,"geoloc_LON":9.506184,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22953377,"ts_unix":1713350117,"time_stamp":"2024-04-17T12:35:17+02:00","ts_net_unix":1713350136,"ts_net_iso":"2024-04-17T12:35:36+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22954964,"ts_unix":1713353717,"time_stamp":"2024-04-17T13:35:17+02:00","ts_net_unix":1713353736,"ts_net_iso":"2024-04-17T13:35:36+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22956471,"ts_unix":1713357317,"time_stamp":"2024-04-17T14:35:17+02:00","ts_net_unix":1713357337,"ts_net_iso":"2024-04-17T14:35:37+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22958527,"ts_unix":1713360917,"time_stamp":"2024-04-17T15:35:17+02:00","ts_net_unix":1713360937,"ts_net_iso":"2024-04-17T15:35:37+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22960314,"ts_unix":1713364517,"time_stamp":"2024-04-17T16:35:17+02:00","ts_net_unix":1713364537,"ts_net_iso":"2024-04-17T16:35:37+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22961911,"ts_unix":1713368118,"time_stamp":"2024-04-17T17:35:18+02:00","ts_net_unix":1713368138,"ts_net_iso":"2024-04-17T17:35:38+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22963802,"ts_unix":1713371718,"time_stamp":"2024-04-17T18:35:18+02:00","ts_net_unix":1713371738,"ts_net_iso":"2024-04-17T18:35:38+02:00","geoloc_LAT":47.158089,"geoloc_LON":9.451429,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22966329,"ts_unix":1713375318,"time_stamp":"2024-04-17T19:35:18+02:00","ts_net_unix":1713375339,"ts_net_iso":"2024-04-17T19:35:39+02:00","geoloc_LAT":47.176201,"geoloc_LON":9.506228,"geoloc_ALT":0,"LAT":47.17095,"LON":9.51185,"ALT":0},{"uid":22966336,"ts_unix":1713375318,"time_stamp":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}wordproof_integration_active" => false, "{$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; } }