Making WordPress.org

Changeset 3480


Ignore:
Timestamp:
06/19/2016 09:52:27 PM (8 years ago)
Author:
coffee2code
Message:

Handbook plugin: Register post types earlier so their labels are available when registering sidebars.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/handbook.php

    r3479 r3480  
    119119
    120120        add_filter( 'user_has_cap',                       array( $this, 'grant_handbook_caps' ) );
    121         add_filter( 'init',                               array( $this, 'register_post_type' ) );
     121        add_filter( 'widgets_init',                       array( $this, 'register_post_type' ) );
    122122        add_filter( 'post_type_link',                     array( $this, 'post_type_link' ), 10, 2 );
    123123        add_filter( 'pre_get_posts',                      array( $this, 'pre_get_posts' ) );
Note: See TracChangeset for help on using the changeset viewer.