Docs: Spell "falsey" in a consistent way.
See #49572. git-svn-id: https://develop.svn.wordpress.org/trunk@48275 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5714ef31c0
commit
c5e620f6ef
@ -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;
|
||||
}
|
||||
|
@ -2764,7 +2764,7 @@ EOF;
|
||||
* @ticket 50425
|
||||
* @dataProvider data_wp_lazy_loading_enabled_tag_name_defaults
|
||||
*
|
||||
* @param string $tag_name Function context.
|
||||
* @param string $tag_name Tag name.
|
||||
* @param bool $expected Expected return value.
|
||||
*/
|
||||
function test_wp_lazy_loading_enabled_tag_name_defaults( $tag_name, $expected ) {
|
||||
|
@ -2495,7 +2495,7 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te
|
||||
$this->assertEquals( 'testing', $data['password'] );
|
||||
}
|
||||
|
||||
public function test_create_post_with_falsy_password() {
|
||||
public function test_create_post_with_falsey_password() {
|
||||
wp_set_current_user( self::$editor_id );
|
||||
|
||||
$request = new WP_REST_Request( 'POST', '/wp/v2/posts' );
|
||||
|
Loading…
Reference in New Issue
Block a user