Changeset 36565 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 02/17/2016 10:51:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r36240 r36565 896 896 global $_wp_additional_image_sizes; 897 897 898 // Save the current setting for uploads folders899 $uploads_use_yearmonth_folders = get_option( 'uploads_use_yearmonth_folders' );900 901 898 // Disable date organized uploads 902 update_option( 'uploads_use_yearmonth_folders', 0);899 add_filter( 'upload_dir', '_upload_dir_no_subdir' ); 903 900 904 901 // Make an image. … … 938 935 // Remove the attachment 939 936 wp_delete_attachment( $id ); 940 941 // Leave the uploads option the way you found it. 942 update_option( 'uploads_use_yearmonth_folders', $uploads_use_yearmonth_folders ); 937 remove_filter( 'upload_dir', '_upload_dir_no_subdir' ); 943 938 } 944 939
Note: See TracChangeset
for help on using the changeset viewer.