Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/18/2020 07:42:10 PM (6 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-xprofile/bp-xprofile-admin.php

    r12696 r12724  
    146146
    147147        <div class="wrap">
    148                 <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?>
    149 
    150                         <h1 class="wp-heading-inline"><?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?></h1>
    151 
    152                                 <a id="add_group" class="page-title-action" href="<?php echo esc_url( $add_group_url ); ?>"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a>
    153 
    154                         <hr class="wp-header-end">
    155 
    156                 <?php else : ?>
    157 
    158                         <h1>
    159                                 <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?>
    160                                 <a id="add_group" class="add-new-h2" href="<?php echo esc_url( $add_group_url ); ?>"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a>
    161                         </h1>
    162 
    163                 <?php endif; ?>
     148                <h1 class="wp-heading-inline"><?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?></h1>
     149
     150                        <a id="add_group" class="page-title-action" href="<?php echo esc_url( $add_group_url ); ?>"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a>
     151
     152                <hr class="wp-header-end">
    164153
    165154                <form action="" id="profile-field-form" method="post">
Note: See TracChangeset for help on using the changeset viewer.