Changeset 43571 for trunk/src/wp-admin/media.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/media.php
r42343 r43571 114 114 } 115 115 116 ?>116 ?> 117 117 118 118 <div class="wrap"> 119 119 <h1 class="wp-heading-inline"> 120 <?php121 echo esc_html( $title );122 ?>120 <?php 121 echo esc_html( $title ); 122 ?> 123 123 </h1> 124 124 125 <?php126 if ( current_user_can( 'upload_files' ) ) {127 ?>125 <?php 126 if ( current_user_can( 'upload_files' ) ) { 127 ?> 128 128 <a href="media-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a> 129 129 <?php } ?> … … 133 133 <form method="post" class="media-upload-form" id="media-single-form"> 134 134 <p class="submit" style="padding-bottom: 0;"> 135 <?php submit_button( __( 'Update Media' ), 'primary', 'save', false ); ?>135 <?php submit_button( __( 'Update Media' ), 'primary', 'save', false ); ?> 136 136 </p> 137 137 138 138 <div class="media-single"> 139 139 <div id="media-item-<?php echo $att_id; ?>" class="media-item"> 140 <?php 141 echo get_media_item( 142 $att_id, array( 143 'toggle' => false, 144 'send' => false, 145 'delete' => false, 146 'show_title' => false, 147 'errors' => ! empty( $errors[ $att_id ] ) ? $errors[ $att_id ] : null, 148 ) 149 ); 150 ?> 140 <?php 141 echo get_media_item( 142 $att_id, 143 array( 144 'toggle' => false, 145 'send' => false, 146 'delete' => false, 147 'show_title' => false, 148 'errors' => ! empty( $errors[ $att_id ] ) ? $errors[ $att_id ] : null, 149 ) 150 ); 151 ?> 151 152 </div> 152 153 </div> 153 154 154 <?php submit_button( __( 'Update Media' ), 'primary', 'save' ); ?>155 <?php submit_button( __( 'Update Media' ), 'primary', 'save' ); ?> 155 156 <input type="hidden" name="post_id" id="post_id" value="<?php echo isset( $post_id ) ? esc_attr( $post_id ) : ''; ?>" /> 156 157 <input type="hidden" name="attachment_id" id="attachment_id" value="<?php echo esc_attr( $att_id ); ?>" /> 157 158 <input type="hidden" name="action" value="editattachment" /> 158 <?php wp_original_referer_field( true, 'previous' ); ?>159 <?php wp_nonce_field( 'media-form' ); ?>159 <?php wp_original_referer_field( true, 'previous' ); ?> 160 <?php wp_nonce_field( 'media-form' ); ?> 160 161 161 162 </form> … … 163 164 </div> 164 165 165 <?php166 <?php 166 167 167 require( ABSPATH . 'wp-admin/admin-footer.php' );168 require( ABSPATH . 'wp-admin/admin-footer.php' ); 168 169 169 170 exit;
Note: See TracChangeset
for help on using the changeset viewer.