Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/18/2020 07:42:10 PM (4 years ago)
Author:
imath
Message:

Administration: remove pre-WordPress 4.8 Admin page headers code

Now the WordPress required version for BuddyPress is >= 4.9, we can remove pre-WordPress 4.8 back compatibility code from Admin page headers.

Fixes #8330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/classes/class-bp-messages-notices-admin.php

    r12668 r12724  
    184184        ?>
    185185        <div class="wrap">
    186             <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?>
    187 
    188                 <h1 class="wp-heading-inline"><?php echo esc_html_x( 'Site Notices', 'Notices admin page title', 'buddypress' ); ?></h1>
    189                 <hr class="wp-header-end">
    190 
    191             <?php else : ?>
    192 
    193                 <h1><?php echo esc_html_x( 'Site Notices', 'Notices admin page title', 'buddypress' ); ?></h1>
    194 
    195             <?php endif; ?>
     186            <h1 class="wp-heading-inline"><?php echo esc_html_x( 'Site Notices', 'Notices admin page title', 'buddypress' ); ?></h1>
     187            <hr class="wp-header-end">
    196188
    197189            <p class="bp-notice-about"><?php esc_html_e( 'Manage notices shown at front end of your site to all logged-in users.', 'buddypress' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.