WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/22/2013 03:23:41 PM (7 years ago)
Author:
helen
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r25025 r25083  
    24342434    $att_url = wp_get_attachment_url( $post->ID );
    24352435?>
    2436     <div class="misc-pub-section">
     2436    <div class="misc-pub-section misc-pub-attachment">
    24372437            <label for="attachment_url"><?php _e( 'File URL:' ); ?></label>
    24382438            <input type="text" class="widefat urlfield" readonly="readonly" name="attachment_url" value="<?php echo esc_attr($att_url); ?>" />
    24392439    </div>
    2440     <div class="misc-pub-section">
     2440    <div class="misc-pub-section misc-pub-filename">
    24412441        <?php _e( 'File name:' ); ?> <strong><?php echo $filename; ?></strong>
    24422442    </div>
    2443     <div class="misc-pub-section">
     2443    <div class="misc-pub-section misc-pub-filetype">
    24442444        <?php _e( 'File type:' ); ?> <strong><?php
    24452445            if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
     
    24622462        foreach ( $fields as $key => $label ):
    24632463            if ( ! empty( $meta[$key] ) ) : ?>
    2464         <div class="misc-pub-section">
     2464        <div class="misc-pub-section misc-pub-mime-meta">
    24652465            <?php echo $label ?> <strong><?php echo esc_html( $meta[$key] ); ?></strong>
    24662466        </div>
     
    24702470
    24712471        if ( ! empty( $meta['bitrate'] ) ) : ?>
    2472         <div class="misc-pub-section">
     2472        <div class="misc-pub-section misc-pub-bitrate">
    24732473            <?php _e( 'Bitrate:' ); ?> <strong><?php
    24742474                echo round( $meta['bitrate'] / 1000 ), 'kb/s';
     
    24892489        foreach ( $audio_fields as $key => $label ):
    24902490            if ( ! empty( $meta['audio'][$key] ) ) : ?>
    2491         <div class="misc-pub-section">
     2491        <div class="misc-pub-section misc-pub-audio">
    24922492            <?php echo $label; ?> <strong><?php echo esc_html( $meta['audio'][$key] ); ?></strong>
    24932493        </div>
     
    24992499
    25002500    if ( $media_dims ) : ?>
    2501     <div class="misc-pub-section">
     2501    <div class="misc-pub-section misc-pub-dimensions">
    25022502        <?php _e( 'Dimensions:' ); ?> <strong><?php echo $media_dims; ?></strong>
    25032503    </div>
Note: See TracChangeset for help on using the changeset viewer.