Making WordPress.org

Changeset 2564


Ignore:
Timestamp:
02/24/2016 06:14:18 PM (8 years ago)
Author:
coffee2code
Message:

Handbook plugin: Migrate determination of handbook post types into new get_post_types().

File:
1 edited

Legend:

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

    r2507 r2564  
    2121class WPorg_Handbook_Init {
    2222
     23    public static function get_post_types() {
     24        return (array) apply_filters( 'handbook_post_types', array( 'handbook' ) );
     25    }
     26
    2327    static function init() {
    2428
    25         $post_types = (array) apply_filters( 'handbook_post_types', array( 'handbook' ) );
     29        $post_types = self::get_post_types();
    2630
    2731        new WPorg_Handbook_TOC( $post_types );
Note: See TracChangeset for help on using the changeset viewer.