File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change 62
62
63
63
// Disable WordPress auto-paragraphing for posts, except on actual blog sites
64
64
remove_filter ( 'the_content ' , 'wpautop ' );
65
+
66
+ add_filter ( 'option_uploads_use_yearmonth_folders ' , '__return_false ' );
67
+
68
+ add_filter ( 'upload_dir ' , function ( $ upload_dir ) {
69
+ if ( defined ( 'UPLOADS ' ) ) {
70
+ $ upload_dir ['path ' ] = $ upload_dir ['basedir ' ] = UPLOADS ;
71
+ } else {
72
+ $ upload_dir ['path ' ] = $ upload_dir ['basedir ' ] = WP_CONTENT_DIR . '/uploads ' ;
73
+ }
74
+
75
+ return $ upload_dir ;
76
+ });
65
77
}
66
78
67
79
// Disable WordPress text transformations (smart quotes, etc.) for posts.
@@ -128,17 +140,6 @@ function jquery_unfiltered_html_for_term_descriptions() {
128
140
return $ classes ;
129
141
});
130
142
131
- add_filter ( 'option_uploads_use_yearmonth_folders ' , '__return_false ' );
132
- add_filter ( 'upload_dir ' , function ( $ upload_dir ) {
133
- if ( defined ( 'UPLOADS ' ) ) {
134
- $ upload_dir ['path ' ] = $ upload_dir ['basedir ' ] = UPLOADS ;
135
- } else {
136
- $ upload_dir ['path ' ] = $ upload_dir ['basedir ' ] = WP_CONTENT_DIR . '/uploads ' ;
137
- }
138
-
139
- return $ upload_dir ;
140
- });
141
-
142
143
add_filter ( 'get_terms ' , function ( $ terms , $ taxonomies , $ args ) {
143
144
if ( !isset ( $ args [ 'orderby ' ] ) || $ args [ 'orderby ' ] !== 'natural ' ) {
144
145
return $ terms ;
You can’t perform that action at this time.
0 commit comments