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

git-svn-id: https://develop.svn.wordpress.org/trunk@25297 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2013-09-07 16:19:39 +00:00
parent e9173ef83b
commit ed6316d44b

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