Changeset 3239 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php
- Timestamp:
- 05/24/2016 09:12:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php
r2817 r3239 52 52 add_filter( 'syntaxhighlighter_htmlresult', array( __CLASS__, 'syntaxhighlighter_htmlresult' ) ); 53 53 } 54 }55 56 /**57 * Is the current (or specified) post_type one of the DevHub handbook post types?58 *59 * TOOD: The handbook plugin should probably have this.60 *61 * @param string $post_type Optional. The post_type to check for being a handbook post type. Default '' (the current post type).62 * @return bool63 */64 public static function is_handbook_post_type( $post_type = '' ) {65 if ( ! $post_type ) {66 $post_type = get_post_type();67 }68 69 return in_array( str_replace( '-handbook', '', $post_type ), self::$post_types );70 54 } 71 55
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)