Skip to:
Content

BuddyPress.org

Changeset 13899


Ignore:
Timestamp:
06/02/2024 06:02:34 PM (2 years ago)
Author:
espellcaste
Message:

BP Admin: Removing some unused strings from the bp_admin function.

Any code after a return is not used. It seems they were added 10 years ago [8779], but it is safe to say they
have not been used anymore.

Props imath
Closes https://github.com/buddypress/buddypress/pull/308
See #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-admin.php

    r12588 r13899  
    1515 *
    1616 * @since 1.6.0
    17  *
    1817 */
    1918function bp_admin() {
    2019        buddypress()->admin = new BP_Admin();
    21         return;
    22 
    23 
    24         // These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
    25         _n_noop( 'Maintenance Release', 'Maintenance Releases', 'buddypress' );
    26         _n_noop( 'Security Release', 'Security Releases', 'buddypress' );
    27         _n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases', 'buddypress' );
    28 
    29         /* translators: 1: BuddyPress version number. */
    30         _n_noop(
    31                 '<strong>Version %1$s</strong> addressed a security issue.',
    32                 '<strong>Version %1$s</strong> addressed some security issues.',
    33                 'buddypress'
    34         );
    35 
    36         /* translators: 1: BuddyPress version number, 2: plural number of bugs. */
    37         _n_noop(
    38                 '<strong>Version %1$s</strong> addressed %2$s bug.',
    39                 '<strong>Version %1$s</strong> addressed %2$s bugs.',
    40                 'buddypress'
    41         );
    42 
    43         /* translators: 1: BuddyPress version number, 2: plural number of bugs. Singular security issue. */
    44         _n_noop(
    45                 '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
    46                 '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.',
    47                 'buddypress'
    48         );
    49 
    50         /* translators: 1: BuddyPress version number, 2: plural number of bugs. More than one security issue. */
    51         _n_noop(
    52                 '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
    53                 '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
    54                 'buddypress'
    55         );
    56 
    57         /* translators: %s: the link to the BuddyPress release notes */
    58         __( 'For more information, see <a href="%s">the release notes</a>.', 'buddypress' );
    5920}
Note: See TracChangeset for help on using the changeset viewer.