<!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>[25083] trunk/src/wp-admin: Add more descriptive classes to submit meta box sections.</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">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/25083">25083</a></dd>
<dt>Author</dt> <dd>helen</dd>
<dt>Date</dt> <dd>2013-08-22 15:23:41 +0000 (Thu, 22 Aug 2013)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add more descriptive classes to submit meta box sections. props nofearinc. fixes <a href="http://core.trac.wordpress.org/ticket/22333">#22333</a>.</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcwpadmineditformcommentphp">trunk/src/wp-admin/edit-form-comment.php</a></li>
<li><a href="#trunksrcwpadminincludesmediaphp">trunk/src/wp-admin/includes/media.php</a></li>
<li><a href="#trunksrcwpadminincludesmetaboxesphp">trunk/src/wp-admin/includes/meta-boxes.php</a></li>
<li><a href="#trunksrcwpadminincludestemplatephp">trunk/src/wp-admin/includes/template.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcwpadmineditformcommentphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/edit-form-comment.php (25082 => 25083)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/edit-form-comment.php 2013-08-22 04:49:06 UTC (rev 25082)
+++ trunk/src/wp-admin/edit-form-comment.php 2013-08-22 15:23:41 UTC (rev 25083)
</span><span class="lines">@@ -85,13 +85,13 @@
</span><span class="cx">
</span><span class="cx"> <div id="misc-publishing-actions">
</span><span class="cx">
</span><del>-<div class="misc-pub-section" id="comment-status-radio">
</del><ins>+<div class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
</ins><span class="cx"> <label class="approved"><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php /* translators: comment type radio button */ _ex('Approved', 'adjective') ?></label><br />
</span><span class="cx"> <label class="waiting"><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php /* translators: comment type radio button */ _ex('Pending', 'adjective') ?></label><br />
</span><span class="cx"> <label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php /* translators: comment type radio button */ _ex('Spam', 'adjective'); ?></label>
</span><span class="cx"> </div>
</span><span class="cx">
</span><del>-<div class="misc-pub-section curtime">
</del><ins>+<div class="misc-pub-section curtime misc-pub-curtime">
</ins><span class="cx"> <?php
</span><span class="cx"> // translators: Publish box date format, see http://php.net/date
</span><span class="cx"> $datef = __( 'M j, Y @ G:i' );
</span></span></pre></div>
<a id="trunksrcwpadminincludesmediaphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/includes/media.php (25082 => 25083)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/includes/media.php 2013-08-22 04:49:06 UTC (rev 25082)
+++ trunk/src/wp-admin/includes/media.php 2013-08-22 15:23:41 UTC (rev 25083)
</span><span class="lines">@@ -2433,14 +2433,14 @@
</span><span class="cx">
</span><span class="cx"> $att_url = wp_get_attachment_url( $post->ID );
</span><span class="cx"> ?>
</span><del>- <div class="misc-pub-section">
</del><ins>+ <div class="misc-pub-section misc-pub-attachment">
</ins><span class="cx"> <label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
</span><span class="cx"> <input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" value="<?php echo esc_attr($att_url); ?>" />
</span><span class="cx"> </div>
</span><del>- <div class="misc-pub-section">
</del><ins>+ <div class="misc-pub-section misc-pub-filename">
</ins><span class="cx"> <?php _e( 'File name:' ); ?> <strong><?php echo $filename; ?></strong>
</span><span class="cx"> </div>
</span><del>- <div class="misc-pub-section">
</del><ins>+ <div class="misc-pub-section misc-pub-filetype">
</ins><span class="cx"> <?php _e( 'File type:' ); ?> <strong><?php
</span><span class="cx"> if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
</span><span class="cx"> echo esc_html( strtoupper( $matches[1] ) );
</span><span class="lines">@@ -2461,7 +2461,7 @@
</span><span class="cx">
</span><span class="cx"> foreach ( $fields as $key => $label ):
</span><span class="cx"> if ( ! empty( $meta[$key] ) ) : ?>
</span><del>- <div class="misc-pub-section">
</del><ins>+ <div class="misc-pub-section misc-pub-mime-meta">
</ins><span class="cx"> <?php echo $label ?> <strong><?php echo esc_html( $meta[$key] ); ?></strong>
</span><span class="cx"> </div>
</span><span class="cx"> <?php
</span><span class="lines">@@ -2469,7 +2469,7 @@
</span><span class="cx"> endforeach;
</span><span class="cx">
</span><span class="cx"> if ( ! empty( $meta['bitrate'] ) ) : ?>
</span><del>- <div class="misc-pub-section">
</del><ins>+ <div class="misc-pub-section misc-pub-bitrate">
</ins><span class="cx"> <?php _e( 'Bitrate:' ); ?> <strong><?php
</span><span class="cx"> echo round( $meta['bitrate'] / 1000 ), 'kb/s';
</span><span class="cx">
</span><span class="lines">@@ -2488,7 +2488,7 @@
</span><span class="cx">
</span><span class="cx"> foreach ( $audio_fields as $key => $label ):
</span><span class="cx"> if ( ! empty( $meta['audio'][$key] ) ) : ?>
</span><del>- <div class="misc-pub-section">
</del><ins>+ <div class="misc-pub-section misc-pub-audio">
</ins><span class="cx"> <?php echo $label; ?> <strong><?php echo esc_html( $meta['audio'][$key] ); ?></strong>
</span><span class="cx"> </div>
</span><span class="cx"> <?php
</span><span class="lines">@@ -2498,7 +2498,7 @@
</span><span class="cx"> endif;
</span><span class="cx">
</span><span class="cx"> if ( $media_dims ) : ?>
</span><del>- <div class="misc-pub-section">
</del><ins>+ <div class="misc-pub-section misc-pub-dimensions">
</ins><span class="cx"> <?php _e( 'Dimensions:' ); ?> <strong><?php echo $media_dims; ?></strong>
</span><span class="cx"> </div>
</span><span class="cx"> <?php
</span></span></pre></div>
<a id="trunksrcwpadminincludesmetaboxesphp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/includes/meta-boxes.php (25082 => 25083)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/includes/meta-boxes.php 2013-08-22 04:49:06 UTC (rev 25082)
+++ trunk/src/wp-admin/includes/meta-boxes.php 2013-08-22 15:23:41 UTC (rev 25083)
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx">
</span><span class="cx"> <div id="misc-publishing-actions">
</span><span class="cx">
</span><del>-<div class="misc-pub-section"><label for="post_status"><?php _e('Status:') ?></label>
</del><ins>+<div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e('Status:') ?></label>
</ins><span class="cx"> <span id="post-status-display">
</span><span class="cx"> <?php
</span><span class="cx"> switch ( $post->post_status ) {
</span><span class="lines">@@ -105,7 +105,7 @@
</span><span class="cx"> <?php } ?>
</span><span class="cx"> </div><!-- .misc-pub-section -->
</span><span class="cx">
</span><del>-<div class="misc-pub-section" id="visibility">
</del><ins>+<div class="misc-pub-section misc-pub-visibility" id="visibility">
</ins><span class="cx"> <?php _e('Visibility:'); ?> <span id="post-visibility-display"><?php
</span><span class="cx">
</span><span class="cx"> if ( 'private' == $post->post_status ) {
</span><span class="lines">@@ -174,7 +174,7 @@
</span><span class="cx"> if ( ! empty( $args['args']['revisions_count'] ) ) :
</span><span class="cx"> $revisions_to_keep = wp_revisions_to_keep( $post );
</span><span class="cx"> ?>
</span><del>-<div class="misc-pub-section num-revisions">
</del><ins>+<div class="misc-pub-section misc-pub-revisions">
</ins><span class="cx"> <?php
</span><span class="cx"> if ( $revisions_to_keep > 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) {
</span><span class="cx"> echo '<span title="' . esc_attr( sprintf( __( 'Your site is configured to keep only the last %s revisions.' ),
</span><span class="lines">@@ -190,7 +190,7 @@
</span><span class="cx"> <?php endif;
</span><span class="cx">
</span><span class="cx"> if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
</span><del>-<div class="misc-pub-section curtime">
</del><ins>+<div class="misc-pub-section curtime misc-pub-curtime">
</ins><span class="cx"> <span id="timestamp">
</span><span class="cx"> <?php printf($stamp, $date); ?></span>
</span><span class="cx"> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a>
</span><span class="lines">@@ -278,7 +278,7 @@
</span><span class="cx"> $stamp = __('Uploaded on: <b>%1$s</b>');
</span><span class="cx"> $date = date_i18n( $datef, strtotime( $post->post_date ) );
</span><span class="cx"> ?>
</span><del>- <div class="misc-pub-section curtime">
</del><ins>+ <div class="misc-pub-section curtime misc-pub-curtime">
</ins><span class="cx"> <span id="timestamp"><?php printf($stamp, $date); ?></span>
</span><span class="cx"> </div><!-- .misc-pub-section -->
</span><span class="cx">
</span><span class="lines">@@ -702,7 +702,7 @@
</span><span class="cx"> </div>
</span><span class="cx">
</span><span class="cx"> <div id="misc-publishing-actions">
</span><del>-<div class="misc-pub-section">
</del><ins>+<div class="misc-pub-section misc-pub-private">
</ins><span class="cx"> <label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked($link->link_visible, 'N'); ?> /> <?php _e('Keep this link private') ?></label>
</span><span class="cx"> </div>
</span><span class="cx"> </div>
</span></span></pre></div>
<a id="trunksrcwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/src/wp-admin/includes/template.php (25082 => 25083)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/src/wp-admin/includes/template.php 2013-08-22 04:49:06 UTC (rev 25082)
+++ trunk/src/wp-admin/includes/template.php 2013-08-22 15:23:41 UTC (rev 25083)
</span><span class="lines">@@ -1909,7 +1909,7 @@
</span><span class="cx"> $content = '<h3>' . __( 'Compare Revisions' ) . '</h3>';
</span><span class="cx"> $content .= '<p>' . __( 'View, compare, and restore other versions of this content on the improved revisions screen.' ) . '</p>';
</span><span class="cx">
</span><del>- self::print_js( 'wp360_revisions', '.misc-pub-section.num-revisions', array(
</del><ins>+ self::print_js( 'wp360_revisions', '.misc-pub-section.misc-pub-revisions', array(
</ins><span class="cx"> 'content' => $content,
</span><span class="cx"> 'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center', 'my' => is_rtl() ? 'left' : 'right-14px' ),
</span><span class="cx"> ) );
</span></span></pre>
</div>
</div>
</body>
</html>