Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/25/2024 12:38:29 AM (6 months ago)
Author:
imath
Message:

Avoid WP 6.7 notice about using translatable strings too early

Use a "raw" name instead of a "translatable" name for the BP_Component's & BP_Theme_Compat's name properties.

Props boonebgorges.

See #9247 (trunk)
Closes https://github.com/buddypress/buddypress/pull/391

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-theme-compat.php

    r13893 r14059  
    1919 *
    2020 * @since 1.7.0
     21 * @since 14.3.0 Changed the `$name` property's description.
    2122 *
    2223 * @todo We should probably do something similar to BP_Component::start().
     
    2627 *     An array of properties describing the theme compat package.
    2728 *     @type string $id      ID of the package. Must be unique.
    28  *     @type string $name    Name of the theme. This should match the name given
     29 *     @type string $name    Raw name for the theme. This should match the name given
    2930 *                           in style.css.
    3031 *     @type string $version Theme version. Used for busting script and style
Note: See TracChangeset for help on using the changeset viewer.