mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Expose the media options over XML-RPC. Fixes #15153 props koke.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5eae13f4c0
commit
e2d7b7dbe9
@ -333,6 +333,41 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
'desc' => __( 'Allow new users to sign up' ),
|
||||
'readonly' => false,
|
||||
'option' => 'users_can_register'
|
||||
),
|
||||
'thumbnail_size_w' => array(
|
||||
'desc' => __( 'Thumbnail Width' ),
|
||||
'readonly' => false,
|
||||
'option' => 'thumbnail_size_w'
|
||||
),
|
||||
'thumbnail_size_h' => array(
|
||||
'desc' => __( 'Thumbnail Height' ),
|
||||
'readonly' => false,
|
||||
'option' => 'thumbnail_size_h'
|
||||
),
|
||||
'thumbnail_crop' => array(
|
||||
'desc' => __( 'Crop thumbnail to exact dimensions' ),
|
||||
'readonly' => false,
|
||||
'option' => 'thumbnail_crop'
|
||||
),
|
||||
'medium_size_w' => array(
|
||||
'desc' => __( 'Medium size image width' ),
|
||||
'readonly' => false,
|
||||
'option' => 'medium_size_w'
|
||||
),
|
||||
'medium_size_h' => array(
|
||||
'desc' => __( 'Medium size image height' ),
|
||||
'readonly' => false,
|
||||
'option' => 'medium_size_h'
|
||||
),
|
||||
'large_size_w' => array(
|
||||
'desc' => __( 'Large size image width' ),
|
||||
'readonly' => false,
|
||||
'option' => 'large_size_w'
|
||||
),
|
||||
'large_size_h' => array(
|
||||
'desc' => __( 'Large size image height' ),
|
||||
'readonly' => false,
|
||||
'option' => 'large_size_h'
|
||||
)
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user