<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[34891] trunk/src: List Tables/WP_Screen: in `WP_Screen`, add methods to store, retrieve, and render screen reader text, primarily used by list table screens.</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="https://core.trac.wordpress.org/changeset/34891">34891</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"https://core.trac.wordpress.org/changeset/34891","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>wonderboymusic</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2015-10-07 01:27:01 +0000 (Wed, 07 Oct 2015)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>List Tables/WP_Screen: in `WP_Screen`, add methods to store, retrieve, and render screen reader text, primarily used by list table screens.
These additions are based on an audit and recommendations by the Accessibility team. #a11y'all
Props afercia.
Fixes <a href="https://core.trac.wordpress.org/ticket/32147">#32147</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmineditcommentsphp">trunk/src/wp-admin/edit-comments.php</a></li>
<li><a href="#trunksrcwpadminedittagsphp">trunk/src/wp-admin/edit-tags.php</a></li>
<li><a href="#trunksrcwpadmineditphp">trunk/src/wp-admin/edit.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpcommentslisttablephp">trunk/src/wp-admin/includes/class-wp-comments-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswplisttablephp">trunk/src/wp-admin/includes/class-wp-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpmedialisttablephp">trunk/src/wp-admin/includes/class-wp-media-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpplugininstalllisttablephp">trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php</a></li>
<li><a href="#trunksrcwpadminincludesclasswpscreenphp">trunk/src/wp-admin/includes/class-wp-screen.php</a></li>
<li><a href="#trunksrcwpadminlinkmanagerphp">trunk/src/wp-admin/link-manager.php</a></li>
<li><a href="#trunksrcwpadminnetworksitethemesphp">trunk/src/wp-admin/network/site-themes.php</a></li>
<li><a href="#trunksrcwpadminnetworksiteusersphp">trunk/src/wp-admin/network/site-users.php</a></li>
<li><a href="#trunksrcwpadminnetworksitesphp">trunk/src/wp-admin/network/sites.php</a></li>
<li><a href="#trunksrcwpadminnetworkthemesphp">trunk/src/wp-admin/network/themes.php</a></li>
<li><a href="#trunksrcwpadminnetworkusersphp">trunk/src/wp-admin/network/users.php</a></li>
<li><a href="#trunksrcwpadminplugininstallphp">trunk/src/wp-admin/plugin-install.php</a></li>
<li><a href="#trunksrcwpadminpluginsphp">trunk/src/wp-admin/plugins.php</a></li>
<li><a href="#trunksrcwpadminthemeinstallphp">trunk/src/wp-admin/theme-install.php</a></li>
<li><a href="#trunksrcwpadminuploadphp">trunk/src/wp-admin/upload.php</a></li>
<li><a href="#trunksrcwpadminusersphp">trunk/src/wp-admin/users.php</a></li>
<li><a href="#trunksrcwpincludespostfunctionsphp">trunk/src/wp-includes/post-functions.php</a></li>
<li><a href="#trunksrcwpincludestaxonomyfunctionsphp">trunk/src/wp-includes/taxonomy-functions.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmineditcommentsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/edit-comments.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/edit-comments.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/edit-comments.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -165,6 +165,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter comments list' ),
+ 'heading_pagination' => __( 'Comments list navigation' ),
+ 'heading_list' => __( 'Comments list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> require_once( ABSPATH . 'wp-admin/admin-header.php' );
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminedittagsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/edit-tags.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/edit-tags.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/edit-tags.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -54,6 +54,11 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_pagination' => $tax->labels->pagination,
+ 'heading_list' => $tax->labels->list,
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $location = false;
</span><span class="cx" style="display: block; padding: 0 10px"> $referer = wp_get_referer();
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadmineditphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/edit.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/edit.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/edit.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -245,8 +245,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://codex.wordpress.org/Pages_Screen" target="_blank">Documentation on Managing Pages</a>') . '</p>' .
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => $post_type_object->labels->views,
+ 'heading_pagination' => $post_type_object->labels->pagination,
+ 'heading_list' => $post_type_object->labels->list,
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $bulk_counts = array(
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpcommentslisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-comments-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-comments-list-table.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/includes/class-wp-comments-list-table.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -443,6 +443,8 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->display_tablenav( 'top' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->screen->render_screen_reader_content( 'heading_list' );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
</span><span class="cx" style="display: block; padding: 0 10px"> <thead>
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswplisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-list-table.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/includes/class-wp-list-table.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -382,6 +382,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> if ( empty( $views ) )
</span><span class="cx" style="display: block; padding: 0 10px"> return;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->screen->render_screen_reader_content( 'heading_views' );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> echo "<ul class='subsubsub'>\n";
</span><span class="cx" style="display: block; padding: 0 10px"> foreach ( $views as $class => $view ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $views[ $class ] = "\t<li class='$class'>$view";
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -734,6 +736,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $infinite_scroll = $this->_pagination_args['infinite_scroll'];
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ if ( 'top' === $which && $total_pages > 1 ) {
+ $this->screen->render_screen_reader_content( 'heading_pagination' );
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $output = '<span class="displaying-num">' . sprintf( _n( '%s item', '%s items', $total_items ), number_format_i18n( $total_items ) ) . '</span>';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $current = $this->get_pagenum();
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1117,6 +1123,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $singular = $this->_args['singular'];
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->display_tablenav( 'top' );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ $this->screen->render_screen_reader_content( 'heading_list' );
</ins><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
</span><span class="cx" style="display: block; padding: 0 10px"> <thead>
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpmedialisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-media-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-media-list-table.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/includes/class-wp-media-list-table.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -217,6 +217,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> global $mode;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $views = $this->get_views();
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ $this->screen->render_screen_reader_content( 'heading_views' );
</ins><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wp-filter">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="filter-items">
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpplugininstalllisttablephp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -258,6 +258,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */
</span><span class="cx" style="display: block; padding: 0 10px"> $views = apply_filters( "views_{$this->screen->id}", $views );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->screen->render_screen_reader_content( 'heading_views' );
</ins><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wp-filter">
</span><span class="cx" style="display: block; padding: 0 10px"> <ul class="filter-links">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -292,7 +293,9 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+ $this->screen->render_screen_reader_content( 'heading_list' );
+?>
</ins><span class="cx" style="display: block; padding: 0 10px"> <div id="the-list"<?php echo $data_attr; ?>>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php $this->display_rows_or_placeholder(); ?>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswpscreenphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/includes/class-wp-screen.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/includes/class-wp-screen.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/includes/class-wp-screen.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -142,6 +142,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> private $_help_sidebar = '';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * The accessible hidden headings and text associated with the screen, if any.
+ *
+ * @since 4.4.0
+ * @access private
+ * @var array
+ */
+ private $_screen_reader_content = array();
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * Stores old string-based help.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -644,7 +653,71 @@
</span><span class="cx" style="display: block; padding: 0 10px"> return $this->columns;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ /**
+ * Get the accessible hidden headings and text used in the screen.
+ *
+ * @since 4.4.0
+ *
+ * @see set_screen_reader_content() For more information on the array format.
+ *
+ * @return array An associative array of screen reader text strings.
+ */
+ public function get_screen_reader_content() {
+ return $this->_screen_reader_content;
+ }
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Get a screen reader text string.
+ *
+ * @since 4.4.0
+ *
+ * @param string $key Screen reader text array named key.
+ * @return string Screen reader text string.
+ */
+ public function get_screen_reader_text( $key ) {
+ if ( ! isset( $this->_screen_reader_content[ $key ] ) ) {
+ return null;
+ }
+ return $this->_screen_reader_content[ $key ];
+ }
+
+ /**
+ * Add accessible hidden headings and text for the screen.
+ *
+ * @since 4.4.0
+ *
+ * @param array $content {
+ * An associative array of screen reader text strings.
+ *
+ * @type string $heading_views Screen reader text for the filter links heading.
+ * Default 'Filter items list'.
+ * @type string $heading_pagination Screen reader text for the pagination heading.
+ * Default 'Items list navigation'.
+ * @type string heading_list Screen reader text for the items list heading.
+ * Default 'Items list'.
+ * }
+ */
+ public function set_screen_reader_content( $content = array() ) {
+ $defaults = array(
+ 'heading_views' => __( 'Filter items list' ),
+ 'heading_pagination' => __( 'Items list navigation' ),
+ 'heading_list' => __( 'Items list' ),
+ );
+ $content = wp_parse_args( $content, $defaults );
+
+ $this->_screen_reader_content = $content;
+ }
+
+ /**
+ * Remove all the accessible hidden headings and text for the screen.
+ *
+ * @since 4.4.0
+ */
+ public function remove_screen_reader_content() {
+ $this->_screen_reader_content = array();
+ }
+
+ /**
</ins><span class="cx" style="display: block; padding: 0 10px"> * Render the screen's help section.
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * This will trigger the deprecated filters for backwards compatibility.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1064,4 +1137,20 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> <?php
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Render screen reader text.
+ *
+ * @since 4.4.0
+ *
+ * @param string $key The screen reader text array named key.
+ * @param string $tag Optional. The HTML tag to wrap the screen reader text. Default h2.
+ */
+ public function render_screen_reader_content( $key = '', $tag = 'h2' ) {
+
+ if ( ! isset( $this->_screen_reader_content[ $key ] ) ) {
+ return;
+ }
+ echo "<$tag class='screen-reader-text'>" . $this->_screen_reader_content[ $key ] . "</$tag>";
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpadminlinkmanagerphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/link-manager.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/link-manager.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/link-manager.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -61,6 +61,10 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_list' => __( 'Links list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> include_once( ABSPATH . 'wp-admin/admin-header.php' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( ! current_user_can('manage_links') )
</span></span></pre></div>
<a id="trunksrcwpadminnetworksitethemesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/network/site-themes.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/network/site-themes.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/network/site-themes.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -33,6 +33,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter site themes list' ),
+ 'heading_pagination' => __( 'Site themes list navigation' ),
+ 'heading_list' => __( 'Site themes list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $wp_list_table = _get_list_table('WP_MS_Themes_List_Table');
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $action = $wp_list_table->current_action();
</span></span></pre></div>
<a id="trunksrcwpadminnetworksiteusersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/network/site-users.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/network/site-users.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/network/site-users.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -36,6 +36,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter site users list' ),
+ 'heading_pagination' => __( 'Site users list navigation' ),
+ 'heading_list' => __( 'Site users list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $_SERVER['REQUEST_URI'] = remove_query_arg( 'update', $_SERVER['REQUEST_URI'] );
</span><span class="cx" style="display: block; padding: 0 10px"> $referer = remove_query_arg( 'update', wp_get_referer() );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminnetworksitesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/network/sites.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/network/sites.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/network/sites.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -46,6 +46,11 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_pagination' => __( 'Sites list navigation' ),
+ 'heading_list' => __( 'Sites list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $_GET['action'] ) ) {
</span></span></pre></div>
<a id="trunksrcwpadminnetworkthemesphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/network/themes.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/network/themes.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/network/themes.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -251,6 +251,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter themes list' ),
+ 'heading_pagination' => __( 'Themes list navigation' ),
+ 'heading_list' => __( 'Themes list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $title = __('Themes');
</span><span class="cx" style="display: block; padding: 0 10px"> $parent_file = 'themes.php';
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminnetworkusersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/network/users.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/network/users.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/network/users.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -172,6 +172,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter users list' ),
+ 'heading_pagination' => __( 'Users list navigation' ),
+ 'heading_list' => __( 'Users list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> require_once( ABSPATH . 'wp-admin/admin-header.php' );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) {
</span></span></pre></div>
<a id="trunksrcwpadminplugininstallphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/plugin-install.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/plugin-install.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/plugin-install.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -88,6 +88,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter plugins list' ),
+ 'heading_pagination' => __( 'Plugins list navigation' ),
+ 'heading_list' => __( 'Plugins list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> /**
</span><span class="cx" style="display: block; padding: 0 10px"> * WordPress Administration Template Header.
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span></span></pre></div>
<a id="trunksrcwpadminpluginsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/plugins.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/plugins.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/plugins.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -426,6 +426,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter plugins list' ),
+ 'heading_pagination' => __( 'Plugins list navigation' ),
+ 'heading_list' => __( 'Plugins list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> $title = __('Plugins');
</span><span class="cx" style="display: block; padding: 0 10px"> $parent_file = 'plugins.php';
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminthemeinstallphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/theme-install.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/theme-install.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/theme-install.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -128,6 +128,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> <?php install_themes_upload(); ?>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <h2 class="screen-reader-text"><?php _e( 'Filter themes list' ); ?></h2>
+
</ins><span class="cx" style="display: block; padding: 0 10px"> <div class="wp-filter">
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="filter-count">
</span><span class="cx" style="display: block; padding: 0 10px"> <span class="count theme-count"></span>
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -171,6 +173,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><span class="cx" style="display: block; padding: 0 10px"> </div>
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ <h2 class="screen-reader-text"><?php _e( 'Themes list' ); ?></h2>
</ins><span class="cx" style="display: block; padding: 0 10px"> <div class="theme-browser content-filterable"></div>
</span><span class="cx" style="display: block; padding: 0 10px"> <div class="theme-install-overlay wp-full-overlay expanded"></div>
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminuploadphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/upload.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/upload.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/upload.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -204,6 +204,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __( '<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter media items list' ),
+ 'heading_pagination' => __( 'Media items list navigation' ),
+ 'heading_list' => __( 'Media items list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> require_once( ABSPATH . 'wp-admin/admin-header.php' );
</span><span class="cx" style="display: block; padding: 0 10px"> ?>
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpadminusersphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-admin/users.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/users.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-admin/users.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -68,6 +68,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px">
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+get_current_screen()->set_screen_reader_content( array(
+ 'heading_views' => __( 'Filter users list' ),
+ 'heading_pagination' => __( 'Users list navigation' ),
+ 'heading_list' => __( 'Users list' ),
+) );
+
</ins><span class="cx" style="display: block; padding: 0 10px"> if ( empty($_REQUEST) ) {
</span><span class="cx" style="display: block; padding: 0 10px"> $referer = '<input type="hidden" name="wp_http_referer" value="'. esc_attr( wp_unslash( $_SERVER['REQUEST_URI'] ) ) . '" />';
</span><span class="cx" style="display: block; padding: 0 10px"> } elseif ( isset($_REQUEST['wp_http_referer']) ) {
</span></span></pre></div>
<a id="trunksrcwpincludespostfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/post-functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/post-functions.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-includes/post-functions.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1322,6 +1322,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * - remove_featured_image - Default is Remove featured image.
</span><span class="cx" style="display: block; padding: 0 10px"> * - use_featured_image - Default is Use as featured image.
</span><span class="cx" style="display: block; padding: 0 10px"> * - menu_name - Default is the same as `name`.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * - views - String for the table views hidden heading.
+ * - pagination - String for the table pagination hidden heading.
+ * - list - String for the table hidden heading.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Above, the first default value is for non-hierarchical post types (like posts)
</span><span class="cx" style="display: block; padding: 0 10px"> * and the second one is for hierarchical post types (like pages).
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -1356,6 +1359,9 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'set_featured_image' => array( __( 'Set featured image' ), __( 'Set featured image' ) ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'remove_featured_image' => array( __( 'Remove featured image' ), __( 'Remove featured image' ) ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'use_featured_image' => array( __( 'Use as featured image' ), __( 'Use as featured image' ) ),
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'views' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ),
+ 'pagination' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ),
+ 'list' => array( __( 'Posts list' ), __( 'Pages list' ) ),
</ins><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre></div>
<a id="trunksrcwpincludestaxonomyfunctionsphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/wp-includes/taxonomy-functions.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-includes/taxonomy-functions.php 2015-10-07 01:06:58 UTC (rev 34890)
+++ trunk/src/wp-includes/taxonomy-functions.php 2015-10-07 01:27:01 UTC (rev 34891)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -495,6 +495,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> * - choose_from_most_used - This string isn't used on hierarchical taxonomies. Default is "Choose from the most used tags", used in the meta box.
</span><span class="cx" style="display: block; padding: 0 10px"> * - not_found - Default is "No tags found"/"No categories found", used in the meta box and taxonomy list table.
</span><span class="cx" style="display: block; padding: 0 10px"> * - no_terms - Default is "No tags"/"No categories", used in the posts and media list tables.
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * - pagination - String for the table pagination hidden heading.
+ * - list - String for the table hidden heading.
</ins><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="cx" style="display: block; padding: 0 10px"> * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories).
</span><span class="cx" style="display: block; padding: 0 10px"> *
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -534,6 +536,8 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'not_found' => array( __( 'No tags found.' ), __( 'No categories found.' ) ),
</span><span class="cx" style="display: block; padding: 0 10px"> 'no_terms' => array( __( 'No tags' ), __( 'No categories' ) ),
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'pagination' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
+ 'list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
</ins><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre>
</div>
</div>
</body>
</html>