From acdb6ea09359d37864d6fb04cbbd11a4036cf7a0 Mon Sep 17 00:00:00 2001 From: josephscott Date: Wed, 20 Apr 2011 15:26:38 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-xmlrpc-server.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 42ff68fa7c..15ccc8ca8b 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -286,7 +286,7 @@ class wp_xmlrpc_server extends IXR_Server { * @since 2.6.0 */ function initialise_blog_option_info( ) { - global $wp_version; + global $wp_version, $content_width; $this->blog_options = array( // Read only options @@ -305,6 +305,11 @@ class wp_xmlrpc_server extends IXR_Server { 'readonly' => true, 'option' => 'siteurl' ), + 'content_width' => array( + 'desc' => __( 'Content Width' ), + 'readonly' => true, + 'value' => isset( $content_width ) ? (int) $content_width : 0, + ), // Updatable options 'time_zone' => array(