Changeset 7443
- Timestamp:
- 07/12/2018 06:46:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php
r7269 r7443 1275 1275 1276 1276 /** 1277 * Returns the array of post types that have source code. 1278 * 1279 * @return array 1280 */ 1281 function get_post_types_with_source_code() { 1282 return array( 'wp-parser-class', 'wp-parser-method', 'wp-parser-function' ); 1283 } 1284 1285 /** 1277 1286 * Does the post type have source code? 1278 1287 * … … 1282 1291 */ 1283 1292 function post_type_has_source_code( $post_type = null ) { 1284 $post_type = $post_type ? $post_type : get_post_type(); 1285 $post_types_with_source_code = array( 'wp-parser-class', 'wp-parser-method', 'wp-parser-function' ); 1286 1287 return in_array( $post_type, $post_types_with_source_code ); 1293 $post_type = $post_type ? $post_type : get_post_type(); 1294 1295 return in_array( $post_type, get_post_types_with_source_code() ); 1288 1296 } 1289 1297
Note: See TracChangeset
for help on using the changeset viewer.