|
|
@ -83,6 +83,7 @@ class visitors_edits{
|
|
|
|
|
|
|
|
|
|
|
|
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
|
|
|
require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
|
|
|
|
dbDelta( $sql );
|
|
|
|
dbDelta( $sql );
|
|
|
|
|
|
|
|
flush_rewrite_rules(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function query_vars($query_vars){
|
|
|
|
public function query_vars($query_vars){
|
|
|
|
$query_vars[] = 'visitors_edits_post_name';
|
|
|
|
$query_vars[] = 'visitors_edits_post_name';
|
|
|
@ -94,7 +95,6 @@ class visitors_edits{
|
|
|
|
'index.php?visitors_edits_post_name=$matches[1]',
|
|
|
|
'index.php?visitors_edits_post_name=$matches[1]',
|
|
|
|
'top'
|
|
|
|
'top'
|
|
|
|
);
|
|
|
|
);
|
|
|
|
flush_rewrite_rules(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function parse_request($request){
|
|
|
|
public function parse_request($request){
|
|
|
|
if( isset( $request->query_vars['visitors_edits_post_name'] ) ):
|
|
|
|
if( isset( $request->query_vars['visitors_edits_post_name'] ) ):
|
|
|
|