- 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-video.php
r53136 r56597 229 229 <script type="text/html" id="tmpl-wp-media-widget-video-preview"> 230 230 <# if ( data.error && 'missing_attachment' === data.error ) { #> 231 <div class="notice notice-error notice-alt notice-missing-attachment"> 232 <p><?php echo $this->l10n['missing_attachment']; ?></p> 233 </div> 231 <?php 232 wp_admin_notice( 233 $this->l10n['missing_attachment'], 234 array( 235 'type' => 'error', 236 'additional_classes' => array( 'notice-alt', 'notice-missing-attachment' ), 237 ) 238 ); 239 ?> 234 240 <# } else if ( data.error && 'unsupported_file_type' === data.error ) { #> 235 <div class="notice notice-error notice-alt notice-missing-attachment"> 236 <p><?php echo $this->l10n['unsupported_file_type']; ?></p> 237 </div> 241 <?php 242 wp_admin_notice( 243 $this->l10n['unsupported_file_type'], 244 array( 245 'type' => 'error', 246 'additional_classes' => array( 'notice-alt', 'notice-missing-attachment' ), 247 ) 248 ); 249 ?> 238 250 <# } else if ( data.error ) { #> 239 <div class="notice notice-error notice-alt"> 240 <p><?php _e( 'Unable to preview media due to an unknown error.' ); ?></p> 241 </div> 251 <?php 252 wp_admin_notice( 253 __( 'Unable to preview media due to an unknown error.' ), 254 array( 255 'type' => 'error', 256 'additional_classes' => array( 'notice-alt' ), 257 ) 258 ); 259 ?> 242 260 <# } else if ( data.is_oembed && data.model.poster ) { #> 243 261 <a href="{{ data.model.src }}" target="_blank" class="media-widget-video-link">
Note: See TracChangeset
for help on using the changeset viewer.