Make WordPress Core


Ignore:
Timestamp:
03/14/2023 04:53:07 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Fix typo in _validate_cache_id() description.

Includes:

  • Capitalizing "ID" in a consistent way.
  • Expanding the comment on not using filter_var().
  • Adding a @covers tag for the function in unit tests.
  • Minor tweak to the _doing_it_wrong() message.

Follow-up to [53818], [55543].

See #57593.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-object-cache.php

    r54318 r55549  
    157157            ? __( 'Cache key must not be an empty string.' )
    158158            /* translators: %s: The type of the given cache key. */
    159             : sprintf( __( 'Cache key must be integer or non-empty string, %s given.' ), $type );
     159            : sprintf( __( 'Cache key must be an integer or a non-empty string, %s given.' ), $type );
    160160
    161161        _doing_it_wrong(
Note: See TracChangeset for help on using the changeset viewer.