mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 09:20:28 +08:00
* 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:
parent
912fb297e2
commit
4d0c30d883
6 changed files with 77 additions and 31 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue