WordPress.org

Make WordPress Core

Ticket #21630: template.patch

File template.patch, 637 bytes (added by lightningspirit, 6 years ago)
  • template.php

     
    11161116        foreach ( (array) $wp_settings_sections[$page] as $section ) {
    11171117                if ( $section['title'] )
    11181118                        echo "<h3>{$section['title']}</h3>\n";
    1119                 call_user_func($section['callback'], $section);
     1119               
     1120                if ( $section['callback'] )
     1121                        call_user_func($section['callback'], $section);
     1122               
    11201123                if ( !isset($wp_settings_fields) || !isset($wp_settings_fields[$page]) || !isset($wp_settings_fields[$page][$section['id']]) )
    11211124                        continue;
    11221125                echo '<table class="form-table">';