Changeset 32993 for trunk/src/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 06/29/2015 02:06:25 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r32800 r32993 2748 2748 */ 2749 2749 public function wp_editPage( $args ) { 2750 // Items not escaped here will be escaped ineditPost.2751 $page_id = (int) $ this->escape($args[1]);2752 $username = $ this->escape($args[2]);2753 $password = $ this->escape($args[3]);2750 // Items will be escaped in mw_editPost. 2751 $page_id = (int) $args[1]; 2752 $username = $args[2]; 2753 $password = $args[3]; 2754 2754 $content = $args[4]; 2755 2755 $publish = $args[5]; 2756 2756 2757 if ( !$user = $this->login($username, $password) ) 2758 return $this->error; 2757 $escaped_username = $this->escape( $username ); 2758 $escaped_password = $this->escape( $password ); 2759 2760 if ( !$user = $this->login( $escaped_username, $escaped_password ) ) { 2761 return $this->error; 2762 } 2759 2763 2760 2764 /** This action is documented in wp-includes/class-wp-xmlrpc-server.php */
Note: See TracChangeset
for help on using the changeset viewer.