mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-05 09:19:53 +08:00
Refactoring
This commit is contained in:
parent
dea49b13b1
commit
acdfa23a81
25 changed files with 121 additions and 285 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue