Changeset 64282 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/10/2026 02:18:37 PM (3 days ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r64253 r64282 9343 9343 $args = apply_filters( 'wp_admin_notice_args', $args, $message ); 9344 9344 9345 // Unique ID is intended for internal use, and is not a filterable argument. 9346 $unique_id = wp_unique_prefixed_id( 'wp-admin-notice-' ); 9347 $args['notice_id'] = $unique_id; 9348 9345 9349 $wrap_with_p = false !== $args['paragraph_wrap']; 9346 9350 $wrap_opener = $wrap_with_p ? '<p>' : ''; … … 9352 9356 $trimmed_id = trim( $args['id'] ); 9353 9357 9358 $html_builder->set_attribute( 'data-id', $unique_id ); 9354 9359 if ( '' !== $trimmed_id ) { 9355 9360 $html_builder->set_attribute( 'id', $trimmed_id ); 9356 } 9361 } else { 9362 $html_builder->set_attribute( 'id', $unique_id ); 9363 } 9364 } else { 9365 $html_builder->set_attribute( 'data-id', $unique_id ); 9366 $html_builder->set_attribute( 'id', $unique_id ); 9357 9367 } 9358 9368
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)