Opened 15 years ago
Closed 15 years ago
#20443 closed defect (bug) (fixed)
Featured image cannot be set if WordPress install path contains spaces
| Reported by: | rosshanney | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
If WordPress is installed in a directory with a name that contains spaces ("/home/username/public_html/path with spaces", for example), the Featured Image meta box displays only a PHP warning, preventing a Featured Image from being set.
The warning is as follows, and seems to appear with or without WP_DEBUG enabled:
Warning: sprintf() [function.sprintf]: Too few arguments in C:\path\htdocs\path with spaces\wp-admin\includes\post.php on line 1149
I think this is caused by the extra % characters introduced after encoding the URL from get_upload_iframe_src, which confuse the subsequent sprintf calls.
As reported here on the support forums.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I am surprised this is the only thing that breaks.