Make WordPress Core

Changeset 48275


Ignore:
Timestamp:
07/02/2020 11:28:13 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Spell "falsey" in a consistent way.

See #49572.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-type.php

    r48263 r48275  
    268268         * @since 5.5.0
    269269         *
    270          * @param array  $args       Array of arguments for registering a
    271          *                           block type.
     270         * @param array  $args       Array of arguments for registering a block type.
    272271         * @param string $block_type Block type name including namespace.
    273272         */
  • trunk/src/wp-includes/class-wp-comment-query.php

    r48104 r48275  
    783783        }
    784784
    785         // Falsy search strings are ignored.
     785        // Falsey search strings are ignored.
    786786        if ( strlen( $this->query_vars['search'] ) ) {
    787787            $search_sql = $this->get_search_sql(
  • trunk/src/wp-includes/general-template.php

    r48209 r48275  
    39113911     * @since 4.9.0
    39123912     *
    3913      * @param array $settings The array of settings passed to the code editor. A falsey value disables the editor.
     3913     * @param array $settings The array of settings passed to the code editor.
     3914     *                        A falsey value disables the editor.
    39143915     * @param array $args {
    39153916     *     Args passed when calling `get_code_editor_settings()`.
  • trunk/src/wp-includes/media.php

    r48272 r48275  
    17321732     * @since 5.5.0
    17331733     *
    1734      * @param string|bool $value   The `loading` attribute value. Returning a false-y value will result in the
    1735      *                             attribute being omitted for the image. Default is `lazy`.
     1734     * @param string|bool $value   The `loading` attribute value. Returning a falsey value will result in
     1735     *                             the attribute being omitted for the image. Default is `lazy`.
    17361736     * @param string      $image   The HTML `img` tag to be filtered.
    17371737     * @param string      $context Additional context about how the function was called or where the img tag is.
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    r48100 r48275  
    266266        $total_terms = wp_count_terms( $this->taxonomy, $count_args );
    267267
    268         // wp_count_terms() can return a falsy value when the term has no children.
     268        // wp_count_terms() can return a falsey value when the term has no children.
    269269        if ( ! $total_terms ) {
    270270            $total_terms = 0;
  • trunk/tests/phpunit/tests/media.php

    r48272 r48275  
    27652765     * @dataProvider data_wp_lazy_loading_enabled_tag_name_defaults
    27662766     *
    2767      * @param string $tag_name  Function context.
     2767     * @param string $tag_name Tag name.
    27682768     * @param bool   $expected Expected return value.
    27692769     */
  • trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php

    r47265 r48275  
    24962496    }
    24972497
    2498     public function test_create_post_with_falsy_password() {
     2498    public function test_create_post_with_falsey_password() {
    24992499        wp_set_current_user( self::$editor_id );
    25002500
Note: See TracChangeset for help on using the changeset viewer.