Ticket #28672: 28672.3.diff
File 28672.3.diff, 1.2 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/template.php
1313 1313 function do_settings_sections( $page ) { 1314 1314 global $wp_settings_sections, $wp_settings_fields; 1315 1315 1316 if ( ! isset( $wp_settings_sections[$page] ) ) 1317 return; 1316 if ( ! isset( $wp_settings_sections[$page] ) ) { 1317 /* translators: settings page slug */ 1318 $message = sprintf( __( "The '%s' settings page is not defined." ), $page ); 1319 _doing_it_wrong( __FUNCTION__, $message, '4.4' ); 1320 } 1318 1321 1319 1322 foreach ( (array) $wp_settings_sections[$page] as $section ) { 1320 1323 if ( $section['title'] ) … … 1348 1351 function do_settings_fields($page, $section) { 1349 1352 global $wp_settings_fields; 1350 1353 1351 if ( ! isset( $wp_settings_fields[$page][$section] ) ) 1352 return; 1354 if ( ! isset( $wp_settings_fields[$page][$section] ) ) { 1355 /* translators: settings section slug */ 1356 $message = sprintf( __( "The '%s' settings section is not defined." ), $section ); 1357 _doing_it_wrong( __FUNCTION__, $message, '4.4' ); 1358 } 1353 1359 1354 1360 foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { 1355 1361 $class = '';