Make WordPress Core

Changeset 25297


Ignore:
Timestamp:
09/07/2013 04:19:39 PM (11 years ago)
Author:
helen
Message:

Add dynamic classes for attachment metadata submitbox sections. see #22333, #25171.

File:
1 edited

Legend:

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

    r25296 r25297  
    24802480        foreach ( $fields as $key => $label ):
    24812481            if ( ! empty( $meta[$key] ) ) : ?>
    2482         <div class="misc-pub-section misc-pub-mime-meta">
     2482        <div class="misc-pub-section misc-pub-mime-meta misc-pub-<?php echo sanitize_html_class( $key ); ?>">
    24832483            <?php echo $label ?> <strong><?php echo esc_html( $meta[$key] ); ?></strong>
    24842484        </div>
     
    25222522        foreach ( $audio_fields as $key => $label ):
    25232523            if ( ! empty( $meta['audio'][$key] ) ) : ?>
    2524         <div class="misc-pub-section misc-pub-audio">
     2524        <div class="misc-pub-section misc-pub-audio misc-pub-<?php echo sanitize_html_class( $key ); ?>">
    25252525            <?php echo $label; ?> <strong><?php echo esc_html( $meta['audio'][$key] ); ?></strong>
    25262526        </div>
Note: See TracChangeset for help on using the changeset viewer.