Add more descriptive classes to submit meta box sections. props nofearinc. fixes #22333.

Built from https://develop.svn.wordpress.org/trunk@25083


git-svn-id: http://core.svn.wordpress.org/trunk@25068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2013-08-22 15:24:10 +00:00
parent 8a70215404
commit eb44516e48
4 changed files with 16 additions and 16 deletions

View File

@ -85,13 +85,13 @@ if ( !defined('ABSPATH') )
<div id="misc-publishing-actions">
<div class="misc-pub-section" id="comment-status-radio">
<div class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
<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 />
<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 />
<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>
</div>
<div class="misc-pub-section curtime">
<div class="misc-pub-section curtime misc-pub-curtime">
<?php
// translators: Publish box date format, see http://php.net/date
$datef = __( 'M j, Y @ G:i' );

View File

@ -2433,14 +2433,14 @@ function attachment_submitbox_metadata() {
$att_url = wp_get_attachment_url( $post->ID );
?>
<div class="misc-pub-section">
<div class="misc-pub-section misc-pub-attachment">
<label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
<input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" value="<?php echo esc_attr($att_url); ?>" />
</div>
<div class="misc-pub-section">
<div class="misc-pub-section misc-pub-filename">
<?php _e( 'File name:' ); ?> <strong><?php echo $filename; ?></strong>
</div>
<div class="misc-pub-section">
<div class="misc-pub-section misc-pub-filetype">
<?php _e( 'File type:' ); ?> <strong><?php
if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
echo esc_html( strtoupper( $matches[1] ) );
@ -2461,7 +2461,7 @@ function attachment_submitbox_metadata() {
foreach ( $fields as $key => $label ):
if ( ! empty( $meta[$key] ) ) : ?>
<div class="misc-pub-section">
<div class="misc-pub-section misc-pub-mime-meta">
<?php echo $label ?> <strong><?php echo esc_html( $meta[$key] ); ?></strong>
</div>
<?php
@ -2469,7 +2469,7 @@ function attachment_submitbox_metadata() {
endforeach;
if ( ! empty( $meta['bitrate'] ) ) : ?>
<div class="misc-pub-section">
<div class="misc-pub-section misc-pub-bitrate">
<?php _e( 'Bitrate:' ); ?> <strong><?php
echo round( $meta['bitrate'] / 1000 ), 'kb/s';
@ -2488,7 +2488,7 @@ function attachment_submitbox_metadata() {
foreach ( $audio_fields as $key => $label ):
if ( ! empty( $meta['audio'][$key] ) ) : ?>
<div class="misc-pub-section">
<div class="misc-pub-section misc-pub-audio">
<?php echo $label; ?> <strong><?php echo esc_html( $meta['audio'][$key] ); ?></strong>
</div>
<?php
@ -2498,7 +2498,7 @@ function attachment_submitbox_metadata() {
endif;
if ( $media_dims ) : ?>
<div class="misc-pub-section">
<div class="misc-pub-section misc-pub-dimensions">
<?php _e( 'Dimensions:' ); ?> <strong><?php echo $media_dims; ?></strong>
</div>
<?php

View File

@ -55,7 +55,7 @@ if ( 'publish' == $post->post_status ) {
<div id="misc-publishing-actions">
<div class="misc-pub-section"><label for="post_status"><?php _e('Status:') ?></label>
<div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e('Status:') ?></label>
<span id="post-status-display">
<?php
switch ( $post->post_status ) {
@ -105,7 +105,7 @@ switch ( $post->post_status ) {
<?php } ?>
</div><!-- .misc-pub-section -->
<div class="misc-pub-section" id="visibility">
<div class="misc-pub-section misc-pub-visibility" id="visibility">
<?php _e('Visibility:'); ?> <span id="post-visibility-display"><?php
if ( 'private' == $post->post_status ) {
@ -174,7 +174,7 @@ if ( 0 != $post->ID ) {
if ( ! empty( $args['args']['revisions_count'] ) ) :
$revisions_to_keep = wp_revisions_to_keep( $post );
?>
<div class="misc-pub-section num-revisions">
<div class="misc-pub-section misc-pub-revisions">
<?php
if ( $revisions_to_keep > 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) {
echo '<span title="' . esc_attr( sprintf( __( 'Your site is configured to keep only the last %s revisions.' ),
@ -190,7 +190,7 @@ if ( ! empty( $args['args']['revisions_count'] ) ) :
<?php endif;
if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
<div class="misc-pub-section curtime">
<div class="misc-pub-section curtime misc-pub-curtime">
<span id="timestamp">
<?php printf($stamp, $date); ?></span>
<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a>
@ -278,7 +278,7 @@ function attachment_submit_meta_box( $post ) {
$stamp = __('Uploaded on: <b>%1$s</b>');
$date = date_i18n( $datef, strtotime( $post->post_date ) );
?>
<div class="misc-pub-section curtime">
<div class="misc-pub-section curtime misc-pub-curtime">
<span id="timestamp"><?php printf($stamp, $date); ?></span>
</div><!-- .misc-pub-section -->
@ -702,7 +702,7 @@ function link_submit_meta_box($link) {
</div>
<div id="misc-publishing-actions">
<div class="misc-pub-section">
<div class="misc-pub-section misc-pub-private">
<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>
</div>
</div>

View File

@ -1909,7 +1909,7 @@ final class WP_Internal_Pointers {
$content = '<h3>' . __( 'Compare Revisions' ) . '</h3>';
$content .= '<p>' . __( 'View, compare, and restore other versions of this content on the improved revisions screen.' ) . '</p>';
self::print_js( 'wp360_revisions', '.misc-pub-section.num-revisions', array(
self::print_js( 'wp360_revisions', '.misc-pub-section.misc-pub-revisions', array(
'content' => $content,
'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center', 'my' => is_rtl() ? 'left' : 'right-14px' ),
) );