Changeset 13197 for trunk/wp-admin/includes/template.php
- Timestamp:
- 02/18/2010 07:43:44 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r13177 r13197 3126 3126 * 3127 3127 * @param string $setting Slug title of the setting to which this error applies 3128 * @param string $ idSlug-name to identify the error. Used as part of 'id' attribute in HTML output.3128 * @param string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. 3129 3129 * @param string $message The formatted message text to display to the user (will be shown inside styled <div> and <p>) 3130 3130 * @param string $type The type of message it is, controls HTML class. Use 'error' or 'updated'. 3131 3131 */ 3132 function add_settings_error( $setting, $ id, $message, $type = 'error' ) {3132 function add_settings_error( $setting, $code, $message, $type = 'error' ) { 3133 3133 global $wp_settings_errors; 3134 3134 … … 3138 3138 $new_error = array( 3139 3139 'setting' => $setting, 3140 ' title' => $title, // @todo $title not defined. Use $id instead?3140 'code' => $code, 3141 3141 'message' => $message, 3142 3142 'type' => $type … … 3226 3226 $output = ''; 3227 3227 foreach ( $settings_errors as $key => $details ) { 3228 $css_id = 'setting-error-' . $details[' title'];3228 $css_id = 'setting-error-' . $details['code']; 3229 3229 $css_class = $details['type'] . ' fade settings-error'; 3230 3230 $output .= "<div id='$css_id' class='$css_class'> \n";
Note: See TracChangeset
for help on using the changeset viewer.