Make WordPress Core

Ticket #15153: patch-15153-2.diff

File patch-15153-2.diff, 1.4 KB (added by koke, 14 years ago)

Patch using getOption/setOption instead of custom methods

  • wp-includes/class.wp-xmlrpc-server.php

    diff --git a/wp-includes/class.wp-xmlrpc-server.php b/wp-includes/class.wp-xmlrpc-server.php
    index 6aa9aa4..44dc72a 100644
    a b class wp_xmlrpc_server extends IXR_Server { 
    333333                                'desc'                  => __( 'Allow new users to sign up' ),
    334334                                'readonly'              => false,
    335335                                'option'                => 'users_can_register'
     336                        ),
     337                        'thumbnail_size_w'      => array(
     338                                'desc'                  => __( 'Thumbnail Width' ),
     339                                'readonly'              => false,
     340                                'option'                => 'thumbnail_size_w'
     341                        ),
     342                        'thumbnail_size_h'      => array(
     343                                'desc'                  => __( 'Thumbnail Height' ),
     344                                'readonly'              => false,
     345                                'option'                => 'thumbnail_size_h'
     346                        ),
     347                        'thumbnail_crop'        => array(
     348                                'desc'                  => __( 'Crop thumbnail to exact dimensions' ),
     349                                'readonly'              => false,
     350                                'option'                => 'thumbnail_crop'
     351                        ),
     352                        'medium_size_w' => array(
     353                                'desc'                  => __( 'Medium size image width' ),
     354                                'readonly'              => false,
     355                                'option'                => 'medium_size_w'
     356                        ),
     357                        'medium_size_h' => array(
     358                                'desc'                  => __( 'Medium size image height' ),
     359                                'readonly'              => false,
     360                                'option'                => 'medium_size_h'
     361                        ),
     362                        'large_size_w'  => array(
     363                                'desc'                  => __( 'Large size image width' ),
     364                                'readonly'              => false,
     365                                'option'                => 'large_size_w'
     366                        ),
     367                        'large_size_h'  => array(
     368                                'desc'                  => __( 'Large size image height' ),
     369                                'readonly'              => false,
     370                                'option'                => 'large_size_h'
    336371                        )
    337372                );
    338373