Changeset 24734 for trunk/wp-admin/includes/template.php
- Timestamp:
- 07/18/2013 05:42:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r24680 r24734 1001 1001 <?php 1002 1002 $i = 0; 1003 $first_open = false; 1003 1004 do { 1004 1005 if ( ! isset( $wp_meta_boxes ) || ! isset( $wp_meta_boxes[$page] ) || ! isset( $wp_meta_boxes[$page][$context] ) ) … … 1012 1013 $i++; 1013 1014 $hidden_class = in_array( $box['id'], $hidden ) ? 'hide-if-js' : ''; 1015 1016 $open_class = ''; 1017 if ( ! $first_open && empty( $hidden_class ) ) { 1018 $first_open = true; 1019 $open_class = 'open'; 1020 } 1014 1021 ?> 1015 <li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">1022 <li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>"> 1016 1023 <h3 class="accordion-section-title hndle" tabindex="0" title="<?php echo esc_attr( $box['title'] ); ?>"><?php echo esc_html( $box['title'] ); ?></h3> 1017 1024 <div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>">
Note: See TracChangeset
for help on using the changeset viewer.