- Timestamp:
- 09/16/2023 09:47:22 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets/class-wp-widget-media-image.php
r56154 r56597 364 364 <script type="text/html" id="tmpl-wp-media-widget-image-preview"> 365 365 <# if ( data.error && 'missing_attachment' === data.error ) { #> 366 <div class="notice notice-error notice-alt notice-missing-attachment"> 367 <p><?php echo $this->l10n['missing_attachment']; ?></p> 368 </div> 366 <?php 367 wp_admin_notice( 368 $this->l10n['missing_attachment'], 369 array( 370 'type' => 'error', 371 'additional_classes' => array( 'notice-alt', 'notice-missing-attachment' ), 372 ) 373 ); 374 ?> 369 375 <# } else if ( data.error ) { #> 370 <div class="notice notice-error notice-alt"> 371 <p><?php _e( 'Unable to preview media due to an unknown error.' ); ?></p> 372 </div> 376 <?php 377 wp_admin_notice( 378 __( 'Unable to preview media due to an unknown error.' ), 379 array( 380 'type' => 'error', 381 'additional_classes' => array( 'notice-alt' ), 382 ) 383 ); 384 ?> 373 385 <# } else if ( data.url ) { #> 374 386 <img class="attachment-thumb" src="{{ data.url }}" draggable="false" alt="{{ data.alt }}"
Note: See TracChangeset
for help on using the changeset viewer.