Commit Graph

19211 Commits

Author SHA1 Message Date
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
Andrew Ozz
f880b3544d Pluck a tab (whitespace), props SergeyBiryukov, see #20369
git-svn-id: https://develop.svn.wordpress.org/trunk@20377 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 18:26:14 +00:00
Andrew Ozz
80df7fe2cf Fix second callback when filtering caption text for shortcode, props SergeyBiryukov, fixes #20369
git-svn-id: https://develop.svn.wordpress.org/trunk@20376 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-06 17:38:49 +00:00
Andrew Nacin
6e3ed8bbf9 Internally cache themes inside wp_get_themes() by theme_root as well as stylesheet, to avoid conflicts with future calls to wp_get_themes(). Always return only the last stylesheet found, as before. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20375 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 20:38:42 +00:00
Andrew Nacin
596c72cafa Child theme files need to override parent theme files. The array_merge() arguments are swapped. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20374 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 20:36:34 +00:00
Peter Westwood
7ffdb1a514 Fix typo in [20372] - See #19922 props SergeyBiryukov.
git-svn-id: https://develop.svn.wordpress.org/trunk@20373 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 15:34:28 +00:00
Peter Westwood
35cfb293e7 HTTP: Don't force cookie values to be urlencoded because it breaks usage of cookies in some scenarios like the LiveJournal Importer. Instead add a filter for a plugin to use if it really wants to have the cookie mangled. Fixes #19922 props pw201, dllh and kurtpayne.
git-svn-id: https://develop.svn.wordpress.org/trunk@20372 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 15:17:34 +00:00
bumpbot
c16ba6d8c7 Compress scripts/styles: 3.4-beta1-20370.
git-svn-id: https://develop.svn.wordpress.org/trunk@20371 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 11:58:23 +00:00
Dion Hulse
20141db4eb WP_HTTP: Curl: Correct a typo in [20208] causing failed curl requests not to return a WP_Error under certain situations. Props SergeyBiryukov. Fixes #20219
git-svn-id: https://develop.svn.wordpress.org/trunk@20370 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 11:58:04 +00:00
Jon Cave
8578804f80 Remove duplicate JavaScript. Props aaroncampbell. See #19840, fixes #20363.
git-svn-id: https://develop.svn.wordpress.org/trunk@20369 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 11:14:32 +00:00
bumpbot
62c705e044 Compress scripts/styles: 3.4-beta1-20368.
git-svn-id: https://develop.svn.wordpress.org/trunk@20368 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:57:33 +00:00
Andrew Ozz
214f1e8672 Dashboard icon back in, see #20293
git-svn-id: https://develop.svn.wordpress.org/trunk@20367 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:55:35 +00:00
Ryan Boren
9f64f9aa35 Beta 1 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@20366 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:46:45 +00:00
bumpbot
dcda0d1c10 Compress scripts/styles: 3.4-alpha-20365.
git-svn-id: https://develop.svn.wordpress.org/trunk@20365 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:34:01 +00:00
Andrew Ozz
130b4f2645 More specific selectors for the 2x images take 2, don't specify background-size for the 1x background, see #20293
git-svn-id: https://develop.svn.wordpress.org/trunk@20364 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:30:06 +00:00
Andrew Nacin
f9a131231d Always return a WP_Theme object from wp_get_theme(). Check \$theme->exists() or \$theme->errors() to confirm the requested theme actually exists. see #20361.
git-svn-id: https://develop.svn.wordpress.org/trunk@20363 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:05:49 +00:00
Andrew Ozz
7ceb8f1a68 More specific selectors for the 2x images, see #20293
git-svn-id: https://develop.svn.wordpress.org/trunk@20362 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 01:02:36 +00:00
bumpbot
897d692c6d Compress scripts/styles: 3.4-alpha-20361.
git-svn-id: https://develop.svn.wordpress.org/trunk@20361 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 00:58:26 +00:00
Andrew Nacin
7e614e2ff1 Empty media-gallery.js - bumpbot hungry. see [20359].
git-svn-id: https://develop.svn.wordpress.org/trunk@20360 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 00:23:12 +00:00
Ryan Boren
5ca4c46c85 Add media-gallery js. see #19840
git-svn-id: https://develop.svn.wordpress.org/trunk@20359 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 00:21:28 +00:00
Ryan Boren
485e7bc261 Allow selecting custom header and background images from the media library. Props aaroncampbell, sabreuse, greuben. fixes #19840
git-svn-id: https://develop.svn.wordpress.org/trunk@20358 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-05 00:20:28 +00:00
bumpbot
f027063f41 Compress scripts/styles: 3.4-alpha-20357.
git-svn-id: https://develop.svn.wordpress.org/trunk@20357 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 23:58:25 +00:00
Andrew Ozz
f62e952ae9 Double-size icons and WordPress logo for retina displays, props chexee, props empireoflight, props iammattthomas, see #20293
git-svn-id: https://develop.svn.wordpress.org/trunk@20356 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 23:02:51 +00:00
bumpbot
7f938af8c5 Compress scripts/styles: 3.4-alpha-20355.
git-svn-id: https://develop.svn.wordpress.org/trunk@20355 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 21:58:23 +00:00
Daryl Koopersmith
786145ebbf Theme Customizer: Add a link to customize the current theme. see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20354 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 21:41:51 +00:00