mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-06 09:20:28 +08:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
055f7232cd
commit
44cdebaf44
28 changed files with 891 additions and 829 deletions
|
@ -38,7 +38,7 @@ class MainWP_Keyword_Links {
|
|||
|
||||
|
||||
public function keywordLinksJS() {
|
||||
if ( ! is_admin() && get_option( 'mainwp_kwl_enable_statistic' ) && !empty($this->keyword_links) ) {
|
||||
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 );
|
||||
|
@ -388,7 +388,7 @@ class MainWP_Keyword_Links {
|
|||
}
|
||||
|
||||
private function usort_callback_func( $a, $b) {
|
||||
return strlen($a)<strlen($b);
|
||||
return strlen($a) < strlen($b);
|
||||
}
|
||||
|
||||
public function keyword_mark( $matches ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue