Ticket #33551: 33551.diff
File 33551.diff, 1.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/template.php
1313 1313 if ( ! isset( $wp_settings_sections[$page] ) ) 1314 1314 return; 1315 1315 1316 /** 1317 * Filters settings sections before they are displayed. 1318 * 1319 * @since 4.4.0 1320 * 1321 * @param array $sections Array of all settings sections added to the specified page. 1322 * @param string $page Slug of the page where the sections are displayed. 1323 */ 1324 $wp_settings_sections[ $page ] = apply_filters( 'settings_sections', $wp_settings_sections[ $page ], $page ); 1325 1316 1326 foreach ( (array) $wp_settings_sections[$page] as $section ) { 1317 1327 if ( $section['title'] ) 1318 1328 echo "<h3>{$section['title']}</h3>\n"; … … 1348 1358 if ( ! isset( $wp_settings_fields[$page][$section] ) ) 1349 1359 return; 1350 1360 1361 /** 1362 * Filters settings fields before they are displayed. 1363 * 1364 * @since 4.4.0 1365 * 1366 * @param array $fields Array of all settings fields added to the specified section. 1367 * @param string $page Slug of the page where the fields are displayed. 1368 * @param string $section Slug of the section in which the fields are displayed. 1369 */ 1370 $wp_settings_fields[ $page ][ $section ] = apply_filters( 'settings_fields', $wp_settings_fields[ $page ][ $section ], $page, $section ); 1371 1351 1372 foreach ( (array) $wp_settings_fields[$page][$section] as $field ) { 1352 1373 $class = ''; 1353 1374