WordPress.org

Making WordPress.org

Ticket #1177: 1177.01.patch

File 1177.01.patch, 557 bytes (added by DJPaul, 4 years ago)
  • functions.php

     
    8585
    8686        register_nav_menus();
    8787
    88         add_action( 'after_switch_theme', __NAMESPACE__ . '\\add_roles' );
     88        add_action( 'after_switch_theme', array( 'Devhub_Handbooks', 'add_roles' ) );
    8989        add_action( 'pre_get_posts', __NAMESPACE__ . '\\pre_get_posts' );
    9090        add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\\theme_scripts_styles' );
    9191        add_action( 'wp_head', __NAMESPACE__ . '\\header_js' );