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

checking wpcom file exist

parent 0251c925
Branches
No related tags found
No related merge requests found
...@@ -1091,7 +1091,8 @@ class WP_Push_Syndication_Server { ...@@ -1091,7 +1091,8 @@ class WP_Push_Syndication_Server {
if( $delete_pushed_posts != 'on' ) if( $delete_pushed_posts != 'on' )
return; return;
// @TODO add cap check if( !$this->current_user_can_syndicate() )
return;
wp_schedule_single_event( wp_schedule_single_event(
time() - 1, time() - 1,
......
...@@ -13,7 +13,8 @@ License: GPLv2 or later ...@@ -13,7 +13,8 @@ License: GPLv2 or later
**************************************************************************/ **************************************************************************/
require_once ( dirname( __FILE__ ) . '/includes/class-wp-push-syndication-server.php' ); require_once ( dirname( __FILE__ ) . '/includes/class-wp-push-syndication-server.php' );
require_once ( dirname( __FILE__ ) . '/includes/class-wpcom-push-syndication-server.php' ); if( file_exists( dirname( __FILE__ ) . '/includes/class-wpcom-push-syndication-server.php' ) );
require_once ( dirname( __FILE__ ) . '/includes/class-wpcom-push-syndication-server.php' );
if ( !defined( 'PUSH_SYNDICATION_ENVIRONMENT' ) ) if ( !defined( 'PUSH_SYNDICATION_ENVIRONMENT' ) )
define( 'PUSH_SYNDICATION_ENVIRONMENT', 'WP' ); define( 'PUSH_SYNDICATION_ENVIRONMENT', 'WP' );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment