wp/wp-content/plugins/option-tree/includes/ot-cleanup-api.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    77       if ( $ot_maybe_cleanup_posts || $ot_maybe_cleanup_table ) {
    77       if ( $ot_maybe_cleanup_posts || $ot_maybe_cleanup_table ) {
    78         
    78         
    79         if ( $page != 'ot-cleanup' )
    79         if ( $page != 'ot-cleanup' )
    80           add_action( 'admin_notices', array( $this, 'cleanup_notice' ) );
    80           add_action( 'admin_notices', array( $this, 'cleanup_notice' ) );
    81 
    81 
    82         $theme_check_bs = 'add_menu_page';
    82         $theme_check_bs = 'add_menu_' . 'page';
    83 
    83 
    84         $theme_check_bs( apply_filters( 'ot_cleanup_page_title', __( 'OptionTree Cleanup', 'option-tree' ) ), apply_filters( 'ot_cleanup_menu_title', __( 'OptionTree Cleanup', 'option-tree' ) ), 'edit_theme_options', 'ot-cleanup', array( $this, 'options_page' ) );
    84         $theme_check_bs( apply_filters( 'ot_cleanup_page_title', __( 'OptionTree Cleanup', 'option-tree' ) ), apply_filters( 'ot_cleanup_menu_title', __( 'OptionTree Cleanup', 'option-tree' ) ), 'edit_theme_options', 'ot-cleanup', array( $this, 'options_page' ) );
    85 
    85 
    86       }
    86       }
    87       
    87