|
@@ 1799-1811 (lines=13) @@
|
| 1796 |
|
$password = $args[2]; |
| 1797 |
|
$post_id = (int) $args[3]; |
| 1798 |
|
|
| 1799 |
|
if ( isset( $args[4] ) ) { |
| 1800 |
|
$fields = $args[4]; |
| 1801 |
|
} else { |
| 1802 |
|
/** |
| 1803 |
|
* Filters the list of post query fields used by the given XML-RPC method. |
| 1804 |
|
* |
| 1805 |
|
* @since 3.4.0 |
| 1806 |
|
* |
| 1807 |
|
* @param array $fields Array of post fields. Default array contains 'post', 'terms', and 'custom_fields'. |
| 1808 |
|
* @param string $method Method name. |
| 1809 |
|
*/ |
| 1810 |
|
$fields = apply_filters( 'xmlrpc_default_post_fields', array( 'post', 'terms', 'custom_fields' ), 'wp.getPost' ); |
| 1811 |
|
} |
| 1812 |
|
|
| 1813 |
|
if ( ! $user = $this->login( $username, $password ) ) |
| 1814 |
|
return $this->error; |
|
@@ 1862-1867 (lines=6) @@
|
| 1859 |
|
$password = $args[2]; |
| 1860 |
|
$filter = isset( $args[3] ) ? $args[3] : array(); |
| 1861 |
|
|
| 1862 |
|
if ( isset( $args[4] ) ) { |
| 1863 |
|
$fields = $args[4]; |
| 1864 |
|
} else { |
| 1865 |
|
/** This action is documented in wp-includes/class-wp-xmlrpc-server.php */ |
| 1866 |
|
$fields = apply_filters( 'xmlrpc_default_post_fields', array( 'post', 'terms', 'custom_fields' ), 'wp.getPosts' ); |
| 1867 |
|
} |
| 1868 |
|
|
| 1869 |
|
if ( ! $user = $this->login( $username, $password ) ) |
| 1870 |
|
return $this->error; |