Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/04/2017 05:56:39 PM (9 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-templates/bp-nouveau/includes/messages/classes.php

    r11686 r11741  
    171171        ?>
    172172        <div class="wrap">
    173 
    174             <h1>
    175                 <?php echo esc_html_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ); ?>
    176                 <a id="add_notice" class="add-new-h2" href="#"><?php esc_html_e( 'Add New Notice', 'buddypress' ); ?></a>
    177             </h1>
     173            <?php if ( version_compare( $GLOBALS['wp_version'], '4.8', '>=' ) ) : ?>
     174
     175                <h1 class="wp-heading-inline"><?php echo esc_html_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ); ?></h1>
     176
     177                    <a id="add_notice" class="page-title-action" href="#"><?php esc_html_e( 'Add New Notice', 'buddypress' ); ?></a>
     178
     179                <hr class="wp-header-end">
     180
     181            <?php else : ?>
     182
     183                <h1>
     184                    <?php echo esc_html_x( 'All Member Notices', 'Notices admin page title', 'buddypress' ); ?>
     185                    <a id="add_notice" class="add-new-h2" href="#"><?php esc_html_e( 'Add New Notice', 'buddypress' ); ?></a>
     186                </h1>
     187
     188            <?php endif; ?>
    178189
    179190            <form action=<?php echo esc_url( $this->url ); ?> method="post">
Note: See TracChangeset for help on using the changeset viewer.