Refactoring

This commit is contained in:
thanghv 2020-05-07 23:22:05 +07:00
parent dea49b13b1
commit acdfa23a81
25 changed files with 121 additions and 285 deletions

View file

@ -33,7 +33,7 @@ class MainWP_Keyword_Links {
if ( empty( $this->keyword_links ) ) {
$this->keyword_links = array();
}
// print_r($this->keyword_links);
$this->siteurl = get_option( 'home' );
add_action( 'permalink_structure_changed', array( &$this, 'permalink_changed' ), 10, 2 );
}
@ -313,13 +313,6 @@ class MainWP_Keyword_Links {
$links = $this->get_available_links();
}
// print_r($this->keyword_links);
// if ($post->ID == 751) {
// print_r($links);
// $custom = get_post_custom($post->ID);
// print_r($custom);
// }
if ( empty( $links ) ) {
return $content;
}