Changeset 64347 for trunk/src/wp-includes/functions.php
- Timestamp:
- 10/14/2026 07:34:43 PM (43 hours ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r64305 r64347 9346 9346 $args = apply_filters( 'wp_admin_notice_args', $args, $message ); 9347 9347 9348 // Unique ID is intended for internal use, and is not a filterable argument.9349 $unique_id = wp_unique_prefixed_id( 'wp-admin-notice-' );9350 $args['notice_id'] = $unique_id;9351 9352 9348 $wrap_with_p = false !== $args['paragraph_wrap']; 9353 9349 $wrap_opener = $wrap_with_p ? '<p>' : ''; … … 9359 9355 $trimmed_id = trim( $args['id'] ); 9360 9356 9361 $html_builder->set_attribute( 'data-id', $unique_id );9362 9357 if ( '' !== $trimmed_id ) { 9363 9358 $html_builder->set_attribute( 'id', $trimmed_id ); 9364 } else { 9365 $html_builder->set_attribute( 'id', $unique_id ); 9366 } 9367 } else { 9368 $html_builder->set_attribute( 'data-id', $unique_id ); 9369 $html_builder->set_attribute( 'id', $unique_id ); 9359 } 9370 9360 } 9371 9361
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)