Changeset 24598 for trunk/wp-includes/post.php
- Timestamp:
- 07/09/2013 05:22:50 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r24490 r24598 4971 4971 } 4972 4972 } 4973 4974 /**4975 * Parse post content for pagination4976 *4977 * @since 3.6.04978 *4979 * @uses paginate_content()4980 *4981 * @param object $post The post object.4982 * @return array An array of values used for paginating the parsed content.4983 */4984 function wp_parse_post_content( $post ) {4985 $numpages = 1;4986 4987 if ( strpos( $post->post_content, '<!--nextpage-->' ) ) {4988 $multipage = 1;4989 $pages = paginate_content( $post->post_content );4990 $numpages = count( $pages );4991 } else {4992 $pages = array( $post->post_content );4993 $multipage = 0;4994 }4995 4996 return compact( 'multipage', 'pages', 'numpages' );4997 }
Note: See TracChangeset
for help on using the changeset viewer.