Make WordPress Core

Ticket #33425: class-wp-xmlrpc-server.diff

File class-wp-xmlrpc-server.diff, 4.2 KB (added by tonyrankin, 11 years ago)

Actual diff file :p

Line 
1520a521,615
2> ),
3> 'blog_public' => array(
4> 'desc' => __( 'Search engine privacy' ),
5> 'readonly' => false,
6> 'option' => 'blog_public'
7> ),
8> 'default_category' => array(
9> 'desc' => __( 'Default post category, new posts are added to this category' ),
10> 'readonly' => false,
11> 'option' => 'default_category'
12> ),
13> 'default_post_format' => array(
14> 'desc' => __( 'Default post format, new posts are of this format' ),
15> 'readonly' => false,
16> 'option' => 'default_post_format'
17> ),
18> 'default_comment_status' => array(
19> 'desc' => __( 'Whether or not comments are allowed' ),
20> 'readonly' => false,
21> 'option' => 'default_comment_status'
22> ),
23> 'default_pingback_flag' => array(
24> 'desc' => __( 'Whether or not to notify blogs linked from a post' ),
25> 'readonly' => false,
26> 'option' => 'default_pingback_flag'
27> ),
28> 'default_ping_status' => array(
29> 'desc' => __( 'Allows other sites to notify this site when they link to it' ),
30> 'readonly' => false,
31> 'option' => 'default_ping_status'
32> ),
33> 'close_comments_for_old_posts' => array(
34> 'desc' => __( 'Disables comments on a post after a specified time period' ),
35> 'readonly' => false,
36> 'option' => 'close_comments_for_old_posts'
37> ),
38> 'close_comments_days_old' => array(
39> 'desc' => __( 'The time period till post comments are disabled if close_comments_for_old_posts is set' ),
40> 'readonly' => false,
41> 'option' => 'close_comments_days_old'
42> ),
43> 'thread_comments' => array(
44> 'desc' => __( 'Allow nested comments' ),
45> 'readonly' => false,
46> 'option' => 'thread_comments'
47> ),
48> 'thread_comments_depth' => array(
49> 'desc' => __( 'Maximum number of reply threads per comment' ),
50> 'readonly' => false,
51> 'option' => 'thread_comments_depth'
52> ),
53> 'page_comments' => array(
54> 'desc' => __( 'Organize comments by pages' ),
55> 'readonly' => false,
56> 'option' => 'page_comments'
57> ),
58> 'comments_per_page' => array(
59> 'desc' => __( 'Number of comments on each page if page_comments is set' ),
60> 'readonly' => false,
61> 'option' => 'comments_per_page'
62> ),
63> 'comment_moderation' => array(
64> 'desc' => __( 'Send comments to a queue for approval before they are made visible' ),
65> 'readonly' => false,
66> 'option' => 'comment_moderation'
67> ),
68> 'require_name_email' => array(
69> 'desc' => __( 'Users must provide a name and email address to comment on posts' ),
70> 'readonly' => false,
71> 'option' => 'require_name_email'
72> ),
73> 'comment_registration' => array(
74> 'desc' => __( 'Comments can only be made from registered users' ),
75> 'readonly' => false,
76> 'option' => 'comment_registration'
77> ),
78> 'comment_whitelist' => array(
79> 'desc' => __( 'Automatically approve comments from known users' ),
80> 'readonly' => false,
81> 'option' => 'comment_whitelist'
82> ),
83> 'comment_max_links' => array(
84> 'desc' => __( 'Maximum number of links allowed in a comment before being sent to the moderation queue' ),
85> 'readonly' => false,
86> 'option' => 'comment_max_links'
87> ),
88> 'moderation_keys' => array(
89> 'desc' => __( 'Any content of a comment that matches an item in this list is immediately sent to the moderation queue' ),
90> 'readonly' => false,
91> 'option' => 'moderation_keys'
92> ),
93> 'blacklist_keys' => array(
94> 'desc' => __( 'Any content of a comment that matches an item in this list is immediately marked as spam' ),
95> 'readonly' => false,
96> 'option' => 'blacklist_keys'
975237,5238c5332,5333
98< if ( ('publish' == $post_status) ) {
99< if ( ( 'page' == $post_type ) && ! current_user_can( 'publish_pages' ) ) {
100---
101> if ( 'publish' == $post_status || 'private' == $post_status ) {
102> if ( 'page' == $post_type && ! current_user_can( 'publish_pages' ) ) {