* Fixed: WordPress 5.3 compatibility problems

* Fixed: an issue with managing BackWPup backups
* Updated: multiple error messages
* Removed: unused code
This commit is contained in:
thanghv 2019-11-11 23:17:10 +07:00
parent 912fb297e2
commit 4d0c30d883
6 changed files with 77 additions and 31 deletions

View file

@ -38,7 +38,7 @@ class MainWP_Keyword_Links {
public function keywordLinksJS() {
if ( ! is_admin() && get_option( 'mainwp_kwl_enable_statistic' ) ) {
if ( ! is_admin() && get_option( 'mainwp_kwl_enable_statistic' ) && !empty($this->keyword_links) ) {
wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'keywordLinks', plugins_url( '/js/keywordlinks.js', dirname( __FILE__ ) ) );
add_action( 'wp_head', array( $this, 'head_loading' ), 1 );