Ticket #45725: enhance_uploads_directory_path.diff
File enhance_uploads_directory_path.diff, 810 bytes (added by , 7 years ago) |
---|
-
functions.php
636 636 . '(?:' 637 637 . '\([\w\d]+\)|' 638 638 . '(?:' 639 . "[^`!()\[\]{};:'\".,<> «»“”‘’\s]|"639 . "[^`!()\[\]{};:'\".,<>«»“â€â€˜â€™\s]|" 640 640 . '(?:[:]\d+)?/?' 641 641 . ')+' 642 642 . ')' … … 2134 2134 * We also sometimes obey UPLOADS when rewriting is enabled -- see the next block. 2135 2135 */ 2136 2136 if ( defined( 'UPLOADS' ) && ! ( is_multisite() && get_site_option( 'ms_files_rewriting' ) ) ) { 2137 $dir = ABSPATH . UPLOADS;2137 $dir = defined( 'UPLOADS_DIR' ) ? UPLOADS_DIR : ( defined( 'INDEX_ABSPATH' ) ? SITE_ABSPATH : ABSPATH ) . UPLOADS ; 2138 2138 $url = trailingslashit( $siteurl ) . UPLOADS; 2139 2139 } 2140 2140