Changeset 11030 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/functions.php
- Timestamp:
- 06/14/2021 05:41:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/functions.php
r11023 r11030 183 183 return $preempt; 184 184 } 185 186 /** 187 * Get the full, filtered content of a post, ignoring more and noteaser tags and pagination. 188 * 189 * See https://github.com/WordPress/wordcamp.org/blob/442ea26d8e6a1b39f97114e933842b1ec4f8eef9/public_html/wp-content/mu-plugins/blocks/includes/content.php#L21 190 * 191 * @param int|WP_Post $post Post ID or post object. 192 * @return string The full, filtered post content. 193 */ 194 function get_all_the_content( $post ) { 195 $post = get_post( $post ); 196 197 $content = wp_kses_post( $post->post_content ); 198 199 /** This filter is documented in wp-includes/post-template.php */ 200 $content = apply_filters( 'the_content', $content ); 201 $content = str_replace( ']]>', ']]>', $content ); 202 203 return $content; 204 }
Note: See TracChangeset
for help on using the changeset viewer.