diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2018-03-10 19:17:40 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-03-10 19:17:40 -0500 |
commit | 1ede1db458d07b50cfede5937958cb20752df616 (patch) | |
tree | b7484d24649fb07b8a591148ada617b14d8bbc6d /plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php | |
parent | Update akismet 4.0.3 (diff) | |
download | blogs-gentoo-1ede1db458d07b50cfede5937958cb20752df616.tar.gz blogs-gentoo-1ede1db458d07b50cfede5937958cb20752df616.tar.bz2 blogs-gentoo-1ede1db458d07b50cfede5937958cb20752df616.zip |
Update jetpack 5.9
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php')
-rw-r--r-- | plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php b/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php index 7d348da4..cf421fad 100644 --- a/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php +++ b/plugins/jetpack/json-endpoints/class.wpcom-json-api-site-settings-endpoint.php @@ -100,6 +100,8 @@ new WPCOM_JSON_API_Site_Settings_Endpoint( array( 'site_icon' => '(int) Media attachment ID to use as site icon. Set to zero or an otherwise empty value to clear', 'api_cache' => '(bool) Turn on/off the Jetpack JSON API cache', 'posts_per_page' => '(int) Number of posts to show on blog pages', + 'posts_per_rss' => '(int) Number of posts to show in the RSS feed', + 'rss_use_excerpt' => '(bool) Whether the RSS feed will use post excerpts', ), 'response_format' => array( @@ -348,6 +350,8 @@ class WPCOM_JSON_API_Site_Settings_Endpoint extends WPCOM_JSON_API_Endpoint { 'amp_is_enabled' => (bool) function_exists( 'wpcom_is_amp_enabled' ) && wpcom_is_amp_enabled( $blog_id ), 'api_cache' => $api_cache, 'posts_per_page' => (int) get_option( 'posts_per_page' ), + 'posts_per_rss' => (int) get_option( 'posts_per_rss' ), + 'rss_use_excerpt' => (bool) get_option( 'rss_use_excerpt' ), ); if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) { |