Changeset 18632 for trunk/wp-admin/includes/template.php
- Timestamp:
- 09/03/2011 02:18:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r18607 r18632 898 898 if ( empty($priority) ) { 899 899 $priority = $a_priority; 900 // else if we're adding to the sorted prior tiy, we don't know the title or callback. Glab them from the previously added context/priority.900 // else if we're adding to the sorted priority, we don't know the title or callback. Grab them from the previously added context/priority. 901 901 } elseif ( 'sorted' == $priority ) { 902 902 $title = $wp_meta_boxes[$page][$a_context][$a_priority][$id]['title']; … … 1110 1110 * 1111 1111 * The $callback argument should be the name of a function that echoes out the 1112 * html input tags for this setting field. Use get_option() to retri ve existing1112 * html input tags for this setting field. Use get_option() to retrieve existing 1113 1113 * values to show. 1114 1114 * … … 1121 1121 * @param string $callback Function that fills the field with the desired form inputs. The function should echo its output. 1122 1122 * @param string $page The slug-name of the settings page on which to show the section (general, reading, writing, ...). 1123 * @param string $section The slug-name of the section of the settings spage in which to show the box (default, ...).1123 * @param string $section The slug-name of the section of the settings page in which to show the box (default, ...). 1124 1124 * @param array $args Additional arguments 1125 1125 */ … … 1275 1275 1276 1276 // If settings were passed back from options.php then use them 1277 // Ignore transients if $sanitize is true, we don t'want the old values anyway1277 // Ignore transients if $sanitize is true, we don't want the old values anyway 1278 1278 if ( isset($_GET['settings-updated']) && $_GET['settings-updated'] && get_transient('settings_errors') ) { 1279 1279 $settings_errors = get_transient('settings_errors'); … … 2160 2160 * @param array|string $other_attributes Other attributes that should be output with the button, 2161 2161 * mapping attributes to their values, such as array( 'tabindex' => '1' ). 2162 * These attributes will be ou put as attribute="value", such as tabindex="1".2162 * These attributes will be output as attribute="value", such as tabindex="1". 2163 2163 * Defaults to no other attributes. Other attributes can also be provided as a 2164 2164 * string such as 'tabindex="1"', though the array format is typically cleaner. … … 2181 2181 * @param array|string $other_attributes Other attributes that should be output with the button, 2182 2182 * mapping attributes to their values, such as array( 'tabindex' => '1' ). 2183 * These attributes will be ou put as attribute="value", such as tabindex="1".2183 * These attributes will be output as attribute="value", such as tabindex="1". 2184 2184 * Defaults to no other attributes. Other attributes can also be provided as a 2185 2185 * string such as 'tabindex="1"', though the array format is typically cleaner.
Note: See TracChangeset
for help on using the changeset viewer.