Make WordPress Core

Ticket #22333: 22333.3.patch

File 22333.3.patch, 6.4 KB (added by nofearinc, 11 years ago)

Adding few extra classes in other files, removing .num-revisions

  • wp-admin/includes/meta-boxes.php

     
    5555
    5656<div id="misc-publishing-actions">
    5757
    58 <div class="misc-pub-section"><label for="post_status"><?php _e('Status:') ?></label>
     58<div class="misc-pub-section misc-pub-post-status"><label for="post_status"><?php _e('Status:') ?></label>
    5959<span id="post-status-display">
    6060<?php
    6161switch ( $post->post_status ) {
     
    105105<?php } ?>
    106106</div><!-- .misc-pub-section -->
    107107
    108 <div class="misc-pub-section" id="visibility">
     108<div class="misc-pub-section misc-pub-visibility" id="visibility">
    109109<?php _e('Visibility:'); ?> <span id="post-visibility-display"><?php
    110110
    111111if ( 'private' == $post->post_status ) {
     
    174174if ( ! empty( $args['args']['revisions_count'] ) ) :
    175175        $revisions_to_keep = wp_revisions_to_keep( $post );
    176176?>
    177 <div class="misc-pub-section num-revisions">
     177<div class="misc-pub-section misc-pub-revisions">
    178178<?php
    179179        if ( $revisions_to_keep > 0 && $revisions_to_keep <= $args['args']['revisions_count'] ) {
    180180                echo '<span title="' . esc_attr( sprintf( __( 'Your site is configured to keep only the last %s revisions.' ),
     
    190190<?php endif;
    191191
    192192if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
    193 <div class="misc-pub-section curtime">
     193<div class="misc-pub-section curtime misc-pub-curtime">
    194194        <span id="timestamp">
    195195        <?php printf($stamp, $date); ?></span>
    196196        <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a>
     
    278278        $stamp = __('Uploaded on: <b>%1$s</b>');
    279279        $date = date_i18n( $datef, strtotime( $post->post_date ) );
    280280        ?>
    281         <div class="misc-pub-section curtime">
     281        <div class="misc-pub-section curtime misc-pub-curtime">
    282282                <span id="timestamp"><?php printf($stamp, $date); ?></span>
    283283        </div><!-- .misc-pub-section -->
    284284
     
    702702</div>
    703703
    704704<div id="misc-publishing-actions">
    705 <div class="misc-pub-section">
     705<div class="misc-pub-section misc-pub-private">
    706706        <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>
    707707</div>
    708708</div>
  • wp-admin/includes/media.php

     
    24322432
    24332433        $att_url = wp_get_attachment_url( $post->ID );
    24342434?>
    2435         <div class="misc-pub-section">
     2435        <div class="misc-pub-section misc-pub-attachment">
    24362436                        <label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
    24372437                        <input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" value="<?php echo esc_attr($att_url); ?>" />
    24382438        </div>
    2439         <div class="misc-pub-section">
     2439        <div class="misc-pub-section misc-pub-filename">
    24402440                <?php _e( 'File name:' ); ?> <strong><?php echo $filename; ?></strong>
    24412441        </div>
    2442         <div class="misc-pub-section">
     2442        <div class="misc-pub-section misc-pub-filetype">
    24432443                <?php _e( 'File type:' ); ?> <strong><?php
    24442444                        if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
    24452445                                echo esc_html( strtoupper( $matches[1] ) );
     
    24602460
    24612461                foreach ( $fields as $key => $label ):
    24622462                        if ( ! empty( $meta[$key] ) ) : ?>
    2463                 <div class="misc-pub-section">
     2463                <div class="misc-pub-section misc-pub-mime-meta">
    24642464                        <?php echo $label ?> <strong><?php echo esc_html( $meta[$key] ); ?></strong>
    24652465                </div>
    24662466        <?php
     
    24682468                endforeach;
    24692469
    24702470                if ( ! empty( $meta['bitrate'] ) ) : ?>
    2471                 <div class="misc-pub-section">
     2471                <div class="misc-pub-section misc-pub-bitrate">
    24722472                        <?php _e( 'Bitrate:' ); ?> <strong><?php
    24732473                                echo round( $meta['bitrate'] / 1000 ), 'kb/s';
    24742474
     
    24872487
    24882488                foreach ( $audio_fields as $key => $label ):
    24892489                        if ( ! empty( $meta['audio'][$key] ) ) : ?>
    2490                 <div class="misc-pub-section">
     2490                <div class="misc-pub-section misc-pub-audio">
    24912491                        <?php echo $label; ?> <strong><?php echo esc_html( $meta['audio'][$key] ); ?></strong>
    24922492                </div>
    24932493        <?php
     
    24972497        endif;
    24982498
    24992499        if ( $media_dims ) : ?>
    2500         <div class="misc-pub-section">
     2500        <div class="misc-pub-section misc-pub-dimensions">
    25012501                <?php _e( 'Dimensions:' ); ?> <strong><?php echo $media_dims; ?></strong>
    25022502        </div>
    25032503<?php
  • wp-admin/edit-form-comment.php

     
    8585
    8686<div id="misc-publishing-actions">
    8787
    88 <div class="misc-pub-section" id="comment-status-radio">
     88<div class="misc-pub-section misc-pub-comment-status" id="comment-status-radio">
    8989<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 />
    9090<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 />
    9191<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>
    9292</div>
    9393
    94 <div class="misc-pub-section curtime">
     94<div class="misc-pub-section curtime misc-pub-curtime">
    9595<?php
    9696// translators: Publish box date format, see http://php.net/date
    9797$datef = __( 'M j, Y @ G:i' );
  • wp-admin/includes/template.php

     
    19091909                $content  = '<h3>' . __( 'Compare Revisions' ) . '</h3>';
    19101910                $content .= '<p>' . __( 'View, compare, and restore other versions of this content on the improved revisions screen.' ) . '</p>';
    19111911
    1912                 self::print_js( 'wp360_revisions', '.misc-pub-section.num-revisions', array(
     1912                self::print_js( 'wp360_revisions', '.misc-pub-section.misc-pub-revisions', array(
    19131913                        'content' => $content,
    19141914                        'position' => array( 'edge' => is_rtl() ? 'left' : 'right', 'align' => 'center', 'my' => is_rtl() ? 'left' : 'right-14px' ),
    19151915                ) );