Changeset 19593 for trunk/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 12/13/2011 11:45:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r19071 r19593 157 157 function login_pass_ok($user_login, $user_pass) { 158 158 if ( !get_option( 'enable_xmlrpc' ) ) { 159 $this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this site. 159 $this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this site. An admin user can enable them at %s'), admin_url('options-writing.php') ) ); 160 160 return false; 161 161 } … … 179 179 function login($username, $password) { 180 180 if ( !get_option( 'enable_xmlrpc' ) ) { 181 $this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this site. 181 $this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this site. An admin user can enable them at %s'), admin_url('options-writing.php') ) ); 182 182 return false; 183 183 } … … 1946 1946 1947 1947 /* so it is actually editable with a windows/mac client */ 1948 // FIXME: (or delete me) do we really want to cater to bad clients at the expense of good ones by BEEPing up their line breaks? commented. 1948 // FIXME: (or delete me) do we really want to cater to bad clients at the expense of good ones by BEEPing up their line breaks? commented. $content = str_replace("\n", "\r\n", $content); 1949 1949 1950 1950 return $content; … … 2545 2545 2546 2546 // If there is no post data for the give post id, stop 2547 // now and return an error. 2547 // now and return an error. Other wise a new post will be 2548 2548 // created (which was the old behavior). 2549 2549 if ( empty($postdata["ID"]) )
Note: See TracChangeset
for help on using the changeset viewer.