Changeset 21742
- Timestamp:
- 09/04/2012 08:55:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r21735 r21742 1107 1107 * @param string $page The slug name of the page whos settings sections you want to output 1108 1108 */ 1109 function do_settings_sections( $page) {1109 function do_settings_sections( $page ) { 1110 1110 global $wp_settings_sections, $wp_settings_fields; 1111 1111 1112 if ( ! isset($wp_settings_sections) || !isset($wp_settings_sections[$page]) )1112 if ( ! isset( $wp_settings_sections ) || !isset( $wp_settings_sections[$page] ) ) 1113 1113 return; 1114 1114 … … 1116 1116 if ( $section['title'] ) 1117 1117 echo "<h3>{$section['title']}</h3>\n"; 1118 call_user_func($section['callback'], $section); 1119 if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) ) 1118 1119 if ( $section['callback'] ) 1120 call_user_func( $section['callback'], $section ); 1121 1122 if ( ! isset( $wp_settings_fields ) || !isset( $wp_settings_fields[$page] ) || !isset( $wp_settings_fields[$page][$section['id']] ) ) 1120 1123 continue; 1121 1124 echo '<table class="form-table">'; 1122 do_settings_fields( $page, $section['id']);1125 do_settings_fields( $page, $section['id'] ); 1123 1126 echo '</table>'; 1124 1127 }
Note: See TracChangeset
for help on using the changeset viewer.