Docs: Spell "falsey" in a consistent way.
See #49572. Built from https://develop.svn.wordpress.org/trunk@48275 git-svn-id: http://core.svn.wordpress.org/trunk@48044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
07d2c8a4e9
commit
ec571bdcf6
|
@ -267,8 +267,7 @@ class WP_Block_Type {
|
|||
*
|
||||
* @since 5.5.0
|
||||
*
|
||||
* @param array $args Array of arguments for registering a
|
||||
* block type.
|
||||
* @param array $args Array of arguments for registering a block type.
|
||||
* @param string $block_type Block type name including namespace.
|
||||
*/
|
||||
$args = apply_filters( 'register_block_type_args', $args, $this->name );
|
||||
|
|
|
@ -782,7 +782,7 @@ class WP_Comment_Query {
|
|||
$this->sql_clauses['where']['user_id'] = $wpdb->prepare( 'user_id = %d', $this->query_vars['user_id'] );
|
||||
}
|
||||
|
||||
// Falsy search strings are ignored.
|
||||
// Falsey search strings are ignored.
|
||||
if ( strlen( $this->query_vars['search'] ) ) {
|
||||
$search_sql = $this->get_search_sql(
|
||||
$this->query_vars['search'],
|
||||
|
|
|
@ -3910,7 +3910,8 @@ function wp_get_code_editor_settings( $args ) {
|
|||
*
|
||||
* @since 4.9.0
|
||||
*
|
||||
* @param array $settings The array of settings passed to the code editor. A falsey value disables the editor.
|
||||
* @param array $settings The array of settings passed to the code editor.
|
||||
* A falsey value disables the editor.
|
||||
* @param array $args {
|
||||
* Args passed when calling `get_code_editor_settings()`.
|
||||
*
|
||||
|
|
|
@ -1731,8 +1731,8 @@ function wp_img_tag_add_loading_attr( $image, $context ) {
|
|||
*
|
||||
* @since 5.5.0
|
||||
*
|
||||
* @param string|bool $value The `loading` attribute value. Returning a false-y value will result in the
|
||||
* attribute being omitted for the image. Default is `lazy`.
|
||||
* @param string|bool $value The `loading` attribute value. Returning a falsey value will result in
|
||||
* the attribute being omitted for the image. Default is `lazy`.
|
||||
* @param string $image The HTML `img` tag to be filtered.
|
||||
* @param string $context Additional context about how the function was called or where the img tag is.
|
||||
*/
|
||||
|
|
|
@ -265,7 +265,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller {
|
|||
|
||||
$total_terms = wp_count_terms( $this->taxonomy, $count_args );
|
||||
|
||||
// wp_count_terms() can return a falsy value when the term has no children.
|
||||
// wp_count_terms() can return a falsey value when the term has no children.
|
||||
if ( ! $total_terms ) {
|
||||
$total_terms = 0;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-48274';
|
||||
$wp_version = '5.5-alpha-48275';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue