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
This commit is contained in:
josephscott 2011-04-20 15:26:38 +00:00
parent b3bb537735
commit acdb6ea093
1 changed files with 6 additions and 1 deletions

View File

@ -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(