ryan
|
a856f757db
|
Remove unnecessary cap check in wp_newPage(). mw_newPost() will handle it. Props nprasath002. fixes #19981
git-svn-id: http://svn.automattic.com/wordpress/trunk@19905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-10 20:49:27 +00:00 |
|
josephscott
|
bd6038ce1a
|
Provide the attachment_id of a media item in the XML-RPC call wp.getMediaItem.
Props skithund
Fixes #18683
git-svn-id: http://svn.automattic.com/wordpress/trunk@19885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-08 23:32:25 +00:00 |
|
josephscott
|
d116969cef
|
Expose image_default_link_type, image_default_size, and image_default_align
options via XML-RPC
Props koke
Fixes #18126
git-svn-id: http://svn.automattic.com/wordpress/trunk@19884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-08 23:28:23 +00:00 |
|
josephscott
|
ce4e3dc47b
|
Expose the post modified date (in blog TZ and GMT) via XML-RPC
Props ocollet
Fixes #19027
git-svn-id: http://svn.automattic.com/wordpress/trunk@19883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-08 23:25:11 +00:00 |
|
nacin
|
a0ec80fff3
|
Combine two strings. props kenan3008, see #18429.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-08 18:50:25 +00:00 |
|
ryan
|
391fd7003d
|
s/_wp_insertPost/_insert_post/. Helper funcs should follow core rather than xmlrpc style. see #18429
git-svn-id: http://svn.automattic.com/wordpress/trunk@19873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-08 17:00:19 +00:00 |
|
ryan
|
4c3c859461
|
Formatting cleanup. see #18429
git-svn-id: http://svn.automattic.com/wordpress/trunk@19869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-08 16:04:58 +00:00 |
|
duck_
|
357fc30771
|
Mark wp_editPost() documentation as docblock. See #18429.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-08 16:03:31 +00:00 |
|
ryan
|
7a136d0bf9
|
Simplify cap checking. Props nprasath002. see #18429
git-svn-id: http://svn.automattic.com/wordpress/trunk@19867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-08 15:40:26 +00:00 |
|
ryan
|
afcce70613
|
Space between if and open paren
git-svn-id: http://svn.automattic.com/wordpress/trunk@19864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-08 14:54:15 +00:00 |
|
westi
|
4cb4acb372
|
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: http://svn.automattic.com/wordpress/trunk@19848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-02-07 11:33:39 +00:00 |
|
duck_
|
81a7ad2c81
|
split was deprecated in PHP 5.3.0, so use explode instead. Props garyc40. Fixes #16325.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-01-09 21:20:51 +00:00 |
|
ryan
|
e3b46b25d3
|
Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: http://svn.automattic.com/wordpress/trunk@19712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-01-08 17:01:11 +00:00 |
|
nacin
|
01736fb650
|
Expose default_ping_status and default_comment_status via XML-RPC. props daniloercoli. fixes #18566.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-01-07 19:08:48 +00:00 |
|
ryan
|
83b131f8e3
|
User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
git-svn-id: http://svn.automattic.com/wordpress/trunk@19687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-01-05 20:50:54 +00:00 |
|
ryan
|
616c35e71c
|
One newline is enough.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2012-01-05 20:10:39 +00:00 |
|
ryan
|
07ff8b216b
|
Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: http://svn.automattic.com/wordpress/trunk@19593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-12-13 23:45:31 +00:00 |
|
ryan
|
d8892db612
|
Cast author IDs to strings. Props yoavf. fixes #18869
git-svn-id: http://svn.automattic.com/wordpress/trunk@19071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-10-27 18:36:49 +00:00 |
|
josephscott
|
d6a835521f
|
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: http://svn.automattic.com/wordpress/trunk@18933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-10-10 21:27:05 +00:00 |
|
duck_
|
e4ed63fc6f
|
Fix typos in documentation (wp-includes/[a-h]). See #18560.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-09-03 16:02:41 +00:00 |
|
nacin
|
3ee964c10c
|
Check for comment existence before checking edit_comment meta cap. props xknown, fixes #18104.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-08-23 10:22:34 +00:00 |
|
ryan
|
852627fc48
|
Use *_metadata_by_mid() API in set_custom_fields(). Handle slashing when checking caps for key. see #18195
git-svn-id: http://svn.automattic.com/wordpress/trunk@18501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-08-03 18:20:15 +00:00 |
|
ryan
|
4ad0954961
|
Introduce register_meta(), get_metadata_by_mid(), and *_post_meta capabilities. fixes #17850
git-svn-id: http://svn.automattic.com/wordpress/trunk@18445 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-07-20 22:04:35 +00:00 |
|
ryan
|
daa14c36f9
|
Bring out the pinking shears.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-06-10 23:01:45 +00:00 |
|
ryan
|
d92ecb674e
|
Revert [17663]. fixes #17131
git-svn-id: http://svn.automattic.com/wordpress/trunk@18119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-06-02 20:03:27 +00:00 |
|
ryan
|
a972403a40
|
Use static strings. Props niallkennedy. fixes #17169
git-svn-id: http://svn.automattic.com/wordpress/trunk@17823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-05-06 19:51:47 +00:00 |
|
ryan
|
04487fc268
|
Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: http://svn.automattic.com/wordpress/trunk@17771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-29 20:05:12 +00:00 |
|
josephscott
|
acdb6ea093
|
Expose the content width as a read only option via XML-RPC.
Fixes #17131 props koke, nacin
git-svn-id: http://svn.automattic.com/wordpress/trunk@17663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-20 15:26:38 +00:00 |
|
josephscott
|
03b604d309
|
Allow Pages to have a status of pending.
Fixes #17000 props mrroundhill, nprasath002
git-svn-id: http://svn.automattic.com/wordpress/trunk@17651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-18 17:30:58 +00:00 |
|
josephscott
|
c8aeb477bc
|
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: http://svn.automattic.com/wordpress/trunk@17650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-18 17:27:29 +00:00 |
|
josephscott
|
ca45144dd5
|
Include the post status in the response for mt.getRecentPostTitles calls
Fixes #17091 props daniloercoli
git-svn-id: http://svn.automattic.com/wordpress/trunk@17649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-18 17:16:46 +00:00 |
|
josephscott
|
3f4f150632
|
Don't reset the post slug on XML-RPC calls.
Fixes #12947 props cfinke, nprasath002
git-svn-id: http://svn.automattic.com/wordpress/trunk@17648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-18 16:32:26 +00:00 |
|
westi
|
0f7cac9f64
|
More better phpdoc for XMLRPC functions. See #15238 props koke.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-18 07:26:42 +00:00 |
|
westi
|
50299d53c0
|
The beginings of better phpdoc for XMLRPC functions. See #15238 props koke.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-04-18 07:23:47 +00:00 |
|
nacin
|
ec382258b3
|
Change this string to one that already exists. props ericmann, fixes #16806.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2011-03-24 16:12:47 +00:00 |
|
scribu
|
6151eced55
|
Get only required fields in wp_getAuthors(). Props duck_. See #15854
git-svn-id: http://svn.automattic.com/wordpress/trunk@17011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-16 23:43:24 +00:00 |
|
ryan
|
7e25e3b363
|
Add like_escape() to some queries. fixes #15764
git-svn-id: http://svn.automattic.com/wordpress/trunk@16999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-16 14:22:41 +00:00 |
|
ryan
|
3949ce12d0
|
Pink trailing whites.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-13 21:21:50 +00:00 |
|
dd32
|
566f62b824
|
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: http://svn.automattic.com/wordpress/trunk@16873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-11 07:17:50 +00:00 |
|
markjaquith
|
e0e9dbb8eb
|
Work around some unset variable notices in xmlrpc.php. props redsweater. props sorich87. fixes #10665
git-svn-id: http://svn.automattic.com/wordpress/trunk@16824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-08 22:00:40 +00:00 |
|
westi
|
fe92a01932
|
Correct the logic as there is no publish_post cap.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-08 17:07:55 +00:00 |
|
westi
|
b3bc43ab49
|
Check for extra caps here too.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-08 16:52:08 +00:00 |
|
westi
|
38d526d196
|
Correct some more cap checks to use the correct caps.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-08 16:18:42 +00:00 |
|
westi
|
d9b7e7cf81
|
Condense the logic. Props nacin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-08 15:59:56 +00:00 |
|
westi
|
183e561585
|
Ensure that we always check the right cap when posts are added or edited.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-08 15:31:17 +00:00 |
|
ryan
|
4cfb079fc5
|
Pass NULL as second arg to wp_upload_bits() to avoid deprecated warning. Props koke. fixes #15698
git-svn-id: http://svn.automattic.com/wordpress/trunk@16769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-07 18:32:07 +00:00 |
|
nacin
|
a64b107868
|
This should be a string. fixes #15704.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-06 16:32:25 +00:00 |
|
markjaquith
|
b608e8ca3e
|
Argh. Missed another s/default/standard/ in [16679]. Any others? see #15582.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-12-02 04:38:42 +00:00 |
|
westi
|
b0d6453462
|
Cast to string so we return the correct datatype. See #15517 props barry.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-11-24 17:51:39 +00:00 |
|
westi
|
1a0818d477
|
Ensure that we return post IDs as strings to honour API defintions. See #15517
git-svn-id: http://svn.automattic.com/wordpress/trunk@16508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
|
2010-11-20 15:50:56 +00:00 |
|