Commit Graph

163 Commits

Author SHA1 Message Date
Andrew Nacin af13f116a3 Use set_post_format(), not wp_set_post_terms(), in XML-RPC mw_newPost and mw_editPost. props koke. see #20697.
git-svn-id: https://develop.svn.wordpress.org/trunk@21145 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 21:07:12 +00:00
Andrew Nacin 58cb1bce66 Check XML-RPC cap before running the query. props maxcutler. see #20991 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@21137 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 19:04:10 +00:00
Andrew Nacin 2501af58b6 Combine 'Invalid term ID.' into the 'Invalid term ID' string. props pavelevap. fixes #20809.
git-svn-id: https://develop.svn.wordpress.org/trunk@20996 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-05 16:25:05 +00:00
Ryan Boren 585d42c273 Consolodate some strings. Props pavelevap. fixes #20809
git-svn-id: https://develop.svn.wordpress.org/trunk@20972 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-01 19:05:30 +00:00
Ryan Boren 74653b1dbc Introduce _prepare_comment(). Avoid repeated auth attempts. Props maxcutler. fixes #20703
git-svn-id: https://develop.svn.wordpress.org/trunk@20856 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-23 20:40:40 +00:00
Ryan Boren ee33772ce7 Fix post limiting in wp_getPosts(). Props djcp. fixes #20723
git-svn-id: https://develop.svn.wordpress.org/trunk@20846 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-22 22:25:17 +00:00
Ryan Boren cf58f72258 Fix wp.getPages response when fetching pages the current user does not have caps for. Props maxcutler, redsweater. fixes #20629
git-svn-id: https://develop.svn.wordpress.org/trunk@20807 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-16 18:06:34 +00:00
Ryan Boren bb5afe1aaf Remove accidental bits in [20784]
git-svn-id: https://develop.svn.wordpress.org/trunk@20785 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 17:01:35 +00:00
Ryan Boren 8dfae17319 Call filters for default option values only as needed to reduce number of filter calls. Props Ott042. see #20448
git-svn-id: https://develop.svn.wordpress.org/trunk@20784 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 17:00:13 +00:00
Jon Cave 7e2e034b64 Minor XML-RPC documentation improvements. See #20566.
Also make newly introduced _is_greater_than_one() private.


git-svn-id: https://develop.svn.wordpress.org/trunk@20782 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-14 10:10:01 +00:00
Ryan Boren 5c2590bbd0 Remove extra underscore from XML-RPC filter. props maxcutler. fixes #20549
git-svn-id: https://develop.svn.wordpress.org/trunk@20775 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-11 21:04:47 +00:00
Ryan Boren 8c50f982ea Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@20715 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-03 16:41:59 +00:00
Jon Cave 86280c6d68 Declare visibility of _prepare_post_type() as protected. See #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20714 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-03 15:59:50 +00:00
Andrew Nacin 0ebf7aec8b We indent with spaces, not tabs. props sivel. fixes #20394.
git-svn-id: https://develop.svn.wordpress.org/trunk@20703 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 21:13:08 +00:00
Andrew Nacin 9f57ec7c6c Have the $fields argument for XML-RPC's wp.getPostType, getPostTypes, wp.getTaxonomy and wp.getTaxonomies take the names of the post type or taxonomy object keys that will be returned.
* capabilities becomes cap
 * object_types becomes object_type

fixes #17626.



git-svn-id: https://develop.svn.wordpress.org/trunk@20696 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-02 20:29:34 +00:00
Andrew Nacin 9761a56833 Kill all notices in XML-RPC found when running the test suite with WP_DEBUG. see [UT706], [UT707]. see #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20671 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 21:03:50 +00:00
Andrew Nacin 8868595fd4 Fix copy-paste issues in XML-RPC's _prepare_taxonomy(). see #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20670 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 20:33:06 +00:00
Andrew Nacin be1c42cf7a Use correct variables. props batmoo. fixes #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20665 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-01 01:11:18 +00:00
Andrew Nacin 0a15d9f966 Use correct variables. props batmoo. fixes #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20664 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 23:45:01 +00:00
Andrew Nacin 23cbaa70c8 Add @param for the $fields parameter for XML-RPC's _prepare_taxonomy(). props SergeyBiryukov, fixes #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20638 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 00:25:14 +00:00
Andrew Nacin e7478f0b3b Check for the existence of a post before calling current_user_can() with a meta cap on that object. fixes #20336.
git-svn-id: https://develop.svn.wordpress.org/trunk@20637 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-30 00:19:32 +00:00
Andrew Nacin 43025c102b Introduce minimum_args() method in XML-RPC and leverage it to return errors for insufficient arguments for methods that are new in 3.4.
props maxcutler,  markoheijnen.
fixes #20394.



git-svn-id: https://develop.svn.wordpress.org/trunk@20636 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-28 21:25:25 +00:00
Andrew Nacin e3ba704f17 Use correct variable. Caught by unit tests. see #20566.
git-svn-id: https://develop.svn.wordpress.org/trunk@20635 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-28 21:22:07 +00:00
Andrew Nacin c072db3732 Clean up the XML-RPC 3.4 methods with regards to consistency and future compatibility.
* Limit returned taxonomy and post type objects to a specific type-cast whitelist of fields.
 * Add $filter and $fields to wp.getTaxonomies to match the functionality of wp.getPostTypes.
 * Prevent the post type from being chnaged in _insert_post().
 * Don't check post_type_supports() in _insert_post().
 * Align handling of sticky posts with those of core.
 * Force tags and categories to go through terms and terms_names, rather than tags_input and post_category.
fixes #20566. props nacin, maxcutler.



git-svn-id: https://develop.svn.wordpress.org/trunk@20632 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-28 18:48:10 +00:00
Ryan Boren 9250cf00d4 XML-RPC featured image and media preparation cleanup.
* Introduce _prepare_media_item().
* Use it to prepare post_thumbnail info in _prepare_post().
* Also use _prepare_media_item() in wp_getMediaLibrary() and wp_getMediaItem() so that all media is prepared consistently and uses the same filters.

Props maxcutler
Fixes #20409


git-svn-id: https://develop.svn.wordpress.org/trunk@20608 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-26 20:56:52 +00:00
Andrew Nacin 5d550a9e59 Remove duplicated do_action wp.getPosts call. props maxcutler.
git-svn-id: https://develop.svn.wordpress.org/trunk@20607 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-26 16:28:06 +00:00
Andrew Nacin c38e6d3603 Remove extra underscore from four XML-RPC filters. props maxcutler. fixes #20549.
git-svn-id: https://develop.svn.wordpress.org/trunk@20604 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 22:28:43 +00:00
Andrew Nacin 4998de66a0 Do not check for a meta value in XML-RPC set_custom_fields unless we know we are editing a key. Prevents a notice when a custom field is being deleted. props scott.gonzalez. fixes #20543.
git-svn-id: https://develop.svn.wordpress.org/trunk@20583 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 14:26:31 +00:00
Ryan Boren 643618503c Revert [20568] until a publish_post cap is introduced. see #20474
git-svn-id: https://develop.svn.wordpress.org/trunk@20576 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-24 16:22:12 +00:00
Ryan Boren 5b9e7c07ba Check the publish_post cap when publishing an already existing post.
Props nprasath002
Fixes #20474


git-svn-id: https://develop.svn.wordpress.org/trunk@20568 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:54:30 +00:00
Ryan Boren 7e45462cbd Require the edit_posts capability for wp_getPostFormats.
Props maxcutler.
Fixes #20154


git-svn-id: https://develop.svn.wordpress.org/trunk@20566 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-23 21:41:50 +00:00
Andrew Nacin 12fdeee2d2 Move from $taxonomy_name to $taxonomy in XML-RPC for consistency with the rest of the core APIs. props maxcutler, fixes #20397.
git-svn-id: https://develop.svn.wordpress.org/trunk@20469 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-15 16:47:31 +00:00
Andrew Nacin 9d5156c1bb Move from 'featured image' to 'post thumbnail' in the XML-RPC API. props maxcutler, fixes #20396.
git-svn-id: https://develop.svn.wordpress.org/trunk@20462 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-13 20:23:31 +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
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
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
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
Peter Westwood 45cfe03be4 XMLRPC: In mw_newPost check to see if the post_status has been supplied before trying to use it to avoid undefined array access notices. Fixes #19774 props maxcutler.
git-svn-id: https://develop.svn.wordpress.org/trunk@20323 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 13:13:13 +00:00
Peter Westwood de2a91b1c4 XMLRPC: Fix bugs in mw_editPost hilighted by tests in [UT593]
* Feature image code did not actually set the feature image - See #18429
 * This api call could trash post data - Fixes #20321.


git-svn-id: https://develop.svn.wordpress.org/trunk@20322 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 11:59:51 +00:00
Peter Westwood f7ef53292c XMLRPC: Fix the featured image support in mw_newPost to use the correct variable names. See #18429 and [UT592].
git-svn-id: https://develop.svn.wordpress.org/trunk@20321 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-29 11:06:17 +00:00
Peter Westwood abd47c9ff9 XMLRPC: Add the object ID to the return data of wp.uploadFile/metaWeblog.newMediaObject so that it can be used in other api calls e.g. setting featured image see #15098 props maxcutler
git-svn-id: https://develop.svn.wordpress.org/trunk@20305 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-28 12:00:50 +00:00
Peter Westwood a42caf87b4 XMLRPC: Add new wp.getPostType and wp.getPostTypes apis. See #18436 props maxcutler, markoheijnen and nprasath002.
git-svn-id: https://develop.svn.wordpress.org/trunk@20271 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 17:53:14 +00:00
Peter Westwood d605d742d5 XMLRPC: Add support for Feature Images to the new wp.xxxPost apis. See #18429 props maxcutler and markoheijen.
git-svn-id: https://develop.svn.wordpress.org/trunk@20270 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-23 15:35:44 +00:00
Ryan Boren d89a24a902 Consolidate some strings. Props ramiy. see #20216
git-svn-id: https://develop.svn.wordpress.org/trunk@20215 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-19 19:04:49 +00:00
Peter Westwood cd40c68bd8 XMLRPC: Start casting datatypes in _prepare_term so as to ensure consistent datatypes in our responses. See #18438.
git-svn-id: https://develop.svn.wordpress.org/trunk@20159 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 13:31:32 +00:00
Peter Westwood 5257bcfcc3 XMLRPC: Add some xmlrpc_call_success_* actions to some of the post creation/deletion calls. Fixes #14283 props ericmann, simonwheatley.
git-svn-id: https://develop.svn.wordpress.org/trunk@20158 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 13:16:26 +00:00
Peter Westwood f22048cf45 XMLRPC: Add some xmlrpc_call_success_* actions to some of the credit/edit/delete calls. Fixes #17109 props ericmann.
git-svn-id: https://develop.svn.wordpress.org/trunk@20157 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 13:12:06 +00:00
Peter Westwood 157ffb3f85 XMLRPC: Expose the extended more text to XMLRPC clients from metaWeblog.getPost(). Fixes #10933 props koke, ericmann.
git-svn-id: https://develop.svn.wordpress.org/trunk@20156 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 12:50:21 +00:00
Peter Westwood 6101284e7f XMLRPC: Expose the fact that the current theme supports featured images to XMLRPC clients so they can make intelligent UI decisions.
git-svn-id: https://develop.svn.wordpress.org/trunk@20155 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 12:19:45 +00:00
Peter Westwood 63bbecb681 XMLRPC: Remove the "Backward Compatibility" code from the new api as we don't need to support this older format and it keeps the new api cleaner.
The new Posts API is designed so that you can fetch a post with get, update the data structure returned and submit that with edit and so we need to ensure to only include in get data in a single form - tags and categories are returned as terms.
See #18429


git-svn-id: https://develop.svn.wordpress.org/trunk@20154 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 11:24:43 +00:00
Peter Westwood 8bbfb2b2ef XMLRPC: Intoduce a date generation helper method to improve the dates returned over XMLRPC when we have a 0 date stored for drafts.
This improves the ability of clients to work with the new wp Post APIs. See #18429 and #19733 props maxcutler. 


git-svn-id: https://develop.svn.wordpress.org/trunk@20153 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-08 11:19:53 +00:00
Peter Westwood f3c63b54c1 XML-RPC: Initial implementation of Taxonomy and Term APIs.
Implements: wp.newTerm, wp.editTerm, wp.deleteTerm, wp.getTerm, wp.getTerms, wp.getTaxonomy and wp.getTaxonomies

See: #18438, #18439, #18440, #18441, #18442, #18443, and #18444 props maxcutler, markoheijnen and nprasath002.


git-svn-id: https://develop.svn.wordpress.org/trunk@20137 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-07 17:02:22 +00:00
Andrew Nacin 11fd4b45c0 Introduce get_page_template_slug( $id = null ) to return a page's template (like "showcase.php"). Returns false if post ID is not a page, and an empty string for the default page template. Use the function across core. props billerickson for initial patch. fixes #18750.
git-svn-id: https://develop.svn.wordpress.org/trunk@20075 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 18:56:54 +00:00
Andrew Nacin 8112ac28b7 We indent with tabs, but align with spaces.
git-svn-id: https://develop.svn.wordpress.org/trunk@20074 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 18:06:30 +00:00
Andrew Nacin b33b1839cc Add template and stylesheet to readonly options that can be pulled from XML-RPC. props koke, ericmann. see #17132.
git-svn-id: https://develop.svn.wordpress.org/trunk@20073 602fd350-edb4-49c9-b593-d223f7449a82
2012-03-02 17:59:47 +00:00
Ryan Boren 89e9bcc1d6 Pinking shears 6-20000
git-svn-id: https://develop.svn.wordpress.org/trunk@20000 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-27 19:46:52 +00:00
Andrew Nacin ee01523b96 Deprecate ancient "debugging" tools.
* logIO() and the global $xmlrpc_logging in XML-RPC.
 * log_app() and the global $app_logging in APP.
 * debug_fwrite(), debug_fopen(), debug_fclose(), and $debug.
see #20051.



git-svn-id: https://develop.svn.wordpress.org/trunk@19935 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-17 00:02:42 +00:00
Ryan Boren 362ef00fc4 Disallow changing the post type in mw_editPost(). see #18429
git-svn-id: https://develop.svn.wordpress.org/trunk@19914 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-13 21:01:55 +00:00
Ryan Boren 4d6b3dd997 Remove unnecessary cap check in wp_newPage(). mw_newPost() will handle it. Props nprasath002. fixes #19981
git-svn-id: https://develop.svn.wordpress.org/trunk@19905 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-10 20:49:27 +00:00
Joseph Scott 0ae4ea81c1 Provide the attachment_id of a media item in the XML-RPC call wp.getMediaItem.
Props skithund
Fixes #18683


git-svn-id: https://develop.svn.wordpress.org/trunk@19885 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 23:32:25 +00:00
Joseph Scott 08160dcccf Expose image_default_link_type, image_default_size, and image_default_align
options via XML-RPC

Props koke
Fixes #18126


git-svn-id: https://develop.svn.wordpress.org/trunk@19884 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 23:28:23 +00:00
Joseph Scott 42ed9afd4c Expose the post modified date (in blog TZ and GMT) via XML-RPC
Props ocollet
Fixes #19027


git-svn-id: https://develop.svn.wordpress.org/trunk@19883 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 23:25:11 +00:00
Andrew Nacin 9c98b02e1d Combine two strings. props kenan3008, see #18429.
git-svn-id: https://develop.svn.wordpress.org/trunk@19879 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 18:50:25 +00:00
Ryan Boren 62cccd2642 s/_wp_insertPost/_insert_post/. Helper funcs should follow core rather than xmlrpc style. see #18429
git-svn-id: https://develop.svn.wordpress.org/trunk@19873 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 17:00:19 +00:00
Ryan Boren b44aafa79d Formatting cleanup. see #18429
git-svn-id: https://develop.svn.wordpress.org/trunk@19869 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 16:04:58 +00:00
Jon Cave 99fbbdbd4a Mark wp_editPost() documentation as docblock. See #18429.
git-svn-id: https://develop.svn.wordpress.org/trunk@19868 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 16:03:31 +00:00
Ryan Boren 1496151d54 Simplify cap checking. Props nprasath002. see #18429
git-svn-id: https://develop.svn.wordpress.org/trunk@19867 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 15:40:26 +00:00
Ryan Boren 6fe3f7639e Space between if and open paren
git-svn-id: https://develop.svn.wordpress.org/trunk@19864 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-08 14:54:15 +00:00
Peter Westwood 9f8a83a3c1 XMLRPC: Introduce new create,read,update and delete XMLRPC apis for Posts, Pages and all Custom Post Types.
Introduces: wp.newPost, wp.editPost, wp.deletePost, wp.getPost, and wp.getPosts
See #18429, #18430, #18431, #18432, and #18433 props maxcutler and markoheijnen.


git-svn-id: https://develop.svn.wordpress.org/trunk@19848 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-07 11:33:39 +00:00
Jon Cave 156048ca52 split was deprecated in PHP 5.3.0, so use explode instead. Props garyc40. Fixes #16325.
git-svn-id: https://develop.svn.wordpress.org/trunk@19726 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-09 21:20:51 +00:00
Ryan Boren 2b186b0c45 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Andrew Nacin 921ba280d2 Expose default_ping_status and default_comment_status via XML-RPC. props daniloercoli. fixes #18566.
git-svn-id: https://develop.svn.wordpress.org/trunk@19706 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-07 19:08:48 +00:00
Ryan Boren a8d77cbae9 User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:50:54 +00:00
Ryan Boren 5e76729992 One newline is enough.
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-05 20:10:39 +00:00
Ryan Boren 676ba7043e Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Ryan Boren d8db24fafa Cast author IDs to strings. Props yoavf. fixes #18869
git-svn-id: https://develop.svn.wordpress.org/trunk@19071 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-27 18:36:49 +00:00
Joseph Scott 25455363e9 Follow the pattern of wp-admin a bit more for metaWeblog.newPost by using get_default_post_to_edit() to generate a post ID before the post is actually published.
Fixes #18812
Props koke, nacin


git-svn-id: https://develop.svn.wordpress.org/trunk@18933 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-10 21:27:05 +00:00
Jon Cave 205aa5ba5c Fix typos in documentation (wp-includes/[a-h]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18633 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-03 16:02:41 +00:00
Andrew Nacin 4b3374e66d Check for comment existence before checking edit_comment meta cap. props xknown, fixes #18104.
git-svn-id: https://develop.svn.wordpress.org/trunk@18584 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-23 10:22:34 +00:00
Ryan Boren 7edcf1b07e Use *_metadata_by_mid() API in set_custom_fields(). Handle slashing when checking caps for key. see #18195
git-svn-id: https://develop.svn.wordpress.org/trunk@18501 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-03 18:20:15 +00:00
Ryan Boren 6b5d8397b0 Introduce register_meta(), get_metadata_by_mid(), and *_post_meta capabilities. fixes #17850
git-svn-id: https://develop.svn.wordpress.org/trunk@18445 602fd350-edb4-49c9-b593-d223f7449a82
2011-07-20 22:04:35 +00:00
Ryan Boren 46d96c7704 Bring out the pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@18254 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-10 23:01:45 +00:00
Ryan Boren 4f8c05a1cb Revert [17663]. fixes #17131
git-svn-id: https://develop.svn.wordpress.org/trunk@18119 602fd350-edb4-49c9-b593-d223f7449a82
2011-06-02 20:03:27 +00:00
Ryan Boren 83a095c441 Use static strings. Props niallkennedy. fixes #17169
git-svn-id: https://develop.svn.wordpress.org/trunk@17823 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-06 19:51:47 +00:00
Ryan Boren 9730cb8d15 Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 20:05:12 +00:00
Joseph Scott ac31573fab Expose the content width as a read only option via XML-RPC.
Fixes #17131 props koke, nacin


git-svn-id: https://develop.svn.wordpress.org/trunk@17663 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-20 15:26:38 +00:00
Joseph Scott 19eed5a750 Allow Pages to have a status of pending.
Fixes #17000 props mrroundhill, nprasath002


git-svn-id: https://develop.svn.wordpress.org/trunk@17651 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-18 17:30:58 +00:00
Joseph Scott 0d9e3e95b9 Add support to wp.getPostFormats to provide a list of the currently supported post formats in addition to the complete list.
Fixes #17094 


git-svn-id: https://develop.svn.wordpress.org/trunk@17650 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-18 17:27:29 +00:00
Joseph Scott a44ccc5b13 Include the post status in the response for mt.getRecentPostTitles calls
Fixes #17091 props daniloercoli


git-svn-id: https://develop.svn.wordpress.org/trunk@17649 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-18 17:16:46 +00:00
Joseph Scott b0d19f6b30 Don't reset the post slug on XML-RPC calls.
Fixes #12947 props cfinke, nprasath002


git-svn-id: https://develop.svn.wordpress.org/trunk@17648 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-18 16:32:26 +00:00
Peter Westwood ca4062c861 More better phpdoc for XMLRPC functions. See #15238 props koke.
git-svn-id: https://develop.svn.wordpress.org/trunk@17647 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-18 07:26:42 +00:00
Peter Westwood c059cda337 The beginings of better phpdoc for XMLRPC functions. See #15238 props koke.
git-svn-id: https://develop.svn.wordpress.org/trunk@17646 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-18 07:23:47 +00:00
Andrew Nacin a1822ad76c Change this string to one that already exists. props ericmann, fixes #16806.
git-svn-id: https://develop.svn.wordpress.org/trunk@17554 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-24 16:12:47 +00:00
scribu 08ffc2d291 Get only required fields in wp_getAuthors(). Props duck_. See #15854
git-svn-id: https://develop.svn.wordpress.org/trunk@17011 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 23:43:24 +00:00
Ryan Boren c1e26ef82c Add like_escape() to some queries. fixes #15764
git-svn-id: https://develop.svn.wordpress.org/trunk@16999 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-16 14:22:41 +00:00
Ryan Boren 6dc2d07bc4 Pink trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@16900 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-13 21:21:50 +00:00
Dion Hulse d2842aac53 Include a blank email to prevent a PHP notice when pingbacks are being added, causes XML-RPC responses to be malformed with WP_DEBUG.
git-svn-id: https://develop.svn.wordpress.org/trunk@16873 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-11 07:17:50 +00:00
Mark Jaquith daadad84a6 Work around some unset variable notices in xmlrpc.php. props redsweater. props sorich87. fixes #10665
git-svn-id: https://develop.svn.wordpress.org/trunk@16824 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-08 22:00:40 +00:00
Peter Westwood dd8cff8381 Correct the logic as there is no publish_post cap.
git-svn-id: https://develop.svn.wordpress.org/trunk@16802 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-08 17:07:55 +00:00
Peter Westwood 10244cc066 Check for extra caps here too.
git-svn-id: https://develop.svn.wordpress.org/trunk@16801 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-08 16:52:08 +00:00