<!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>[44961] trunk/src/wp-admin: Accessibility: Remove post format filter links from format icons in the Posts list table.</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 { white-space: pre-line; 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/44961">44961</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/44961","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>SergeyBiryukov</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2019-03-21 15:30:52 +0000 (Thu, 21 Mar 2019)</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'>Accessibility: Remove post format filter links from format icons in the Posts list table.
Introduce a dedicated 'Formats' drop-down filter as a replacement.
Keep the icons as a simple visual indicator of the post format for now.
Props afercia, melchoyce, GaryJ, chiaralovelaces, SergeyBiryukov.
Fixes <a href="https://core.trac.wordpress.org/ticket/35497">#35497</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmincsseditcss">trunk/src/wp-admin/css/edit.css</a></li>
<li><a href="#trunksrcwpadmincssiecss">trunk/src/wp-admin/css/ie.css</a></li>
<li><a href="#trunksrcwpadminincludesclasswppostslisttablephp">trunk/src/wp-admin/includes/class-wp-posts-list-table.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmincsseditcss"></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/css/edit.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/css/edit.css 2019-03-21 12:46:11 UTC (rev 44960)
+++ trunk/src/wp-admin/css/edit.css 2019-03-21 15:30:52 UTC (rev 44961)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -863,33 +863,21 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 11.4 - Post formats
</span><span class="cx" style="display: block; padding: 0 10px"> ------------------------------------------------------------------------------*/
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format {
- overflow: hidden;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> display: inline-block;
</span><span class="cx" style="display: block; padding: 0 10px"> vertical-align: middle;
</span><span class="cx" style="display: block; padding: 0 10px"> height: 20px;
</span><span class="cx" style="display: block; padding: 0 10px"> width: 20px;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- margin-right: 5px;
</del><span class="cx" style="display: block; padding: 0 10px"> margin-top: -4px;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-}
-
-.post-state-format:before {
- display: block;
- height: 20px;
- width: 20px;
- font: normal 20px/1 dashicons !important;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ margin-right: 7px;
+ color: #ddd;
+ font: normal 20px/1 dashicons;
</ins><span class="cx" style="display: block; padding: 0 10px"> speak: none;
</span><span class="cx" style="display: block; padding: 0 10px"> -webkit-font-smoothing: antialiased;
</span><span class="cx" style="display: block; padding: 0 10px"> -moz-osx-font-smoothing: grayscale;
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-}
-
-.post-state-format:before,
-.post-format-icon:before {
- color: #ddd;
</del><span class="cx" style="display: block; padding: 0 10px"> transition: all .1s ease-in-out;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-a.post-state-format:hover:before,
</del><span class="cx" style="display: block; padding: 0 10px"> a.post-format-icon:hover:before {
</span><span class="cx" style="display: block; padding: 0 10px"> color: #00a0d2;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -898,7 +886,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> line-height: 2em;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-#post-formats-select .post-format-icon:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+#post-formats-select .post-format-icon::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> top: 5px;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -907,77 +895,47 @@
</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"> label.post-format-icon {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- margin-left: 0px;
- padding: 2px 0 2px 0px;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ margin-left: 0;
+ padding: 2px 0;
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-format-icon:before {
- position: relative;
- display: inline-block;
- margin-right: 7px;
- font: normal 20px/1 dashicons;
- speak: none;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
-}
-
-.post-state-format.post-format-standard:before,
-.post-format-icon.post-format-standard:before,
-a.post-state-format.format-standard:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-standard::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f109";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format.post-format-image:before,
-.post-format-icon.post-format-image:before,
-a.post-state-format.format-image:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-image::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f128";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format.post-format-gallery:before,
-.post-format-icon.post-format-gallery:before,
-a.post-state-format.format-gallery:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-gallery::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f161";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format.post-format-audio:before,
-.post-format-icon.post-format-audio:before,
-a.post-state-format.format-audio:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-audio::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f127";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format.post-format-video:before,
-.post-format-icon.post-format-video:before,
-a.post-state-format.format-video:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-video::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f126";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format.post-format-chat:before,
-.post-format-icon.post-format-chat:before,
-a.post-state-format.format-chat:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-chat::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f125";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format.post-format-status:before,
-.post-format-icon.post-format-status:before,
-a.post-state-format.format-status:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-status::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f130";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format.post-format-aside:before,
-.post-format-icon.post-format-aside:before,
-a.post-state-format.format-aside:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-aside::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f123";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format.post-format-quote:before,
-.post-format-icon.post-format-quote:before,
-a.post-state-format.format-quote:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-quote::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f122";
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-.post-state-format.post-format-link:before,
-.post-format-icon.post-format-link:before,
-a.post-state-format.format-link:before {
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+.post-format-icon.post-format-link::before {
</ins><span class="cx" style="display: block; padding: 0 10px"> content: "\f103";
</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="trunksrcwpadmincssiecss"></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/css/ie.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/wp-admin/css/ie.css 2019-03-21 12:46:11 UTC (rev 44960)
+++ trunk/src/wp-admin/css/ie.css 2019-03-21 15:30:52 UTC (rev 44961)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -471,12 +471,6 @@
</span><span class="cx" style="display: block; padding: 0 10px"> display: inline;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">-a.post-state-format {
- text-indent: 0;
- line-height: 0;
- font-size: 0;
-}
-
</del><span class="cx" style="display: block; padding: 0 10px"> table.ie-fixed {
</span><span class="cx" style="display: block; padding: 0 10px"> table-layout: fixed;
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcwpadminincludesclasswppostslisttablephp"></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-posts-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-posts-list-table.php 2019-03-21 12:46:11 UTC (rev 44960)
+++ trunk/src/wp-admin/includes/class-wp-posts-list-table.php 2019-03-21 15:30:52 UTC (rev 44961)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -459,6 +459,66 @@
</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"> /**
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ * Displays a formats drop-down for filtering items.
+ *
+ * @since 5.2.0
+ * @access protected
+ *
+ * @param string $post_type Post type key.
+ */
+ protected function formats_dropdown( $post_type ) {
+ /**
+ * Filters whether to remove the 'Formats' drop-down from the post list table.
+ *
+ * @since 5.2.0
+ *
+ * @param bool $disable Whether to disable the drop-down. Default false.
+ */
+ if ( apply_filters( 'disable_formats_dropdown', false ) ) {
+ return;
+ }
+
+ // Make sure the dropdown shows only formats with a post count greater than 0.
+ $used_post_formats = get_terms(
+ array(
+ 'taxonomy' => 'post_format',
+ 'hide_empty' => true,
+ )
+ );
+
+ /*
+ * Return if the post type doesn't have post formats, or there are no posts using formats,
+ * or if we're in the trash.
+ */
+ if ( ! is_object_in_taxonomy( $post_type, 'post_format' ) || ! $used_post_formats || $this->is_trash ) {
+ return;
+ }
+
+ $displayed_post_format = isset( $_GET['post_format'] ) ? $_GET['post_format'] : '';
+ ?>
+ <label for="filter-by-format" class="screen-reader-text"><?php _e( 'Filter by post format' ); ?></label>
+ <select name="post_format" id="filter-by-format">
+ <option<?php selected( $displayed_post_format, '' ); ?> value=""><?php _e( 'All formats' ); ?></option>
+ <?php
+ foreach ( $used_post_formats as $used_post_format ) {
+ // Post format slug.
+ $slug = str_replace( 'post-format-', '', $used_post_format->slug );
+ // Pretty, translated version of the post format slug.
+ $pretty_name = get_post_format_string( $slug );
+ // Skip the standard post format.
+ if ( 'standard' === $slug ) {
+ continue;
+ }
+ ?>
+ <option<?php selected( $displayed_post_format, $slug ); ?> value="<?php echo esc_attr( $slug ); ?>"><?php echo esc_html( $pretty_name ); ?></option>
+ <?php
+ }
+ ?>
+ </select>
+ <?php
+ }
+
+ /**
</ins><span class="cx" style="display: block; padding: 0 10px"> * @param string $which
</span><span class="cx" style="display: block; padding: 0 10px"> */
</span><span class="cx" style="display: block; padding: 0 10px"> protected function extra_tablenav( $which ) {
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -470,6 +530,7 @@
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> $this->months_dropdown( $this->screen->post_type );
</span><span class="cx" style="display: block; padding: 0 10px"> $this->categories_dropdown( $this->screen->post_type );
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $this->formats_dropdown( $this->screen->post_type );
</ins><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"> * Fires before the Filter button on the Posts and Pages list tables.
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -943,25 +1004,15 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $pad = str_repeat( '— ', $this->current_level );
</span><span class="cx" style="display: block; padding: 0 10px"> echo '<strong>';
</span><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $format = get_post_format( $post->ID );
- if ( $format ) {
- $label = get_post_format_string( $format );
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ $format = get_post_format( $post->ID );
+ $format_classes = ( $format ) ? 'post-format-icon post-format-' . esc_attr( $format ) : '';
</ins><span class="cx" style="display: block; padding: 0 10px">
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- $format_class = 'post-state-format post-format-icon post-format-' . $format;
-
- $format_args = array(
- 'post_format' => $format,
- 'post_type' => $post->post_type,
- );
-
- echo $this->get_edit_link( $format_args, $label . ':', $format_class );
- }
-
</del><span class="cx" style="display: block; padding: 0 10px"> $title = _draft_or_post_title();
</span><span class="cx" style="display: block; padding: 0 10px">
</span><span class="cx" style="display: block; padding: 0 10px"> if ( $can_edit_post && $post->post_status != 'trash' ) {
</span><span class="cx" style="display: block; padding: 0 10px"> printf(
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- '<a class="row-title" href="%s" aria-label="%s">%s%s</a>',
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ '<a class="row-title %s" href="%s" aria-label="%s">%s%s</a>',
+ $format_classes,
</ins><span class="cx" style="display: block; padding: 0 10px"> get_edit_post_link( $post->ID ),
</span><span class="cx" style="display: block; padding: 0 10px"> /* translators: %s: post title */
</span><span class="cx" style="display: block; padding: 0 10px"> esc_attr( sprintf( __( '“%s” (Edit)' ), $title ) ),
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -969,7 +1020,12 @@
</span><span class="cx" style="display: block; padding: 0 10px"> $title
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="cx" style="display: block; padding: 0 10px"> } else {
</span><del style="background-color: #fdd; text-decoration:none; display:block; padding: 0 10px">- echo $pad . $title;
</del><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ printf(
+ '<span class="%s">%s%s</span>',
+ $format_classes,
+ $pad,
+ $title
+ );
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span><span class="cx" style="display: block; padding: 0 10px"> _post_states( $post );
</span><span class="cx" style="display: block; padding: 0 10px">
</span></span></pre>
</div>
</div>
</body>
</html>