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

selected options filtering

parent 2dca0e10
Branches
No related tags found
No related merge requests found
...@@ -461,8 +461,13 @@ class Push_Syndication_Server { ...@@ -461,8 +461,13 @@ class Push_Syndication_Server {
public function syndicate_options( $sites ) { public function syndicate_options( $sites ) {
require_once( dirname( __FILE__ ) . '/includes/class-wp-client-factory.php' ); require_once( dirname( __FILE__ ) . '/includes/class-wp-client-factory.php' );
$selected_siteoptions = array_intersect_key( wp_load_alloptions(), array_combine(get_option( 'syn_selected_siteoptions' ), get_option( 'syn_selected_siteoptions' )) );
$selected_siteoptions = get_option( 'syn_selected_siteoptions' ); foreach( $sites as $site ) {
$transport_type = get_post_meta( $site->ID, 'syn_transport_type', true);
$client = wp_client_factory::get_client( $transport_type ,$site->ID );
}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment