Changeset 43571 for trunk/src/wp-admin/options-media.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-media.php
r42864 r43571 97 97 */ 98 98 if ( isset( $GLOBALS['wp_settings']['media']['embeds'] ) ) : 99 ?>99 ?> 100 100 <h2 class="title"><?php _e( 'Embeds' ); ?></h2> 101 101 <table class="form-table"> 102 <?php do_settings_fields( 'media', 'embeds' ); ?>102 <?php do_settings_fields( 'media', 'embeds' ); ?> 103 103 </table> 104 104 <?php endif; ?> … … 107 107 <h2 class="title"><?php _e( 'Uploading Files' ); ?></h2> 108 108 <table class="form-table"> 109 <?php110 // If upload_url_path is not the default (empty), and upload_path is not the default ('wp-content/uploads' or empty)111 if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) :112 ?>109 <?php 110 // If upload_url_path is not the default (empty), and upload_path is not the default ('wp-content/uploads' or empty) 111 if ( get_option( 'upload_url_path' ) || ( get_option( 'upload_path' ) != 'wp-content/uploads' && get_option( 'upload_path' ) ) ) : 112 ?> 113 113 <tr> 114 114 <th scope="row"><label for="upload_path"><?php _e( 'Store uploads in this folder' ); ?></label></th> 115 115 <td><input name="upload_path" type="text" id="upload_path" value="<?php echo esc_attr( get_option( 'upload_path' ) ); ?>" class="regular-text code" /> 116 116 <p class="description"> 117 <?php118 /* translators: %s: wp-content/uploads */119 printf( __( 'Default is %s' ), '<code>wp-content/uploads</code>' );120 ?>117 <?php 118 /* translators: %s: wp-content/uploads */ 119 printf( __( 'Default is %s' ), '<code>wp-content/uploads</code>' ); 120 ?> 121 121 </p> 122 122 </td> … … 137 137 <label for="uploads_use_yearmonth_folders"> 138 138 <input name="uploads_use_yearmonth_folders" type="checkbox" id="uploads_use_yearmonth_folders" value="1"<?php checked( '1', get_option( 'uploads_use_yearmonth_folders' ) ); ?> /> 139 <?php _e( 'Organize my uploads into month- and year-based folders' ); ?>139 <?php _e( 'Organize my uploads into month- and year-based folders' ); ?> 140 140 </label> 141 141 </td> 142 142 </tr> 143 143 144 <?php do_settings_fields( 'media', 'uploads' ); ?>144 <?php do_settings_fields( 'media', 'uploads' ); ?> 145 145 </table> 146 146 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.