Docs: Fix a few more typos in DocBlocks and inline comments.
Follow-up to [6779], [10565], [12023], [25224], [27533], [32806], [34777], [45262], [46594], [55823], [55824]. Props Presskopp. See #57840. Built from https://develop.svn.wordpress.org/trunk@55827 git-svn-id: http://core.svn.wordpress.org/trunk@55339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0670401bae
commit
046b9afcb7
|
@ -632,9 +632,9 @@
|
||||||
// newer_exist : the file was not extracted because a newer file exists
|
// newer_exist : the file was not extracted because a newer file exists
|
||||||
// path_creation_fail : the file is not extracted because the folder
|
// path_creation_fail : the file is not extracted because the folder
|
||||||
// does not exist and can not be created
|
// does not exist and can not be created
|
||||||
// write_error : the file was not extracted because there was a
|
// write_error : the file was not extracted because there was an
|
||||||
// error while writing the file
|
// error while writing the file
|
||||||
// read_error : the file was not extracted because there was a error
|
// read_error : the file was not extracted because there was an error
|
||||||
// while reading the file
|
// while reading the file
|
||||||
// invalid_header : the file was not extracted because of an archive
|
// invalid_header : the file was not extracted because of an archive
|
||||||
// format error (bad file header)
|
// format error (bad file header)
|
||||||
|
|
|
@ -1377,7 +1377,7 @@ function verify_file_signature( $filename, $signatures, $filename_for_errors = f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for a edge-case affecting PHP Maths abilities.
|
// Check for an edge-case affecting PHP Maths abilities.
|
||||||
if (
|
if (
|
||||||
! extension_loaded( 'sodium' ) &&
|
! extension_loaded( 'sodium' ) &&
|
||||||
in_array( PHP_VERSION_ID, array( 70200, 70201, 70202 ), true ) &&
|
in_array( PHP_VERSION_ID, array( 70200, 70201, 70202 ), true ) &&
|
||||||
|
|
|
@ -136,7 +136,7 @@ class WP_Http_Cookie {
|
||||||
foreach ( $pairs as $pair ) {
|
foreach ( $pairs as $pair ) {
|
||||||
$pair = rtrim( $pair );
|
$pair = rtrim( $pair );
|
||||||
|
|
||||||
// Handle the cookie ending in ; which results in a empty final pair.
|
// Handle the cookie ending in ; which results in an empty final pair.
|
||||||
if ( empty( $pair ) ) {
|
if ( empty( $pair ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1080,7 +1080,7 @@ class WP_Http {
|
||||||
* Determines if a specified string represents an IP address or not.
|
* Determines if a specified string represents an IP address or not.
|
||||||
*
|
*
|
||||||
* This function also detects the type of the IP address, returning either
|
* This function also detects the type of the IP address, returning either
|
||||||
* '4' or '6' to represent a IPv4 and IPv6 address respectively.
|
* '4' or '6' to represent an IPv4 and IPv6 address respectively.
|
||||||
* This does not verify if the IP is a valid IP, only that it appears to be
|
* This does not verify if the IP is a valid IP, only that it appears to be
|
||||||
* an IP address.
|
* an IP address.
|
||||||
*
|
*
|
||||||
|
@ -1089,7 +1089,7 @@ class WP_Http {
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
*
|
*
|
||||||
* @param string $maybe_ip A suspected IP address.
|
* @param string $maybe_ip A suspected IP address.
|
||||||
* @return int|false Upon success, '4' or '6' to represent a IPv4 or IPv6 address, false upon failure
|
* @return int|false Upon success, '4' or '6' to represent an IPv4 or IPv6 address, false upon failure.
|
||||||
*/
|
*/
|
||||||
public static function is_ip_address( $maybe_ip ) {
|
public static function is_ip_address( $maybe_ip ) {
|
||||||
if ( preg_match( '/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', $maybe_ip ) ) {
|
if ( preg_match( '/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', $maybe_ip ) ) {
|
||||||
|
|
|
@ -514,7 +514,7 @@ class WP_oEmbed {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Connects to a oEmbed provider and returns the result.
|
* Connects to an oEmbed provider and returns the result.
|
||||||
*
|
*
|
||||||
* @since 2.9.0
|
* @since 2.9.0
|
||||||
*
|
*
|
||||||
|
|
|
@ -228,7 +228,7 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
||||||
} else {
|
} else {
|
||||||
$value = false;
|
$value = false;
|
||||||
|
|
||||||
// Note that a ID of less than one indicates a nav_menu not yet inserted.
|
// Note that an ID of less than one indicates a nav_menu not yet inserted.
|
||||||
if ( $this->post_id > 0 ) {
|
if ( $this->post_id > 0 ) {
|
||||||
$post = get_post( $this->post_id );
|
$post = get_post( $this->post_id );
|
||||||
if ( $post && self::POST_TYPE === $post->post_type ) {
|
if ( $post && self::POST_TYPE === $post->post_type ) {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Outputs the markup for a audio tag to be used in an Underscore template
|
* Outputs the markup for an audio tag to be used in an Underscore template
|
||||||
* when data.model is passed.
|
* when data.model is passed.
|
||||||
*
|
*
|
||||||
* @since 3.9.0
|
* @since 3.9.0
|
||||||
|
|
|
@ -3811,6 +3811,7 @@ function is_gd_image( $image ) {
|
||||||
if ( $image instanceof GdImage
|
if ( $image instanceof GdImage
|
||||||
|| is_resource( $image ) && 'gd' === get_resource_type( $image )
|
|| is_resource( $image ) && 'gd' === get_resource_type( $image )
|
||||||
) {
|
) {
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4861,7 +4862,7 @@ function get_attached_media( $type, $post = 0 ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks the HTML content for a audio, video, object, embed, or iframe tags.
|
* Checks the HTML content for an audio, video, object, embed, or iframe tags.
|
||||||
*
|
*
|
||||||
* @since 3.6.0
|
* @since 3.6.0
|
||||||
*
|
*
|
||||||
|
|
|
@ -1370,7 +1370,7 @@ function add_site_option( $option, $value ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a option by name for the current network.
|
* Removes an option by name for the current network.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
* @since 4.4.0 Modified into wrapper for delete_network_option()
|
* @since 4.4.0 Modified into wrapper for delete_network_option()
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.3-alpha-55826';
|
$wp_version = '6.3-alpha-55827';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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