WordPress.org

Make WordPress Core

Changeset 17663


Ignore:
Timestamp:
04/20/2011 03:26:38 PM (7 years ago)
Author:
josephscott
Message:

Expose the content width as a read only option via XML-RPC.

Fixes #17131 props koke, nacin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r17651 r17663  
    287287     */
    288288    function initialise_blog_option_info( ) {
    289         global $wp_version;
     289        global $wp_version, $content_width;
    290290
    291291        $this->blog_options = array(
     
    305305                'readonly'      => true,
    306306                'option'        => 'siteurl'
     307            ),
     308            'content_width'         => array(
     309                'desc'          => __( 'Content Width' ),
     310                'readonly'      => true,
     311                'value'         => isset( $content_width ) ? (int) $content_width : 0,
    307312            ),
    308313
Note: See TracChangeset for help on using the changeset viewer.