Ticket #16316: patch2.diff
File patch2.diff, 1.5 KB (added by , 13 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
1866 1866 $blog_ID = (int) $args[1]; /* though we don't use it yet */ 1867 1867 $username = $args[2]; 1868 1868 $password = $args[3]; 1869 if ( isset( $args[4] ) ) 1869 if ( isset( $args[4] ) ) { 1870 1870 $query = array( 'numberposts' => absint( $args[4] ) ); 1871 else 1871 1872 if ( isset( $args[5] ) ) 1873 $query['offset'] = absint( $args[5] ); 1874 } 1875 else { 1872 1876 $query = array(); 1877 } 1873 1878 1874 1879 if ( !$user = $this->login($username, $password) ) 1875 1880 return $this->error; … … 2881 2886 $blog_ID = (int) $args[0]; 2882 2887 $username = $args[1]; 2883 2888 $password = $args[2]; 2884 if ( isset( $args[3] ) ) 2889 if ( isset( $args[3] ) ) { 2885 2890 $query = array( 'numberposts' => absint( $args[3] ) ); 2886 else 2891 2892 if ( isset ($args[4]) ) 2893 $query['offset'] = absint( $args[4] ); 2894 } 2895 else { 2887 2896 $query = array(); 2897 } 2888 2898 2889 2899 if ( !$user = $this->login($username, $password) ) 2890 2900 return $this->error; … … 3122 3132 $blog_ID = (int) $args[0]; 3123 3133 $username = $args[1]; 3124 3134 $password = $args[2]; 3125 if ( isset( $args[3] ) ) 3135 if ( isset( $args[3] ) ) { 3126 3136 $query = array( 'numberposts' => absint( $args[3] ) ); 3127 else 3137 3138 if ( isset( $args[4] ) ) 3139 $query['offset'] = absint( $args[4] ); 3140 } 3141 else { 3128 3142 $query = array(); 3143 } 3129 3144 3130 3145 if ( !$user = $this->login($username, $password) ) 3131 3146 return $this->error;