WordPress.org

Making WordPress.org

Changeset 3508


Ignore:
Timestamp:
06/20/2016 04:18:19 PM (5 years ago)
Author:
coffee2code
Message:

developer.wordpress.org: Hook 'handbook_post_type_defaults' earlier to account for earlier post type registration.

Fixes #1775.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php

    r3281 r3508  
    2525     */
    2626    public static function init() {
     27        add_filter( 'handbook_post_type_defaults', array( __CLASS__, 'filter_handbook_post_type_defaults' ), 10, 2 );
    2728        add_filter( 'handbook_post_types', array( __CLASS__, 'filter_handbook_post_types' ) );
    2829        add_action( 'init', array( __CLASS__, 'do_init' ) );
     
    4445
    4546        add_filter( 'the_content', array( __CLASS__, 'autolink_credits' ) );
    46 
    47         add_filter( 'handbook_post_type_defaults', array( __CLASS__, 'filter_handbook_post_type_defaults' ), 10, 2 );
    4847
    4948        // Add the handbook's 'Watch' action link.
Note: See TracChangeset for help on using the changeset viewer.