Changeset 19158 for trunk/wp-includes/class-wp-admin-bar.php
- Timestamp:
- 11/04/2011 05:41:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-admin-bar.php
r19130 r19158 71 71 $args = array_merge( array( 'parent' => func_get_arg(0) ), func_get_arg(2) ); 72 72 73 // Ensure we have a valid ID andtitle.74 if ( empty( $args['title'] ) || empty( $args['id'] ))73 // Ensure we have a valid title. 74 if ( empty( $args['title'] ) ) 75 75 return false; 76 77 if ( empty( $args['id'] ) ) { 78 _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3' ); 79 $args['id'] = esc_attr( sanitize_title( trim( $args['title'] ) ) ); 80 } 76 81 77 82 $defaults = array(
Note: See TracChangeset
for help on using the changeset viewer.