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

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


git-svn-id: http://core.svn.wordpress.org/trunk@25260 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2013-09-07 16:20:09 +00:00
parent 89421ddeaa
commit 304426cece
1 changed files with 2 additions and 2 deletions

View File

@ -2479,7 +2479,7 @@ function attachment_submitbox_metadata() {
foreach ( $fields as $key => $label ):
if ( ! empty( $meta[$key] ) ) : ?>
<div class="misc-pub-section misc-pub-mime-meta">
<div class="misc-pub-section misc-pub-mime-meta misc-pub-<?php echo sanitize_html_class( $key ); ?>">
<?php echo $label ?> <strong><?php echo esc_html( $meta[$key] ); ?></strong>
</div>
<?php
@ -2521,7 +2521,7 @@ function attachment_submitbox_metadata() {
foreach ( $audio_fields as $key => $label ):
if ( ! empty( $meta['audio'][$key] ) ) : ?>
<div class="misc-pub-section misc-pub-audio">
<div class="misc-pub-section misc-pub-audio misc-pub-<?php echo sanitize_html_class( $key ); ?>">
<?php echo $label; ?> <strong><?php echo esc_html( $meta['audio'][$key] ); ?></strong>
</div>
<?php