Skip to content
Snippets Groups Projects
Commit fb27a330 authored by Mohammad Jangda's avatar Mohammad Jangda
Browse files

Fix fallback for PUSH_SYNDICATE_KEY

PHP treats undefined constants as strings so define the KEY const as "PUSH_SYNDICATE_KEY" to maintain backwards compat.
parent 5d67f360
Branches
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ License: GPLv2 or later ...@@ -13,7 +13,7 @@ License: GPLv2 or later
**************************************************************************/ **************************************************************************/
if ( ! defined( 'PUSH_SYNDICATE_KEY' ) ) if ( ! defined( 'PUSH_SYNDICATE_KEY' ) )
define( 'PUSH_SYNDICATE_KEY', '' ); define( 'PUSH_SYNDICATE_KEY', 'PUSH_SYNDICATE_KEY' );
require_once ( dirname( __FILE__ ) . '/includes/class-wp-push-syndication-server.php' ); require_once ( dirname( __FILE__ ) . '/includes/class-wp-push-syndication-server.php' );
if( apply_filters( 'syn_use_async_jobs', false ) ) if( apply_filters( 'syn_use_async_jobs', false ) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment