Expose the content width as a read only option via XML-RPC.
Fixes #17131 props koke, nacin git-svn-id: https://develop.svn.wordpress.org/trunk@17663 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4a973d6a61
commit
ac31573fab
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user