Docs: Correct spelling of "backward compatibility" per the Core Contributor Handbook glossary.
Follow-up to [45232]. See #49572. Built from https://develop.svn.wordpress.org/trunk@48302 git-svn-id: http://core.svn.wordpress.org/trunk@48071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
db0e0ca245
commit
6adad022e2
|
@ -473,7 +473,7 @@ function wp_privacy_generate_personal_data_export_file( $request_id ) {
|
||||||
// This postmeta is used from version 5.4.
|
// This postmeta is used from version 5.4.
|
||||||
$archive_filename = get_post_meta( $request_id, '_export_file_name', true );
|
$archive_filename = get_post_meta( $request_id, '_export_file_name', true );
|
||||||
|
|
||||||
// These are used for backwards compatibility.
|
// These are used for backward compatibility.
|
||||||
$archive_url = get_post_meta( $request_id, '_export_file_url', true );
|
$archive_url = get_post_meta( $request_id, '_export_file_url', true );
|
||||||
$archive_pathname = get_post_meta( $request_id, '_export_file_path', true );
|
$archive_pathname = get_post_meta( $request_id, '_export_file_path', true );
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
/* global theList:true, theExtraList:true, getUserSetting, setUserSetting, commentReply, commentsBox */
|
/* global theList:true, theExtraList:true, getUserSetting, setUserSetting, commentReply, commentsBox */
|
||||||
/* global WPSetThumbnailHTML, wptitlehint */
|
/* global WPSetThumbnailHTML, wptitlehint */
|
||||||
|
|
||||||
// Backwards compatibility: prevent fatal errors.
|
// Backward compatibility: prevent fatal errors.
|
||||||
window.makeSlugeditClickable = window.editPermalink = function(){};
|
window.makeSlugeditClickable = window.editPermalink = function(){};
|
||||||
|
|
||||||
// Make sure the wp object exists.
|
// Make sure the wp object exists.
|
||||||
|
|
|
@ -1464,9 +1464,11 @@ function rest_validate_value_from_schema( $value, $args, $param = '' ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The "format" keyword should only be applied to strings. However, for backwards compatibility,
|
// The "format" keyword should only be applied to strings. However, for backward compatibility,
|
||||||
// we allow the "format" keyword if the type keyword was not specified, or was set to an invalid value.
|
// we allow the "format" keyword if the type keyword was not specified, or was set to an invalid value.
|
||||||
if ( isset( $args['format'] ) && ( ! isset( $args['type'] ) || 'string' === $args['type'] || ! in_array( $args['type'], $allowed_types, true ) ) ) {
|
if ( isset( $args['format'] )
|
||||||
|
&& ( ! isset( $args['type'] ) || 'string' === $args['type'] || ! in_array( $args['type'], $allowed_types, true ) )
|
||||||
|
) {
|
||||||
switch ( $args['format'] ) {
|
switch ( $args['format'] ) {
|
||||||
case 'hex-color':
|
case 'hex-color':
|
||||||
if ( ! rest_parse_hex_color( $value ) ) {
|
if ( ! rest_parse_hex_color( $value ) ) {
|
||||||
|
@ -1652,7 +1654,9 @@ function rest_sanitize_value_from_schema( $value, $args ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// This behavior matches rest_validate_value_from_schema().
|
// This behavior matches rest_validate_value_from_schema().
|
||||||
if ( isset( $args['format'] ) && ( ! isset( $args['type'] ) || 'string' === $args['type'] || ! in_array( $args['type'], $allowed_types, true ) ) ) {
|
if ( isset( $args['format'] )
|
||||||
|
&& ( ! isset( $args['type'] ) || 'string' === $args['type'] || ! in_array( $args['type'], $allowed_types, true ) )
|
||||||
|
) {
|
||||||
switch ( $args['format'] ) {
|
switch ( $args['format'] ) {
|
||||||
case 'hex-color':
|
case 'hex-color':
|
||||||
return (string) sanitize_hex_color( $value );
|
return (string) sanitize_hex_color( $value );
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-alpha-48301';
|
$wp_version = '5.5-alpha-48302';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue