The forward slash works on every operating system supported by PHP. Yes, on Windows too. It is also more readable and easier to type, so there is no need to use the constant.
See the tickets #20849 and #15598 for related discussion on Trac.
Related Posts:
- Compare 2 directories in windows
- issues including a file from a plugin directory
- Theme in wp-content but my index.php search theme files in root
- Error in the paths of one of the plugins when changing the plugin directory
- PHP – Move a file into a different folder on the server
- What is the difference between \ and \\ in file path
- How to get the path to the current theme?
- get_template_directory() vs bloginfo( ‘template_directory’ ) vs TEMPLATEPATH
- Change upload directory for PDF files
- What’s the purpose of index.php in wp-content directory? [duplicate]
- How do I serve static content on same domain as WordPress
- Permissions to wp-content folder in Windows Server 2012
- Can I change get_template_directory_uri()?
- How to get WordPress to save upload file beyond web root [closed]
- Custom Post Type Archive in Sub Folder
- How to point my domain to a WordPress install in a sub-directory?
- Can I put my WordPress theme files in another folder?
- Multiple domains for multiple single installs
- How to Create Hierarchical Directory for Nation Wide Mental Health Services
- How to create new folder in wp-content root same like upload folder?
- How do I set up single sign on for multiple WP installs across the same domain?
- How to copy one folder to another folder recursively
- Disable to create folders for every years and months in uploads folder
- local folder permissions vs chown — security considerations
- How is a student directory best handled in WordPress?
- Creating directory in uploads: mkdir vs wp_mkdir_p
- How would you detect if WordPress is installed in a subdirectory (not root)?
- Cant get wordpress to work on subdirectory
- Two identical wp-includes directories on server
- What is the recommend directory in which I can upload a new library?
- Second wordpress installation on subdirectory
- Remove ‘wp-content/themes/themename/’ from Image path
- Install theme on multiple domains
- How to create an Online Dictionary Using WordPress? [closed]
- Include file from higher level
- how to create a folder in wordpress
- Components used in Themes and Plugins: How to get file URL?
- wordpress blog in subdirectory or subdomain
- Accessing WordPress installation in its own directory at domain root
- Right permissions to WordPress directory
- Can I install a new WordPress site inside a sub-directory of an existing WordPress site?
- Template Hierarchy tag-{slug}.php directory
- more than one upload directory?
- Change directory of javascript files
- get_query_var not working for subdirectory
- How can I have nginx serve WordPress at /blog?
- Subdomain redirects to subdirectory [closed]
- How to make use of WP templates within a nested site structure?
- Plugins will only be installed with 777 on folder. Solution?
- How to create directory using username within theme
- 2 WordPress sites in 2 sibling folders on one domain
- Main WP page and subfolder WP with the same name. How to prioritize for main Wp
- Auto-create a post with last 10 images in WordPress directory
- Copy Folder to another Folder using WP Filesystem
- Unable to update WordPress or install plugins/themes
- Session Expired when WordPress Address (URL) and Site Address (URL) are different
- After changing wp from subdirectory to root I can’t preview any changes to a page or post
- Moved WordPress site to new server, directory permissions not working correctly
- Moving from one test to multiple final environments
- WordPress in a sub directory but not images
- Should I install blog on subdomain or subdirectory?
- wp_enqueue_script not loading my custom js file
- Hiding Directory Path
- Moving WP from /blog to root directory
- How to get path or root of plugin folder, not file or dir?
- Should custom directories be created under the wp-content directory?
- Use of Folders within WordPress
- Folder keeps popping up in my public_html directory and overriding WordPress page structure
- Hosting my WordPress site out of a subdirectory
- Theme file structure best practice
- Clean installation missing its /wp-content folder
- Path in dev server works; same path in prod server is broken
- What is wp-admin/meta for?
- google xml sitemap won’t work on directory install
- What plugins create a directory on the root directory of WordPress? [closed]
- How can i shift my chosen posts to a subdirectory?
- Plugin path comes wrongly
- Where to put robot.txt and sitemap.xml for wordpress installed in its own directory
- Automating WP application directory creation (domain name passed as a variable argument)
- How to disable directory files from accessing?
- Move WordPress from Root to Subfolder
- WordPress not handling subdirectory properly
- Wp-CLI not working with WordPress installed with composer
- How to visit php file in my custom directory under site root directory
- Does WordPress refer to any files outside of the main install folder (and database)?
- WordPress File Structure
- Getting Internal server in sub folder pages
- Impossible to index an upload folder with 10k files
- Moving wordpress from /dir to main folder
- Giving WordPress Its Own Directory together with index.html
- Upload an image at frontend > Create direction and/or rename filename possible?
- wordpress sub-directory sites on a sub-domain?
- Trying to setup a dev subdomain, but url loads as /dev/ instead
- Want to change my site root
- Best way to transfer WordPress install to root of directory when I’m ready to launch?
- How to move a WordPress installation to a subdirectory
- Is there a way to create folders restricted to specific users to open?
- add 360 (non-WordPress) tours in a subfolder with the same name as the main (WordPress)page of the 360 tours
- WordPress page for one specific page on Google Cloud hosted website?
- WordPress hosted on subfolder of domain causing customizer to constantly refresh and is requesting jquery from root domain