bumpbot
aa5aee3d92
Compress scripts/styles: 3.4-beta1-20427.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20427 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 21:58:27 +00:00
Daryl Koopersmith
d48177f817
Larger screenshots in theme list tables. see #20403 , #19816 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20426 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 21:09:14 +00:00
Ryan Boren
1daab2358b
Use wp_safe_redirect(). No need to allow offsite redirects.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20425 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 17:21:17 +00:00
Jon Cave
c3a7874f33
Don't override the $current_user global in get_currentuserinfo() on an XML-RPC request
...
if it's non-empty. Fixes capabilities checks for XML-RPC requests. See #20372 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20424 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 16:19:53 +00:00
Ryan Boren
27592057cd
Pass post_type to clean_post_cache() instead of attempting to fetch a post object since the post may have been deleted.
...
Props leewillis77
see #19690
git-svn-id: https://develop.svn.wordpress.org/trunk@20423 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 16:09:44 +00:00
Andrew Ozz
69eca59eba
Consistently remove links to media-new.php for mobile devices, props SergeyBiryukov, see #20405
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20422 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 03:18:48 +00:00
bumpbot
0a656052ab
Compress scripts/styles: 3.4-beta1-20421.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20421 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 02:58:27 +00:00
Andrew Ozz
6e3b368bc9
Move the wp_is_mobile() check after the admin bootstrap in media-new.php, props SergeyBiryukov, see #20014
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20420 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 02:34:47 +00:00
Daryl Koopersmith
955ca76116
Replace all instances of thickbox theme preview with the theme customizer. fixes #20404 .
...
* Use theme customizer in theme install/update screens.
* Separate the customize loader from the customizer. Use wp_customize_loader() to include the loader script and markup.
* Deprecated: wp-admin/js/theme-preview.js is now no longer used by core.
git-svn-id: https://develop.svn.wordpress.org/trunk@20419 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 02:25:03 +00:00
bumpbot
9492b5a622
Compress scripts/styles: 3.4-beta1-20418.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20418 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 01:58:27 +00:00
Andrew Ozz
bce0d37a67
Introduce wp_is_mobile() and use it instead of $is_iphone global, see #20014
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20417 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 01:19:30 +00:00
bumpbot
fdce6271d0
Compress scripts/styles: 3.4-beta1-20416.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20416 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 00:58:23 +00:00
Daryl Koopersmith
5a6dc7c758
Fix showing/hiding theme details and move code from theme-preview.js to theme.js. see #20403 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20415 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 00:34:39 +00:00
Daryl Koopersmith
98f37d532d
Theme browsing UX improvements. see #20403 .
...
* On manage/install themes pages, moved author under theme name.
* On manage themes page, moved version number to details.
git-svn-id: https://develop.svn.wordpress.org/trunk@20414 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-10 00:15:13 +00:00
bumpbot
6139fac4d0
Compress scripts/styles: 3.4-beta1-20413.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20413 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 23:58:24 +00:00
Daryl Koopersmith
bf204c40d8
Remove CSS involving unused '#theme-information' selector. see #20403 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20412 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 23:48:12 +00:00
Daryl Koopersmith
971a69b87e
Remove CSS involving unused '.theme-listing' selector. see #20403 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20411 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 23:22:59 +00:00
Ryan Boren
781f632a82
When fetching the user in get_currentuserinfo(), make sure it is a valid WP_User object. If it is stdClass, upgrade it to WP_User. If it is WP_Error, an int, or anything else, set the current user to ID 0.
...
In wp_set_current_user(), return the current user global only if it is a WP_User object. If it is not, fall through and go about setting it up properly.
Formatting cleanups for both functions.
see #20372
git-svn-id: https://develop.svn.wordpress.org/trunk@20410 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 22:01:07 +00:00
Mark Jaquith
5d73d82fc2
Replace <br/> and <br> in addition to <br /> in clean_pre(). fixes #20400
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20409 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 20:05:47 +00:00
bumpbot
7fdf2d7412
Compress scripts/styles: 3.4-beta1-20408.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20408 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 18:58:20 +00:00
Andrew Ozz
e1f8ffcf1c
Don't try to append "Display Name" options when on the Add New User screen (the <select> doesn't exist there), props pbiron, SergeyBiryukov, fixes #20392
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20407 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 18:46:36 +00:00
Andrew Nacin
fa8e5c2897
Remove duplicated featured_image block. props koke.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20406 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-09 15:28:07 +00:00
bumpbot
099576ac0f
Compress scripts/styles: 3.4-beta1-20405.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20405 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-08 21:58:20 +00:00
Daryl Koopersmith
bfa86223dd
Theme Customizer: Add a 'previewing' notice by the theme name. Reduce padding and size on section titles, add a border between section titles and content to better indicate the title as a click target. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20404 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-08 21:17:46 +00:00
Jon Cave
9e3be2f747
Prevent notice "Undefined variable: struct" in mt_getRecentPostTitles when posts exist, but none of them are editable. Fixes #20393 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20403 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-08 09:40:04 +00:00
Andrew Nacin
0a352eed01
wp_set_current_user(0) for XMLRPC_REQUEST in get_currentuserinfo(). Ensures that wp_get_current_user() always returns a WP_User object. see #20372 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20402 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-08 01:06:44 +00:00
bumpbot
00179f2370
Compress scripts/styles: 3.4-beta1-20401.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20401 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 20:58:27 +00:00
Andrew Ozz
348e000979
Center the menu icons when the menu is folded. For proper display in RTL the width of .wp-menu-image has to be 30px. Props helenyhou, fixes #20382
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20400 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 20:18:18 +00:00
Dion Hulse
95555955d2
WP_HTTP: Curl: $theHeaders is an array, not an object, introduced in [20370]. Props kurtpayne. Fixes #20389 See #20219
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20399 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 07:16:30 +00:00
Mark Jaquith
38737dd530
Handle page= and feed= query strings in redirect_guess_404_permalink(). fixes #20387
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20398 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 05:39:08 +00:00
Mark Jaquith
b033c7c6fa
Properly handle paged permalink URLs even when we are not already 301ing. fixes #20385
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20397 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 05:18:50 +00:00
Mark Jaquith
c435aab67e
Fix a bunch of individual post comments feeds canonical redirects. Fixes three unit tests. fixes #20384
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20396 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 05:02:45 +00:00
Mark Jaquith
b3aef79df3
Better removal of query args in canonical redirects. Only remove them when they are not present in the redirect_url. fixes #20374
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20395 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 01:03:55 +00:00
bumpbot
e701dd2d8c
Compress scripts/styles: 3.4-beta1-20394.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20394 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 00:58:21 +00:00
Daryl Koopersmith
dfe7dd824e
Theme Customizer: Remove small screenshot from theme title bar. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20393 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 00:33:36 +00:00
Daryl Koopersmith
f26e53d4d9
Theme Customizer: String change to clarify choosing a static page (remove 'select below'). see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20392 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 00:18:02 +00:00
Daryl Koopersmith
315d6e31e3
Theme Customizer: Move 'collapse' button to footer and add a visible text label. see #19910 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20391 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-07 00:10:22 +00:00
bumpbot
21490033fb
Compress scripts/styles: 3.4-beta1-20390. TinyMCE updated.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20390 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 23:58:19 +00:00
Andrew Ozz
c2e3754cf9
Add the "aside,audio,canvas,figcaption,figure,nav,output,video" tags that shouldn't be wrapped in <p> to the internal blocks list in TinyMCE, fixes #20381
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20389 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 22:59:22 +00:00
bumpbot
fa847aab0a
Compress scripts/styles: 3.4-beta1-20388.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20388 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 21:58:20 +00:00
Andrew Ozz
a55be0ba27
Reset negative top margin on submenus when folding/unfolding the admin menu, fixes #20380
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20387 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 21:40:57 +00:00
Mark Jaquith
9b766fa0b8
Be a bit more conservative in which args are stripped after redirect_guess_404_permalink(). see #20380 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20386 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 21:19:28 +00:00
bumpbot
be8d30a7cf
Compress scripts/styles: 3.4-beta1-20385.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20385 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 20:58:21 +00:00
Ryan Boren
6fde0bddaf
Make choosing a header image from the media library play nicely with file replication plugins that do not guarantee images will be retained in the local filesystem.
...
* When passing an attachment ID to wp_crop_image(), use load_image_to_edit() to fetch the image via a url fopen when the image does not exist in the filesystem.
* Move load_image_to_edit() to wp-admin/includes/image.php so that it is always available for admin pages loads.
* Fallback to the height and width stored in the attachment meta when the image no longer exists in the filesystem.
see #19840
git-svn-id: https://develop.svn.wordpress.org/trunk@20384 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 20:47:24 +00:00
Andrew Ozz
52c5b8c7ad
Ensure the first icon is not covered by the wrapper div in the Welcome tab on the dashboard, fixes #20366
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20383 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 20:15:14 +00:00
Andrew Nacin
8fa05b041b
Use _callback, rather than an unhelpful 2, for a preg_replace callback function name. Add proper phpdoc. see #20369 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20382 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 20:05:31 +00:00
Jon Cave
c2450103b2
Simplify caption cleanup callbacks; if the function was called we know that the 0 index is set. See #20369 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20381 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 19:52:34 +00:00
Mark Jaquith
22031a0765
Strip p, page_id, attachment_id, post_type, pagename, and name from redirect query if we get a hit on a 404-guessed permalink. fixes #20374
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20380 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 19:49:34 +00:00
Andrew Nacin
7dbfae77c0
Use WP_Theme::exists(). see #20361 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20379 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 19:21:31 +00:00
Ryan Boren
6f9ceb2326
Introduce WP_User::exists(). see #20372
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20378 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 19:18:45 +00:00