XMLRPC: Expose the fact that the current theme supports featured images to XMLRPC clients so they can make intelligent UI decisions.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ba2a634b7c
commit
d1e336dee2
|
@ -342,6 +342,11 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
'readonly' => true,
|
'readonly' => true,
|
||||||
'option' => 'stylesheet'
|
'option' => 'stylesheet'
|
||||||
),
|
),
|
||||||
|
'featured_image' => array(
|
||||||
|
'desc' => __('Featured Image'),
|
||||||
|
'readonly' => true,
|
||||||
|
'value' => current_theme_supports( 'post-thumbnails' )
|
||||||
|
),
|
||||||
|
|
||||||
// Updatable options
|
// Updatable options
|
||||||
'time_zone' => array(
|
'time_zone' => array(
|
||||||
|
|
Loading…
Reference in New Issue