Admin notice to configure sport

This commit is contained in:
Brian Miyaji
2014-03-30 12:49:23 +11:00
parent cd9eaf6128
commit 87e0c574f4
10 changed files with 192 additions and 41 deletions

View File

@@ -99,6 +99,11 @@ class SP_Install {
// Update version
update_option( 'sportspress_version', SP()->version );
// Check if pages are needed
if ( ! get_option( 'sportspress_sport' ) ) {
update_option( '_sp_needs_config', 1 );
}
// Flush rules after install
flush_rewrite_rules();