Move post type specific functions into classes

This commit is contained in:
Brian Miyaji
2014-04-26 17:52:43 +10:00
parent b6342b97e3
commit 284b0f1a5f
36 changed files with 2234 additions and 3062 deletions

View File

@@ -68,7 +68,7 @@ class SP_Admin_Menus {
*/
public function menu_highlight() {
global $typenow, $submenu;
if ( sp_is_config_type( $typenow ) )
if ( is_sp_config_type( $typenow ) )
$this->highlight_admin_menu();
elseif ( $typenow == 'sp_calendar' )
$this->highlight_admin_menu( 'edit.php?post_type=sp_event', 'edit.php?post_type=sp_calendar' );