[wp-trac] [WordPress Trac] #20443: Featured image cannot be set if WordPress install path contains spaces
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 14 12:38:17 UTC 2012
#20443: Featured image cannot be set if WordPress install path contains spaces
--------------------------+-----------------------------
Reporter: rosshanney | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
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 [http://wordpress.org/support/topic/featured-images-error
here] on the support forums.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20443>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list