Commit Graph

11562 Commits

Author SHA1 Message Date
Andrew Nacin 9d885adce3 Add self_link filter to self_link(). props josephscott. fixes #10434.
git-svn-id: https://develop.svn.wordpress.org/trunk@23521 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:27:13 +00:00
Andrew Nacin 2d2bb70ec2 Allow nonce name to be passed to wp_nonce_url(), as allowed by wp_nonce_field(). props MatthewRuddy, fixes #22423.
git-svn-id: https://develop.svn.wordpress.org/trunk@23519 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:08:53 +00:00
Andrew Nacin 57f7ae7af4 Stop using deprecated jQuery API (.browser and .live). Do manual UA sniffing where still necessary. Improve selector performance by using delegated events. props ocean90. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23518 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:05:28 +00:00
Andrew Nacin 5a2b79d914 jQuery Migrate 1.1.1. props ocean90. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23516 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:02:26 +00:00
Andrew Nacin 23b1a46710 Fix internal linking dialog conflicts with jQuery UI 1.10.x. Syncs jQuery UI CSS styles.
Remaining issue will be fixed in 1.10.2 final.
props ocean90.
see #23370.



git-svn-id: https://develop.svn.wordpress.org/trunk@23515 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 17:54:00 +00:00
Andrew Nacin 34a00ae277 Move admin bar initialization from init to template_redirect, so conditional tags may be used in the show_admin_bar filter. props scribu. fixes #20101.
git-svn-id: https://develop.svn.wordpress.org/trunk@23512 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 16:56:35 +00:00
Andrew Nacin 5114e85747 In insert_blog(), make sure we retrieve the insertion ID from wpdb before calling a function that could invoke queries. props feedmeastraycat. fixes #23400.
git-svn-id: https://develop.svn.wordpress.org/trunk@23511 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 16:53:48 +00:00
Andrew Nacin 11ab449a89 Ensure we strictly compare 'alloptions' and 'notoptions' when protecting these special options.
Trim and check for emptiness of $option in delete_option(), as done for get, update, and add.

fixes #23289.



git-svn-id: https://develop.svn.wordpress.org/trunk@23510 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 16:49:20 +00:00
Helen Hou-Sandi 7f7f9a805c Merge revisions.css into wp-admin.css. Move misplaced block of revisions CSS in wp-admin.css into appropriate section. Some standards clean up and selector merging. see #23497.
git-svn-id: https://develop.svn.wordpress.org/trunk@23507 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 15:40:44 +00:00
Peter Westwood 554627a0d5 Revisions: First pass an implementing a new UI/UX for reviewing the revisions of posts. See #23497 props adamsilverstein for the initial patch.
This implements a new revisions ui using Backbone and preserves all the old methods of "integration" so the change should be transparent to plugins using revisi
ons with CPTs.

This is the first pass and so there are a number of things still to be resolved, more details in the ticket. Feedback welcomed.


git-svn-id: https://develop.svn.wordpress.org/trunk@23506 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 15:14:34 +00:00
Andrew Ozz 1ad1ce8db9 Logged out warnings: remove debug leftovers, see #23295
git-svn-id: https://develop.svn.wordpress.org/trunk@23505 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 09:03:10 +00:00
Andrew Ozz 780ee565aa Improved logged out warnings, first run, props mintindeed, see #23295
git-svn-id: https://develop.svn.wordpress.org/trunk@23504 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 08:57:17 +00:00
Sergey Biryukov 9430601021 Avoid an undefined offset notice in wp_convert_bytes_to_hr(). props soulseekah. fixes #23626.
git-svn-id: https://develop.svn.wordpress.org/trunk@23502 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 05:25:15 +00:00
Helen Hou-Sandi 6ef89f92c7 Revert [23407], thereby restoring gradients and shadows. see #23415.
git-svn-id: https://develop.svn.wordpress.org/trunk@23500 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 00:58:26 +00:00
Helen Hou-Sandi 8b26ed504c Remove default content from post format compat output. We shouldn't magically create content for display not specified by the user, especially given that the current compat is handling the case of new data, old theme. see #23347.
git-svn-id: https://develop.svn.wordpress.org/trunk@23499 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-27 22:10:08 +00:00
bumpbot ffce5ab757 Compress scripts/styles: 3.6-alpha-23495.
git-svn-id: https://develop.svn.wordpress.org/trunk@23495 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-26 22:58:42 +00:00
Andrew Ozz 756c28bf5c Post locks: use heartbeat to dynamically update locked posts on the Posts screen, first run, see #23312
git-svn-id: https://develop.svn.wordpress.org/trunk@23487 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 23:17:10 +00:00
bumpbot 12a8779a74 Compress scripts/styles: 3.6-alpha-23486.
git-svn-id: https://develop.svn.wordpress.org/trunk@23486 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 22:58:42 +00:00
Sergey Biryukov 6a59a28f12 Rename 'no_tagcloud' taxonomy label to 'not_found', for consistency with the post type label of the same key. fixes #23597.
git-svn-id: https://develop.svn.wordpress.org/trunk@23484 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 19:39:38 +00:00
Sergey Biryukov 41919e97fb Move 'no_tagcloud' argument to the taxonomy labels object. props DrewAPicture for initial patch. fixes #23597.
git-svn-id: https://develop.svn.wordpress.org/trunk@23483 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 18:35:05 +00:00
Andrew Ozz d5719ec648 Fix typo in wp_heartbeat_settings, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23482 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 04:19:51 +00:00
Andrew Ozz 9b691a21b0 Heartbeat API: add nopriv actions, add JS 'heartbeat-send' event, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23481 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-25 02:32:22 +00:00
Helen Hou-Sandi a3afd6e989 Post formats compat output:
* Check for theme support of `structured-post-formats` rather than `post-formats`.
* Use \n instead of PHP_EOL constant.
* Add new lines after opening compat wrapper tag for some `wpautop()` treatment.

props SergeyBiryukov. see #23347.


git-svn-id: https://develop.svn.wordpress.org/trunk@23468 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-21 23:02:00 +00:00
Helen Hou-Sandi e599566ce4 Implement theme support for structured-post-formats, which will supercede theme support for post-formats. Usage is the same as declaring support for post-formats: `add_theme_support( 'structured-post-formats', array( 'quote', 'video' ) )`. Adding `structured-post-formats` support also adds `post-formats` support for the given format(s) underneath.
Declaring support for a given format indicates that the theme handles format-specific metadata; admin UI will not change based on theme-declared support of either variety as it did previously. If no `structured-post-formats` support is explicitly declared for a format, a post in that format will have fallback output utilizing that metadata applied. In this way, a theme can style core-provided output for a full post format experience without having to handle metadata in any way.

props nacin. see #23347.


git-svn-id: https://develop.svn.wordpress.org/trunk@23467 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-21 22:48:09 +00:00
Andrew Nacin e1b603bbc3 Move revisions/autosave and post format functions from wp-includes/post.php into revision.php and post-formats.php.
git-svn-id: https://develop.svn.wordpress.org/trunk@23466 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-21 21:24:34 +00:00
Sergey Biryukov 74825282e5 Remove unused global reference. props aaroncampbell. fixes #23541.
git-svn-id: https://develop.svn.wordpress.org/trunk@23458 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-20 00:18:15 +00:00
Sergey Biryukov f474e9da60 Add a missing closing tag. fixes #23510. see #14358.
git-svn-id: https://develop.svn.wordpress.org/trunk@23454 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-19 02:06:21 +00:00
bumpbot f18f7d7b2d Compress scripts/styles: 3.6-alpha-23451.
git-svn-id: https://develop.svn.wordpress.org/trunk@23451 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 22:26:00 +00:00
Helen Hou-Sandi 351438ebe1 Output fallbacks / theme compat for post format metadata.
* Currently handles link, quote, image, gallery, audio, and video formats.
* `add_theme_support()` for a given post format is now an indicator that the theme handles format-specific metadata.
* If no support for a given format is defined, fallback output will be generated and hooked onto the_content if a post has metadata for that format.
* Fallbacks attempt to be smart about not duplicating data already appearing in the post content itself. Gallery is particularly liberal, looking for any instance of the gallery shortcode in the content, not just an exact match to the gallery shortcode defined in the format-specific meta.
* Compat output defaults to being wrapped in a `div` with a class of `post-format-content`.

Theme authors: please test and evaluate, keeping in mind that the goal is to support user expectations of not losing format-specific data they've entered in the admin when viewing the front-end of their site.

props wonderboymusic, beaulebens, helen. see #23347.


git-svn-id: https://develop.svn.wordpress.org/trunk@23450 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 19:22:58 +00:00
Helen Hou-Sandi 5b3c058bd5 Edit screen UI for post formats: a first run for functionality.
* Adds a very basic tabbed interface for selecting a post format (requires JS).
* Extra fields, which are post meta, are shown/hidden based on the selected format.
* Introduce a helper function for retrieving formats-specific metadata: `get_post_format_meta()`.
* Image selection uses the media modal, although without filtering or from URL support at the moment.

props rachelbaker, wonderboymusic, aaroncampbell, helen. see #19570.


git-svn-id: https://develop.svn.wordpress.org/trunk@23449 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 19:11:24 +00:00
Sergey Biryukov edd0530290 Fix typo in phpdoc. see #23498.
git-svn-id: https://develop.svn.wordpress.org/trunk@23448 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-18 18:56:51 +00:00
bumpbot 745ed8b530 Compress scripts/styles: 3.6-alpha-23447.
git-svn-id: https://develop.svn.wordpress.org/trunk@23447 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 22:58:41 +00:00
Andrew Nacin 038439326d Remove unused admin-categories and admin-custom-fields JavaScript files. props ocean90. fixes #23486.
git-svn-id: https://develop.svn.wordpress.org/trunk@23446 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 19:03:59 +00:00
Andrew Nacin 0c89805886 jQuery UI 1.10.1.
props ocean90. see #23370.



git-svn-id: https://develop.svn.wordpress.org/trunk@23442 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 17:40:37 +00:00
Sergey Biryukov 4d8fc5d551 Restore the original wp_convert_bytes_to_hr() code. fixes #19067.
git-svn-id: https://develop.svn.wordpress.org/trunk@23440 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 03:59:37 +00:00
Sergey Biryukov eeda24f865 Deprecate wp_convert_bytes_to_hr() in favor of size_format(). props F J Kaiser. fixes #19067.
git-svn-id: https://develop.svn.wordpress.org/trunk@23439 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 03:07:56 +00:00
Andrew Nacin aedda3210c Deprecate get_user_id_from_string() in favor of get_user_by( $field ) where $field is 'email' or 'login'. props SergeyBiryukov. fixes #23190.
git-svn-id: https://develop.svn.wordpress.org/trunk@23438 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 03:02:15 +00:00
Sergey Biryukov 07d596afb7 Add missing inline descriptions. see #19067.
git-svn-id: https://develop.svn.wordpress.org/trunk@23437 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 02:52:57 +00:00
Andrew Nacin 4b040e72dc WP_Query: `post_parent__in` and `post_parent__not_in`. props wonderboymusic. fixes #11056.
git-svn-id: https://develop.svn.wordpress.org/trunk@23436 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 02:08:46 +00:00
bumpbot fe6bb0671d Compress scripts/styles: 3.6-alpha-23435.
git-svn-id: https://develop.svn.wordpress.org/trunk@23435 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 22:58:45 +00:00
Sergey Biryukov 2950f848d4 Fix typos in phpdoc. props markmcwilliams. fixes #23481.
git-svn-id: https://develop.svn.wordpress.org/trunk@23434 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 18:59:56 +00:00
Sergey Biryukov 8eebc4d4ff Use wp_get_current_user(). props nacin. see #23192.
git-svn-id: https://develop.svn.wordpress.org/trunk@23432 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 18:13:18 +00:00
Sergey Biryukov 79df86b818 Replace get_user_id_from_string() with get_user_by(). props ocean90, bananastalktome. fixes #23192. see #23190.
git-svn-id: https://develop.svn.wordpress.org/trunk@23431 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 18:00:52 +00:00
Mark Jaquith ead92fb39d "LGPL License" is redundant.
props wonderboymusic, jakub.tyrcha. fixes #15585

git-svn-id: https://develop.svn.wordpress.org/trunk@23425 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:26:46 +00:00
Sergey Biryukov 417adb2e2e Filter "Powered by WordPress" text in Meta widget. props Viper007Bond, wonderboymusic. fixes #14358.
git-svn-id: https://develop.svn.wordpress.org/trunk@23424 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:20:14 +00:00
Andrew Nacin d9e2f14dca jQuery UI 1.10.0.
Some lingering issues with the edit/insert link dialog.

props ocean90.
see #23370.



git-svn-id: https://develop.svn.wordpress.org/trunk@23423 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:13:26 +00:00
Mark Jaquith 1dc5d1c401 Update our Windows media file MIME types to the official Microsoft-recommended ones.
props niallkennedy, wonderboymusic. fixes #14253

git-svn-id: https://develop.svn.wordpress.org/trunk@23422 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:12:40 +00:00
Andrew Nacin 88b8e29f0d jQuery 1.9.1 and jQuery Migrate 1.1.0.
Remains uncompressed for now, until we work out all 1.9.x issues.
Fixes custom fields.

props ocean90, wonderboymusic. see #22975.



git-svn-id: https://develop.svn.wordpress.org/trunk@23421 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 16:09:04 +00:00
Sergey Biryukov 9defec712a Properly truncate UTF-8 post slugs in wp_unique_post_slug(). fixes #21013.
git-svn-id: https://develop.svn.wordpress.org/trunk@23420 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 14:35:41 +00:00
bumpbot 2d34b9a876 Compress scripts/styles: 3.6-alpha-23417.
git-svn-id: https://develop.svn.wordpress.org/trunk@23418 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:58:42 +00:00
Mark Jaquith bfd0b6fb37 Refactor the Customizer accordion so that it can be used in other locations.
fixes #23449. props lessbloat, aaroncampbell

git-svn-id: https://develop.svn.wordpress.org/trunk@23417 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:58:04 +00:00
Ryan Boren a6c8efadb9 Change all core API to expect unslashed rather than slashed arguments.
The exceptions to this are update_post_meta() and add_post_meta() which are often used by plugins in POST handlers and will continue accepting slashed data for now.

Introduce wp_upate_post_meta() and wp_add_post_meta() as unslashed alternatives to update_post_meta() and add_post_meta(). These functions could become methods in WP_Post so don't use them too heavily yet.

Remove all escape() calls from wp_xmlrpc_server. Now that core expects unslashed data this is no longer needed.

Remove addslashes(), addslashes_gpc(), add_magic_quotes() calls on data being prepared for handoff to core functions that until now expected slashed data. Adding slashes in no longer necessary.

Introduce wp_unslash() and use to it remove slashes from GPCS data before using it in core API. Almost every instance of stripslashes() in core should now be wp_unslash(). In the future (a release or three) when GPCS is no longer slashed, wp_unslash() will stop stripping slashes and simply return what is passed. At this point wp_unslash() calls can be removed from core.

Introduce wp_slash() for slashing GPCS data. This will also turn into a noop once GPCS is no longer slashed. wp_slash() should almost never be used. It is mainly of use in unit tests.

Plugins should use wp_unslash() on data being passed to core API.

Plugins should no longer slash data being passed to core. So when you get_post() and then wp_insert_post() the post data from get_post() no longer needs addslashes(). Most plugins were not bothering with this. They will magically start doing the right thing. Unfortunately, those few souls who did it properly will now have to avoid calling addslashes() for 3.6 and newer.

Use wp_kses_post() and wp_kses_data(), which expect unslashed data, instead of wp_filter_post_kses() and wp_filter_kses(), which expect slashed data. Filters are no longer passed slashed data.

Remove many no longer necessary calls to $wpdb->escape() and esc_sql().

In wp_get_referer() and wp_get_original_referer(), return unslashed data.

Remove old stripslashes() calls from WP_Widget::update() handlers. These haven't been necessary since WP_Widget.

Switch several queries over to prepare().

Expect something to break.

Props alexkingorg
see #21767


git-svn-id: https://develop.svn.wordpress.org/trunk@23416 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:51:06 +00:00
Peter Westwood 4ca366a0d1 Revisions: Allow a plugin to force us to skip the don't save this revision because it hasn't changed code if it knows better.
See #7392 and #9843. Also cleans up the whitespace.


git-svn-id: https://develop.svn.wordpress.org/trunk@23415 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 16:45:43 +00:00
Peter Westwood 671a9b2017 Revisions: Before saving a new post revision make sure that something has changed in the fields that we are revisioning.
Fixes: #7392 and #9843 props adamsilverstein.


git-svn-id: https://develop.svn.wordpress.org/trunk@23414 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 11:36:32 +00:00
Sergey Biryukov 16e16c7ee4 Use correct escaping function. fixes #23334.
git-svn-id: https://develop.svn.wordpress.org/trunk@23413 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:52:23 +00:00
Sergey Biryukov 74f5d9dcb3 Remove unused error string. props pavelevap. fixes #22107.
git-svn-id: https://develop.svn.wordpress.org/trunk@23412 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:36:28 +00:00
Sergey Biryukov 142c4ee92b Use correct escaping function. props jkudish. fixes #20771.
git-svn-id: https://develop.svn.wordpress.org/trunk@23411 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 05:12:23 +00:00
Sergey Biryukov 04778f60ac Return from image_downsize() earlier if a custom resize function is used. props anatolbroder. fixes #23392.
git-svn-id: https://develop.svn.wordpress.org/trunk@23410 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 04:30:55 +00:00
bumpbot 6b63e085ef Compress scripts/styles: 3.6-alpha-23408.
git-svn-id: https://develop.svn.wordpress.org/trunk@23408 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 22:58:44 +00:00
Helen Hou-Sandi 4b2173708d Begin simplifying some of the visual elements in the admin, starting with gradients. White space purposefully not currently altered. props lessbloat, melchoyce, aaroncampbell, sabreuse. see #23415.
git-svn-id: https://develop.svn.wordpress.org/trunk@23407 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-13 22:43:48 +00:00
bumpbot 42926ca699 Compress scripts/styles: 3.6-alpha-23403. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23403 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-12 22:58:43 +00:00
Andrew Ozz 6d0ee4dc7d TinyMCE: include cd84a63d4a to fix backspace and line breaks issues in WebKit, see #23337
git-svn-id: https://develop.svn.wordpress.org/trunk@23402 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-12 02:04:09 +00:00
Ryan Boren 77e5536195 Use microtime() instead of incrementors for last_changed to to avoid race conditions with cache evictions.
Props westi
fixes #23448


git-svn-id: https://develop.svn.wordpress.org/trunk@23401 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-11 18:08:14 +00:00
bumpbot 679339ffaa Compress scripts/styles: 3.6-alpha-23400.
git-svn-id: https://develop.svn.wordpress.org/trunk@23400 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 22:58:42 +00:00
Mark Jaquith 9f02654b0d Introduce wp_remove_object_terms() and wp_add_object_terms(). No more fetch-alter-update nonsense. Use wp_remove_object_terms() in a few places internally.
props simonwheatley, scribu, ericmann, maxcutler. fixes #15475

git-svn-id: https://develop.svn.wordpress.org/trunk@23398 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:45:34 +00:00
Helen Hou-Sandi efda431bc2 Open external links to plugin homepages, plugin author homepages, and theme author homepages in a new window/tab. props SergeyBiryukov. fixes #20839.
git-svn-id: https://develop.svn.wordpress.org/trunk@23394 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 16:20:01 +00:00
Andrew Nacin 5dd8a15b26 Add underscore and backbone to the do-not-deregister list of scripts.
props adamsilverstein.
see [23378]. see #22896.



git-svn-id: https://develop.svn.wordpress.org/trunk@23391 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 05:11:27 +00:00
Mark Jaquith e3a1266c0c Revert [23375] until we can get Media fixed to work with newer versions of Backbone. see #23262
git-svn-id: https://develop.svn.wordpress.org/trunk@23390 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 03:15:22 +00:00
Andrew Ozz b38675a65a Heartbeat API: fix error in IE < 9, props SergeyBiryukov, don't attempt to bind events to cross-domain iframes, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23389 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-06 07:10:04 +00:00
Sergey Biryukov 12fcb94781 Use a human-readable constant in wp_set_auth_cookie(). fixes #23372.
git-svn-id: https://develop.svn.wordpress.org/trunk@23388 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-06 03:44:43 +00:00
Sergey Biryukov 163f0a4769 Correct the documentation for _publish_post_hook(). Remove unused global declaration. props roulandf. fixes #23376.
git-svn-id: https://develop.svn.wordpress.org/trunk@23387 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-05 15:45:37 +00:00
bumpbot 68360b40ab Compress scripts/styles: 3.6-alpha-23386.
git-svn-id: https://develop.svn.wordpress.org/trunk@23386 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 14:38:03 +00:00
Ryan Boren 51e5049575 In wp_get_archives(), cache queries to individual cache buckets instead of storing them in one cached array. Use incrementor style passive cache invalidation.
fixes #23206
see #23173


git-svn-id: https://develop.svn.wordpress.org/trunk@23385 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 13:54:15 +00:00
Ryan Boren 8b07ad9884 Use incrementors for cache invalidation in get_terms().
fixes #23326
see #23173


git-svn-id: https://develop.svn.wordpress.org/trunk@23384 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 13:48:46 +00:00
Mark Jaquith bd80d92a89 Update Underscore to version 1.4.4. see #23262
git-svn-id: https://develop.svn.wordpress.org/trunk@23383 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 06:40:21 +00:00
Andrew Ozz 682b66b560 Heartbeat API: throttle down when the window looses focus or when the user is inactive, always send 'screen_id', change the interval settings to 'fast' (5sec), 'standard' (15sec) and 'slow' (60sec), the interval can be changed from PHP, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23382 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-03 07:03:27 +00:00
Sergey Biryukov 795ea73568 Mark the string for translation. see #22896.
git-svn-id: https://develop.svn.wordpress.org/trunk@23379 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 03:42:10 +00:00
Andrew Nacin ca3bfb34f9 Do not allow accidental or negligent deregistering of critical scripts in the admin. (Defined for now as jQuery and jQuery UI.) Show minimal remorse if the correct hook is used. see #22896.
git-svn-id: https://develop.svn.wordpress.org/trunk@23378 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 03:01:20 +00:00
Andrew Nacin 2b1d2bfa78 Stop recommending the init hook in the _doing_it_wrong() message for too-early scripts and styles. Instead, recommend the three _enqueue_scripts hooks. If they're noticing they are doing it wrong, let's push them to 100% correct, not partly correct.
see #22896.



git-svn-id: https://develop.svn.wordpress.org/trunk@23377 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:42:09 +00:00
Andrew Nacin d5de4a9bbd Update to Services_JSON 1.0.3. props bpetty. fixes #21568.
git-svn-id: https://develop.svn.wordpress.org/trunk@23376 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:09:01 +00:00
Andrew Nacin faa884032e Update Backbone.js to 0.9.10. props aaronholbrook, fixes #23262.
git-svn-id: https://develop.svn.wordpress.org/trunk@23375 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:02:53 +00:00
Andrew Nacin 2604bfffbf Ensure we have a charset before calling mb_internal_encoding(), avoiding an unnecessary (if suppressed) warning. props dfavor. fixes #23093.
git-svn-id: https://develop.svn.wordpress.org/trunk@23373 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-02 02:01:29 +00:00
Sergey Biryukov ce72d762f8 Correct the documentation for balanceTags(). Remove unnecessary boolean inversion. props TobiasBg. fixes #22537.
git-svn-id: https://develop.svn.wordpress.org/trunk@23368 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 22:20:06 +00:00
Sergey Biryukov 35453dc623 Properly check if the custom header/background has been initialized. fixes #23170. see #22246.
git-svn-id: https://develop.svn.wordpress.org/trunk@23367 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 20:33:27 +00:00
Sergey Biryukov 78b83d3fc1 PHPDoc fixes and additions. props bananastalktome, DrewAPicture. fixes #23313.
git-svn-id: https://develop.svn.wordpress.org/trunk@23365 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 18:07:08 +00:00
Sergey Biryukov d4f8fff530 Merge two different descriptions of siteurl and home options. fixes #22771.
git-svn-id: https://develop.svn.wordpress.org/trunk@23363 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-01 01:35:37 +00:00
Sergey Biryukov 98cbf77a95 Use digraphs for German umlauts in remove_accents(). props SergeyBiryukov, ocean90. fixes #3782.
git-svn-id: https://develop.svn.wordpress.org/trunk@23361 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:55:09 +00:00
Sergey Biryukov 2b5a4c5596 Display username (user_login) rather than user_nicename in Toolbar. fixes #22121.
git-svn-id: https://develop.svn.wordpress.org/trunk@23360 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:39:08 +00:00
Sergey Biryukov 5948d92355 Cast post_author to string in XML-RPC methods. props markoheijnen. fixes #22324.
git-svn-id: https://develop.svn.wordpress.org/trunk@23359 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:25:26 +00:00
Sergey Biryukov 78b69ff012 Pass old roles to set_user_role action. props awellis13. fixes #19134.
git-svn-id: https://develop.svn.wordpress.org/trunk@23358 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:15:25 +00:00
Sergey Biryukov 633d1902b5 Avoid 'Only variables should be passed by reference' warning. fixes #23232.
git-svn-id: https://develop.svn.wordpress.org/trunk@23357 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-31 01:01:19 +00:00
Andrew Ozz 23ef0e4e0b Remove BOM from jquery.query.js, fixes #23315
git-svn-id: https://develop.svn.wordpress.org/trunk@23356 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-29 20:52:32 +00:00
Andrew Ozz 5edc6b2711 Heartbeat API: first run, see #23216
git-svn-id: https://develop.svn.wordpress.org/trunk@23355 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-29 06:15:25 +00:00
Sergey Biryukov 9a00a0dcce Sanitize post_author and comment_count as integer fields. props GeertDD. fixes #22324.
git-svn-id: https://develop.svn.wordpress.org/trunk@23353 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-28 04:17:05 +00:00
Sergey Biryukov 3870e8f25c Make sure the array exists before adding an element to it. props rodrigosprimo. fixes #23272.
git-svn-id: https://develop.svn.wordpress.org/trunk@23346 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-25 12:24:10 +00:00
Andrew Nacin 44a1c8b227 Use correct cache bucket. Fixes copy-paste error in r23320. props kurtpayne. see #23167.
git-svn-id: https://develop.svn.wordpress.org/trunk@23341 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-24 17:21:55 +00:00
Andrew Ozz 995de61c9d Update Plupload to 1.5.5, fixes #23277 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23339 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-23 20:54:42 +00:00
bumpbot 5d2f7a3a4d Compress scripts/styles: 3.6-alpha-23334. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23334 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 22:57:24 +00:00
Andrew Nacin 00d0bff81b Validate pingback source URIs. Less verbose errors.
git-svn-id: https://develop.svn.wordpress.org/trunk@23329 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 22:30:08 +00:00
Sergey Biryukov 8de46fae8b Correct inline docs for cache.php. props ocean90. fixes #23058.
git-svn-id: https://develop.svn.wordpress.org/trunk@23328 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 20:44:30 +00:00
Andrew Ozz f8a254ec56 Autop: <samp> is not a block tag, props toscho, fixes #18807
git-svn-id: https://develop.svn.wordpress.org/trunk@23327 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 19:05:21 +00:00
Andrew Nacin ffdea33618 Comment Query: Use $this->query_vars instead of the nonexistent shorthand $q. see #23208.
git-svn-id: https://develop.svn.wordpress.org/trunk@23325 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 16:54:38 +00:00
Andrew Nacin 056e47fdef Use correct escaping function. props duck_.
git-svn-id: https://develop.svn.wordpress.org/trunk@23321 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 16:37:54 +00:00
Ryan Boren 7ff77d2e02 Avoid the appearance of a magic number.
Props nacin
see #23167


git-svn-id: https://develop.svn.wordpress.org/trunk@23320 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 15:52:13 +00:00
Ryan Boren 7442b3894b Explicitly set last_changed to 1 instead of the result of wp_cache_set(). Avoids ambiguity and works with cache backends that return void instead of boolean.
see #23167


git-svn-id: https://develop.svn.wordpress.org/trunk@23319 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 15:46:16 +00:00
Andrew Nacin e3ab06bb20 Verify tags used in the gallery shortcode.
git-svn-id: https://develop.svn.wordpress.org/trunk@23316 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 15:36:57 +00:00
Sergey Biryukov 3c38bfeaac Fix typo in phpdoc. fixes #23090.
git-svn-id: https://develop.svn.wordpress.org/trunk@23312 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 03:44:31 +00:00
Sergey Biryukov 41887b0aab Fix typo in phpdoc. props AKTed, ocean90. fixes #23242.
git-svn-id: https://develop.svn.wordpress.org/trunk@23311 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 03:08:05 +00:00
Ryan Boren b8a9b92f54 Declare wp_rewrite as global in _wp_menu_item_classes_by_context().
Props andrewryno
fixes #7337


git-svn-id: https://develop.svn.wordpress.org/trunk@23309 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-21 14:44:30 +00:00
Ryan Boren 818251f59e Whitespace cleanup.
Props dimadin
fixes #23126


git-svn-id: https://develop.svn.wordpress.org/trunk@23308 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-21 14:39:39 +00:00
Mark Jaquith df47c013ec Properly wipe capabilities from new site-independent multisite users by using the right key.
props wonderboymusic. fixes #15627

git-svn-id: https://develop.svn.wordpress.org/trunk@23307 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-18 15:30:55 +00:00
Mark Jaquith 524e73f175 Consistently use $wp_rewrite->index instead of hardcoding "index.php".
props wonderboymusic. fixes #7337

git-svn-id: https://develop.svn.wordpress.org/trunk@23305 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-18 13:44:22 +00:00
Andrew Nacin f0e451a30f Treat URL schemes as case insensitive when sanitizing them in esc_url().
props mdawaffe.
fixes #23187.
tests: [1184/tests]



git-svn-id: https://develop.svn.wordpress.org/trunk@23303 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-17 15:07:32 +00:00
Andrew Nacin 77cdc0ce65 jQuery 1.9 final. jQuery Migrate 1.0. Uncompressed for now, while we iron out kinks.
props jorbin. see #22975.



git-svn-id: https://develop.svn.wordpress.org/trunk@23301 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-15 17:52:42 +00:00
Ryan Boren bb70f60264 In get_pages(), cache queries to individual cache buckets instead of storing them in one cached array. Also, store post IDs instead of full objects. This reduces overall memory usage as well as the size of the cache buckets. Use incrementor style passive cache invalidation.
Props nprasath002
see #23167


git-svn-id: https://develop.svn.wordpress.org/trunk@23300 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-15 17:32:35 +00:00
Andrew Ozz 84827c87dc Media: when copying from "caption" (textarea) to "alt" (text input) also remove line breaks, props kovshenin, fixes #23176 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23298 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-14 17:34:45 +00:00
Mark Jaquith 22b416ef72 Do not notify the post author about comments if they are no longer a member of the blog. props nickmomrick. fixes #23136
git-svn-id: https://develop.svn.wordpress.org/trunk@23294 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-08 04:03:16 +00:00
bumpbot ae63b07abd Compress scripts/styles: 3.6-alpha-23288.
git-svn-id: https://develop.svn.wordpress.org/trunk@23288 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-05 02:33:20 +00:00
Andrew Nacin 2d12f38ad1 Don't unnecessarily re-render the attachment details view when editing the title and caption. Re-rendering causes issues with tabbing and focus, and is only necessary for other views (such as "Caption this image..." when editing a gallery).
props koopersmith.
fixes #23054.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23283 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 23:29:20 +00:00
bumpbot 3ef497695d Compress scripts/styles: 3.6-alpha-23279.
git-svn-id: https://develop.svn.wordpress.org/trunk@23279 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 22:34:43 +00:00
Andrew Nacin a8ce189639 Restore TinyMCE dropdowns to their 3.4 appearance in RTL. props helen. see #23101.
git-svn-id: https://develop.svn.wordpress.org/trunk@23275 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 20:11:59 +00:00
Ryan Boren 006d5940cd Try not to send Last-Modified, even with an empty value. Some servers interpret an empty value as the epoch.
Props nacin, slene, SergeyBiryukov, andy
see #23021 for trunk


git-svn-id: https://develop.svn.wordpress.org/trunk@23267 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 19:51:31 +00:00
bumpbot f6e22d011c Compress scripts/styles: 3.6-alpha-23266.
git-svn-id: https://develop.svn.wordpress.org/trunk@23266 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 17:39:23 +00:00
Peter Westwood d927271553 Tighten our braces. Fixes #23118 props evansolomon.
git-svn-id: https://develop.svn.wordpress.org/trunk@23265 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 10:13:51 +00:00
Andrew Nacin 672bd9a43d Media: Pass thumbnail and medium sizes to image_constrain_size_for_editor() to force constraints based on the current DB options for those sizes. History: see #22598, #22738.
props jond3r.
see #23102.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23264 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:52:18 +00:00
Daryl Koopersmith 0221f597b4 Media: Properly reset the "add to gallery" library to ensure it accurately reflects the current gallery. see #22815.
git-svn-id: https://develop.svn.wordpress.org/trunk@23263 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:28:12 +00:00
Andrew Nacin dec369d6c8 Media: Restore 3.4 behavior by consulting the old-school DB options for default align, size, and link properties.
This restores linking to media files as the default, over attachment pages. This 'default' cannot currently be changed by a user setting (per 3.4 behavior), due to the default database schema.

see #22841, for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23262 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:02:16 +00:00
Daryl Koopersmith e73a323a16 Media: Do not update attachment display user settings when a single attachment is inserted.
This is consistent with 3.4 behavior.

see #22841.


git-svn-id: https://develop.svn.wordpress.org/trunk@23261 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 08:01:19 +00:00
Daryl Koopersmith 2b5612e266 Media: Check that a router region exists before attempting to access its child views. Add relevant documentation. see #22930.
git-svn-id: https://develop.svn.wordpress.org/trunk@23260 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 07:08:37 +00:00
Daryl Koopersmith 45d01dad51 Media: Automatically select uploading attachments in single-select workflows.
The code now automatically selects uploading attachments in all workflows. In a workflow that selects multiple attachments, all attachments added to the upload queue are selected. In a workflow that selects a single attachment (e.g. selecting a featured image), the last attachment added to the upload queue is selected.

see #22817.


git-svn-id: https://develop.svn.wordpress.org/trunk@23259 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 06:44:21 +00:00
bumpbot 46e1c12b98 Compress scripts/styles: 3.6-alpha-23257.
git-svn-id: https://develop.svn.wordpress.org/trunk@23257 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 22:58:37 +00:00
Dion Hulse 6e405b1831 Correct an incorrect PHPDoc s/@see/@link/ introduced in r23254. See #22900
git-svn-id: https://develop.svn.wordpress.org/trunk@23256 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 08:05:48 +00:00
Dion Hulse 80bc158edd HTTP API: Introduce wp_is_writable() to wrap win_is_writable() and is_writable() to work around PHP Windows ACL issues. See #22900 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23255 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 08:04:11 +00:00
Dion Hulse b558464d2d Clarify the Documentation in win_is_writable() and move an inline comment to the Docblock, reduces confusion about what the function actually does. See #22900
git-svn-id: https://develop.svn.wordpress.org/trunk@23254 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 07:56:38 +00:00
Andrew Nacin f4a95f061d Ensure that get_archive_template() only loads a post type archive (archive-$post_type.php file) if there is exactly one post type in the query.
props scribu.
see #22956.
for trunk.



git-svn-id: https://develop.svn.wordpress.org/trunk@23249 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 06:17:47 +00:00
Daryl Koopersmith cc68dcede3 Don't include the default columns="3" in a gallery shortcode.
Shortcode attributes are strings; fix a variable type error in wp.media.gallery defaults.
props adamsilverstein.

see #22919.


git-svn-id: https://develop.svn.wordpress.org/trunk@23247 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-03 06:09:09 +00:00
bumpbot 3463baa996 Compress scripts/styles: 3.6-alpha-23230.
git-svn-id: https://develop.svn.wordpress.org/trunk@23230 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 22:58:34 +00:00
Mark Jaquith 7533dbadfe Add .webm (video/webm) to wp_get_mime_types(). props wonderboymusic. fixes #14659
git-svn-id: https://develop.svn.wordpress.org/trunk@23229 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 18:07:23 +00:00
Mark Jaquith 654154ad89 Move 'endif;' to its own line instead of having it room with a right curly brace. props dimadin. fixes #22586
git-svn-id: https://develop.svn.wordpress.org/trunk@23228 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 18:01:41 +00:00
Mark Jaquith 5e8cd5433a Fix the PHPDoc for the_post_thumbnail(). props georgestephanis. fixes #22885
git-svn-id: https://develop.svn.wordpress.org/trunk@23227 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-29 17:59:08 +00:00
Andrew Nacin a3e17acb53 RTL fixes for internal linking. props SergeyBiryukov, helen. see #22835, for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23226 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-28 22:57:32 +00:00
bumpbot 140881a378 Compress scripts/styles: 3.6-alpha-23223. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@23223 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 22:58:50 +00:00
Andrew Ozz c6d566d726 TinyMCE: don't remove empty <i>, <b>, <em> and <strong> matching the behavior in WordPress 3.4/TinyMCE 3.4.9, see #22477 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23222 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 22:44:10 +00:00
Andrew Nacin 410dda2a96 Update the script loader to reflect the actual version of Underscore.js in trunk. props markoheijnen.
git-svn-id: https://develop.svn.wordpress.org/trunk@23220 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 21:29:29 +00:00
Andrew Ozz d0a1164c15 TinyMCE: prevent <a> from wrapping block elements, fixes #22888 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23219 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 21:01:56 +00:00
Andrew Nacin 035eb58af9 Limit the execution of wp_enqueue_media() to once per page. Prevents multiple _wpMediaViewsL10n variables. see #22843.
git-svn-id: https://develop.svn.wordpress.org/trunk@23214 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 16:07:12 +00:00
Andrew Nacin 32b79f7d61 Always return arrays from get_post_ancestors(). Return an array when passed a value that evaluates to false.
props dannydehaan.
fixes #22882 for trunk.
Test: [1177/tests].



git-svn-id: https://develop.svn.wordpress.org/trunk@23212 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:48:18 +00:00
Andrew Nacin 41f3ab73ff Return WP_Error from wp_update_user() on a non-existent user, avoiding a fatal error in the process.
props n7studios, SergeyBiryukov.
fixes #22858 for trunk.
Unit tests: [11776/tests].



git-svn-id: https://develop.svn.wordpress.org/trunk@23210 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:36:08 +00:00
Andrew Nacin d7640fc5d2 Always call get_post() in get_page_uri() to ensure we have a WP_Post object, which lazy-loads the ancestors this function requires.
props dd32
fixes #22883
Unit tests: [1175/tests]



git-svn-id: https://develop.svn.wordpress.org/trunk@23208 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:26:05 +00:00
Andrew Nacin 975dbe9b12 Revert [21942] and have wp_publish_post() deal with the database directly. clean_post_cache() is now also called directly due to [21943].
fixes #22944 for trunk.
Unit tests: [1174/tests].

see #11399. see #21963.



git-svn-id: https://develop.svn.wordpress.org/trunk@23206 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-27 15:14:43 +00:00