| @@ -92,38 +92,8 @@ | ||
| 92 | 92 | return false; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * Sets the error descriptions. | |
| 97 | - * | |
| 98 | - * @since 12.1 | |
| 99 | - * @deprecated 23.3 | |
| 100 | - * @codeCoverageIgnore | |
| 101 | - * | |
| 102 | - * @param array<string, string> $descriptions An associative array of error descriptions. | |
| 103 | - * For each entry, the key must be the setting variable. | |
| 104 | - * | |
| 105 | - * @return void | |
| 106 | - */ | |
| 107 | - public static function set_error_descriptions( $descriptions = [] ) { // @phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable, Generic.CodeAnalysis.UnusedFunctionParameter.Found -- Needed for BC. | |
| 108 | - _deprecated_function( __METHOD__, 'Yoast SEO 23.3' ); | |
| 109 | - } | |
| 110 | - | |
| 111 | - /** | |
| 112 | - * Gets all the error descriptions. | |
| 113 | - * | |
| 114 | - * @since 12.1 | |
| 115 | - * @deprecated 23.3 | |
| 116 | - * @codeCoverageIgnore | |
| 117 | - * | |
| 118 | - * @return array<string, string> An associative array of error descriptions. | |
| 119 | - */ | |
| 120 | - public static function get_error_descriptions() { | |
| 121 | - _deprecated_function( __METHOD__, 'Yoast SEO 23.3' ); | |
| 122 | - return []; | |
| 123 | - } | |
| 124 | - | |
| 125 | - /** | |
| 126 | 96 | * Gets a specific error description. |
| 127 | 97 | * |
| 128 | 98 | * @since 12.1 |
| 129 | 99 | * |
| @@ -214,39 +184,6 @@ | ||
| 214 | 184 | // phpcs:ignore WordPress.WP.GlobalVariablesOverride -- This is a deliberate action. |
| 215 | 185 | $wp_settings_errors[ $index ]['yoast_dirty_value'] = $dirty_value; |
| 216 | 186 | } |
| 217 | 187 | } |
| 218 | - } | |
| 219 | - | |
| 220 | - /** | |
| 221 | - * Gets an invalid submitted value. | |
| 222 | - * | |
| 223 | - * @since 12.1 | |
| 224 | - * @deprecated 23.3 | |
| 225 | - * @codeCoverageIgnore | |
| 226 | - * | |
| 227 | - * @param string $error_code Code of the error set via `add_settings_error()`, normally the variable name. | |
| 228 | - * | |
| 229 | - * @return string The submitted invalid input field value. | |
| 230 | - */ | |
| 231 | - public static function get_dirty_value( $error_code ) { // @phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable, Generic.CodeAnalysis.UnusedFunctionParameter.Found -- Needed for BC. | |
| 232 | - _deprecated_function( __METHOD__, 'Yoast SEO 23.3' ); | |
| 233 | - return ''; | |
| 234 | - } | |
| 235 | - | |
| 236 | - /** | |
| 237 | - * Gets a specific invalid value message. | |
| 238 | - * | |
| 239 | - * @since 12.1 | |
| 240 | - * @deprecated 23.3 | |
| 241 | - * @codeCoverageIgnore | |
| 242 | - * | |
| 243 | - * @param string $error_code Code of the error set via `add_settings_error()`, normally the variable name. | |
| 244 | - * | |
| 245 | - * @return string The error invalid value message or empty string. | |
| 246 | - */ | |
| 247 | - public static function get_dirty_value_message( $error_code ) { // @phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable, Generic.CodeAnalysis.UnusedFunctionParameter.Found -- Needed for BC. | |
| 248 | - _deprecated_function( __METHOD__, 'Yoast SEO 23.3' ); | |
| 249 | - | |
| 250 | - return ''; | |
| 251 | 188 | } |
| 252 | 189 | } |