Changeset 37972 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 07/05/2016 03:21:44 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r37737 r37972 1028 1028 echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n"; 1029 1029 if ( 'dashboard_browser_nag' != $box['id'] ) { 1030 $widget_title = $box[ 'title' ]; 1031 1032 if ( is_array( $box[ 'args' ] ) && isset( $box[ 'args' ][ '__widget_basename' ] ) ) { 1033 $widget_title = esc_html( $box[ 'args' ][ '__widget_basename' ] ); 1034 // Do not pass this parameter to the user callback function. 1035 unset( $box[ 'args' ][ '__widget_basename' ] ); 1036 } 1037 1030 1038 echo '<button type="button" class="handlediv button-link" aria-expanded="true">'; 1031 echo '<span class="screen-reader-text">' . sprintf( __( 'Toggle panel: %s' ), $ box['title']) . '</span>';1039 echo '<span class="screen-reader-text">' . sprintf( __( 'Toggle panel: %s' ), $widget_title ) . '</span>'; 1032 1040 echo '<span class="toggle-indicator" aria-hidden="true"></span>'; 1033 1041 echo '</button>';
Note: See TracChangeset
for help on using the changeset viewer.