From e2d7b7dbe9c8abd586010eda84fd2b153aebf498 Mon Sep 17 00:00:00 2001 From: westi Date: Tue, 26 Oct 2010 17:46:29 +0000 Subject: [PATCH] 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 --- wp-includes/class.wp-xmlrpc-server.php | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/wp-includes/class.wp-xmlrpc-server.php b/wp-includes/class.wp-xmlrpc-server.php index 1cec0163eb..fd24c91231 100644 --- a/wp-includes/class.wp-xmlrpc-server.php +++ b/wp-includes/class.wp-xmlrpc-server.php @@ -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' ) );