Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/04/2017 05:56:39 PM (4 years ago)
Author:
mercime
Message:

Accessibility: Update H1 Headings for BP Admin Screens.

WP 4.8 changelog included the removal of action links and adjustments in the
markup of the heading section for users of assistive technologies.

Fixes #7611.

File:
1 edited

Legend:

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

    r11675 r11741  
    134134
    135135    <div class="wrap">
    136 
    137         <h1>
    138             <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?>
    139             <a id="add_group" class="add-new-h2" href="users.php?page=bp-profile-setup&amp;mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a>
    140         </h1>
     136        <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?>
     137
     138            <h1 class="wp-heading-inline"><?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?></h1>
     139
     140                <a id="add_group" class="page-title-action" href="users.php?page=bp-profile-setup&amp;mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a>
     141
     142            <hr class="wp-header-end">
     143
     144        <?php else : ?>
     145
     146            <h1>
     147                <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?>
     148                <a id="add_group" class="add-new-h2" href="users.php?page=bp-profile-setup&amp;mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a>
     149            </h1>
     150
     151        <?php endif; ?>
    141152
    142153        <form action="" id="profile-field-form" method="post">
Note: See TracChangeset for help on using the changeset viewer.