Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/12/2015 06:00:18 AM (9 years ago)
Author:
mercime
Message:

Bind input to label and description for Primary link metabox.

Accessibility fix adds 'id' and 'aria-describedby' attributes to
url input to bind to available label element as well as to
the available description of the field in wp-admin Activity
edit screen.

See #6616.

File:
1 edited

Legend:

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

    r10097 r10098  
    780780
    781781    <label class="screen-reader-text" for="bp-activities-link"><?php _e( 'Link', 'buddypress' ); ?></label>
    782     <input type="url" name="bp-activities-link" value="<?php echo esc_url( $item->primary_link ); ?>" />
    783     <p><?php _e( 'Activity generated by posts and comments, forum topics and replies, and some plugins, uses the link field for a permalink back to the content item.', 'buddypress' ); ?></p>
     782    <input type="url" name="bp-activities-link" id="bp-activities-link" value="<?php echo esc_url( $item->primary_link ); ?>" aria-describedby="bp-activities-link-description" />
     783    <p id="bp-activities-link-description"><?php _e( 'Activity generated by posts and comments, forum topics and replies, and some plugins, uses the link field for a permalink back to the content item.', 'buddypress' ); ?></p>
    784784
    785785<?php
Note: See TracChangeset for help on using the changeset viewer.