Change media directory to /media/
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
### HEAD
|
### HEAD
|
||||||
|
* Change media directory from `/assets/` to `/media/`
|
||||||
* Update to Bootstrap 2.3.2
|
* Update to Bootstrap 2.3.2
|
||||||
* Update to Google Universal Analytics
|
* Update to Google Universal Analytics
|
||||||
* Update to jQuery 1.10.1
|
* Update to jQuery 1.10.1
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Change permalink structure to `/%postname%/`. This is normally handled from the
|
|||||||
|
|
||||||
### Change uploads folder
|
### Change uploads folder
|
||||||
|
|
||||||
Change uploads folder to `/assets/` instead of `/wp-content/uploads/`. This is normally handled from the Media settings.
|
Change uploads folder to `/media/` instead of `/wp-content/uploads/`.
|
||||||
|
|
||||||
### Create navigation menu
|
### Create navigation menu
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ function roots_theme_activation_options_render_page() { ?>
|
|||||||
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
<option value="false"><?php echo _e('No', 'roots'); ?></option>
|
||||||
</select>
|
</select>
|
||||||
<br>
|
<br>
|
||||||
<small class="description"><?php printf(__('Change uploads folder to /assets/ instead of /wp-content/uploads/', 'roots')); ?></small>
|
<small class="description"><?php printf(__('Change uploads folder to /media/ instead of /wp-content/uploads/', 'roots')); ?></small>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -191,7 +191,7 @@ function roots_theme_activation_action() {
|
|||||||
|
|
||||||
update_option('uploads_use_yearmonth_folders', 0);
|
update_option('uploads_use_yearmonth_folders', 0);
|
||||||
if (!is_multisite()) {
|
if (!is_multisite()) {
|
||||||
update_option('upload_path', 'assets');
|
update_option('upload_path', 'media');
|
||||||
} else {
|
} else {
|
||||||
update_option('upload_path', '');
|
update_option('upload_path', '');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user