Skip to:
Content

BuddyPress.org

Changeset 10357


Ignore:
Timestamp:
11/16/2015 07:20:59 PM (11 years ago)
Author:
mercime
Message:

A11y: h1 headings for page titles of BuddyPress wp-admin screens.

Fixes #6581.

Location:
trunk/src
Files:
7 edited

Legend:

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

    r10316 r10357  
    657657
    658658        <div class="wrap">
    659                 <h2><?php printf( __( 'Editing Activity (ID #%s)', 'buddypress' ), number_format_i18n( (int) $_REQUEST['aid'] ) ); ?></h2>
     659                <h1><?php printf( __( 'Editing Activity (ID #%s)', 'buddypress' ), number_format_i18n( (int) $_REQUEST['aid'] ) ); ?></h1>
    660660
    661661                <?php if ( ! empty( $activity ) ) : ?>
     
    979979
    980980        <div class="wrap">
    981                 <h2>
     981                <h1>
    982982                        <?php if ( !empty( $_REQUEST['aid'] ) ) : ?>
    983983                                <?php printf( __( 'Activity related to ID #%s', 'buddypress' ), number_format_i18n( (int) $_REQUEST['aid'] ) ); ?>
     
    989989                                <span class="subtitle"><?php printf( __( 'Search results for &#8220;%s&#8221;', 'buddypress' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ); ?></span>
    990990                        <?php endif; ?>
    991                 </h2>
     991                </h1>
    992992
    993993                <?php // If the user has just made a change to an activity item, display the status messages. ?>
  • trunk/src/bp-core/admin/bp-core-admin-tools.php

    r10354 r10357  
    2121        <div class="wrap">
    2222
    23                 <h2><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ) ?></h2>
     23                <h1><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ) ?></h1>
    2424
    2525                <p>
     
    375375        ?>
    376376        <div class="wrap">
    377                 <h2><?php esc_attr_e( 'Tools', 'buddypress' ) ?></h2>
     377                <h1><?php esc_attr_e( 'Tools', 'buddypress' ) ?></h1>
    378378
    379379                <?php
  • trunk/src/bp-groups/bp-groups-admin.php

    r10262 r10357  
    568568
    569569        <div class="wrap">
    570                 <h2><?php _e( 'Edit Group', 'buddypress' ); ?>
     570                <h1><?php _e( 'Edit Group', 'buddypress' ); ?>
    571571
    572572                        <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?>
     
    574574                        <?php endif; ?>
    575575
    576                 </h2>
     576                </h1>
    577577
    578578                <?php // If the user has just made a change to an group, display the status messages ?>
     
    664664
    665665        <div class="wrap">
    666                 <h2><?php _e( 'Delete Groups', 'buddypress' ) ?></h2>
     666                <h1><?php _e( 'Delete Groups', 'buddypress' ) ?></h1>
    667667                <p><?php _e( 'You are about to delete the following groups:', 'buddypress' ) ?></p>
    668668
     
    721721
    722722        <div class="wrap">
    723                 <h2>
     723                <h1>
    724724                        <?php _e( 'Groups', 'buddypress' ); ?>
    725725
     
    731731                                <span class="subtitle"><?php printf( __( 'Search results for &#8220;%s&#8221;', 'buddypress' ), wp_html_excerpt( esc_html( stripslashes( $_REQUEST['s'] ) ), 50 ) ); ?></span>
    732732                        <?php endif; ?>
    733                 </h2>
     733                </h1>
    734734
    735735                <?php // If the user has just made a change to an group, display the status messages ?>
  • trunk/src/bp-members/bp-members-admin.php

    r10322 r10357  
    878878
    879879                <div class="wrap" id="community-profile-page">
    880                         <h2><?php echo esc_html( $title ); ?>
     880                        <h1><?php echo esc_html( $title ); ?>
    881881
    882882                                <?php if ( empty( $this->is_self_profile ) ) : ?>
     
    893893
    894894                                <?php endif; ?>
    895                         </h2>
     895                        </h1>
    896896
    897897                        <?php if ( ! empty( $user ) ) :
     
    18161816
    18171817                <div class="wrap">
    1818                         <h2><?php _e( 'Users', 'buddypress' ); ?>
     1818                        <h1><?php _e( 'Users', 'buddypress' ); ?>
    18191819
    18201820                                <?php if ( current_user_can( 'create_users' ) ) : ?>
     
    18331833
    18341834                                ?>
    1835                         </h2>
     1835                        </h1>
    18361836
    18371837                        <?php // Display each signups on its own row. ?>
     
    19351935
    19361936                <div class="wrap">
    1937                         <h2><?php echo esc_html( $header_text ); ?></h2>
     1937                        <h1><?php echo esc_html( $header_text ); ?></h1>
    19381938                        <p><?php echo esc_html( $helper_text ); ?></p>
    19391939
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r10324 r10357  
    8787        <div class="wrap">
    8888
    89                 <h2>
     89                <h1>
    9090                        <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?>
    9191                        <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>
    92                 </h2>
     92                </h1>
    9393
    9494                <form action="" id="profile-field-form" method="post">
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r10313 r10357  
    11161116                <div class="wrap">
    11171117
    1118                         <h2><?php echo esc_html( $title ); ?></h2>
     1118                        <h1><?php echo esc_html( $title ); ?></h1>
    11191119
    11201120                        <?php if ( !empty( $message ) ) : ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php

    r10281 r10357  
    724724                <div class="wrap">
    725725
    726                         <h2><?php echo esc_html( $title ); ?></h2>
     726                        <h1><?php echo esc_html( $title ); ?></h1>
    727727
    728728                        <?php if ( ! empty( $message ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.