Changeset 53193
- Timestamp:
- 04/17/2022 02:08:54 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/menu.php
r47848 r53193 188 188 189 189 /** 190 * @param string $ add191 * @param string $class 190 * @param string $class_to_add 191 * @param string $classes 192 192 * @return string 193 193 */ 194 function add_cssclass( $add, $class ) { 195 $class = empty( $class ) ? $add : $class .= ' ' . $add; 196 return $class; 194 function add_cssclass( $class_to_add, $classes ) { 195 if ( empty( $classes ) ) { 196 return $class_to_add; 197 } 198 199 return $classes . ' ' . $class_to_add; 197 200 } 198 201 … … 352 355 353 356 $menu = add_menu_classes( $menu ); 357
Note: See TracChangeset
for help on using the changeset viewer.