Commit Graph

9627 Commits

Author SHA1 Message Date
Andrew Nacin beac0e2e0f Add view_item to the phpdoc for get_taxonomy_labels(). props Caspie. fixes #20406.
git-svn-id: https://develop.svn.wordpress.org/trunk@20436 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 20:08:30 +00:00
Andrew Nacin 1909f3fbeb Use the metadata API rather than raw queries and direct do_action calls. see #20417.
git-svn-id: https://develop.svn.wordpress.org/trunk@20435 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 20:02:39 +00:00
bumpbot 45081349a3 Compress scripts/styles: 3.4-beta1-20434.
git-svn-id: https://develop.svn.wordpress.org/trunk@20434 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 02:58:23 +00:00
Andrew Ozz 3b9e5468e1 Add the jQuery UI Touch Punch plugin to handle dragging on mobile devices, props georgestephanis, see #20014
git-svn-id: https://develop.svn.wordpress.org/trunk@20433 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 02:20:51 +00:00
bumpbot 8b4f1495f3 Compress scripts/styles: 3.4-beta1-20429.
git-svn-id: https://develop.svn.wordpress.org/trunk@20429 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 00:58:23 +00:00
Andrew Ozz 2b1eb4f028 Fix inserting links in the HTML editor in IE9, fixes #19528
git-svn-id: https://develop.svn.wordpress.org/trunk@20428 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-11 00:20:42 +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
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
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
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
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
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
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
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
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 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
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
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 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
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
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
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
Peter Westwood b57bf8a36d XMLRPC: Make sure that we always return valid dates when no date is currently set - for example if the post is pending. Fixes #19733 props markoheijnen and koke.
git-svn-id: https://develop.svn.wordpress.org/trunk@20353 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 21:32:28 +00:00
Daryl Koopersmith 31caea7b9b Theme Customizer: Improve the customize loader and themes list table markup. see #19910.
* Use event delegation for triggering the customize loader (so we play nicely with infinite scroll).
* Use data attributes on .load-customize links instead of parsing the href.
* Properly translate the 'Customize' string instead of injecting the replacement with JS.

git-svn-id: https://develop.svn.wordpress.org/trunk@20352 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 21:02:29 +00:00
Peter Westwood dfab3319f8 XMLRPC: Add a check in mw.newPost to stop the authorID being changed to an invalid value. Fixes #20356 props maxcutler.
git-svn-id: https://develop.svn.wordpress.org/trunk@20351 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 20:11:21 +00:00
Jon Cave ecd1caa054 Add some missing documentation and fix a couple of typos. Props roscius. Fixes #19756.
git-svn-id: https://develop.svn.wordpress.org/trunk@20349 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 17:32:03 +00:00
bumpbot 0d6710383f Compress scripts/styles: 3.4-alpha-20348.
git-svn-id: https://develop.svn.wordpress.org/trunk@20348 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-04 02:58:22 +00:00