Skip to content
Snippets Groups Projects
Commit dc2e8d13 authored by Prasath Nadarajah's avatar Prasath Nadarajah
Browse files

cleanup

parent e5f593dc
Branches
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
include_once( ABSPATH . 'wp-includes/class-IXR.php' );
include_once( ABSPATH . 'wp-includes/class-wp-http-ixr-client.php' );
include_once(dirname(__FILE__) . '/interface-wp-client.php');
include_once( dirname(__FILE__) . '/interface-wp-client.php' );
include_once( dirname( __FILE__ ) . '/push-syndicate-encryption.php' );
class WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements WP_Client {
......@@ -35,6 +35,9 @@ class WP_XMLRPC_Client extends WP_HTTP_IXR_Client implements WP_Client {
$args['post_type'] = $post['post_type'];
$args['wp_password'] = $post['post_password'];
// @TODO add date arguement
// @TODO add featured image
// @TODO extend this to custom taxonomies
$args['terms_names'] = array(
'category' => wp_get_object_terms( $post_ID, 'category', array('fields' => 'names') ),
......
......@@ -19,4 +19,4 @@ if ( !defined( 'PUSH_SYNDICATION_ENVIRONMENT' ) )
define( 'PUSH_SYNDICATION_ENVIRONMENT', 'WP' );
$push_syndication_server_class = PUSH_SYNDICATION_ENVIRONMENT . '_Push_Syndication_Server';
$push_syndication_server = new $push_syndication_server_class();
$push_syndication_server = new $push_syndication_server_class();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment