Changeset 1064
- Timestamp:
- 12/23/2014 07:54:55 PM (11 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
r1063 r1064 883 883 * Does the post type have source code? 884 884 * 885 * @param string Optional. The post type name. If blank, assumes current post type.886 * 887 * @return bool ean885 * @param null|string $post_type Optional. The post type name. If null, assumes current post type. Default null. 886 * 887 * @return bool 888 888 */ 889 889 function post_type_has_source_code( $post_type = null ) { … … 1003 1003 * blog. 1004 1004 * 1005 * @param int $post_id The post ID. 1005 * @param bool $open If the user can post comments in general. Disregarded. 1006 * @param WP_Post $post Post ID or post object. 1006 1007 * 1007 1008 * @return bool True if the user can post a note. 1008 1009 */ 1009 function can_user_post_note( $open, $post _id) {1010 function can_user_post_note( $open, $post ) { 1010 1011 1011 1012 // Only proceed if the post type is one that has user contributed notes. 1012 if ( 0 !== strpos( get_post_type( (int) $post_id ), 'wp-parser-') ) {1013 if ( ! post_type_supports_user_notes( get_post_type( $post ) ) ) { 1013 1014 // Temporarily disable commenting that isn't for a note since various 1014 1015 // changes need to take place to enable regular commenting. … … 1017 1018 1018 1019 // Permit default logic to be overridden via filter that returns value other than null. 1019 if ( null !== ( $can = apply_filters( 'wporg_devhub-can_user_post_note', null, $post _id) ) ) {1020 if ( null !== ( $can = apply_filters( 'wporg_devhub-can_user_post_note', null, $post ) ) ) { 1020 1021 return $can; 1021 1022 }
Note: See TracChangeset
for help on using the changeset viewer.