From d7cbc74497b175d05bcad8046eb4f900a02c2ad1 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 4 Sep 2008 23:12:08 +0000 Subject: [PATCH] Skeleton phpdoc for post-template.php. Props jacobsantos. see #7659 git-svn-id: https://develop.svn.wordpress.org/trunk@8809 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-template.php | 275 ++++++++++++++++++++++++++++++++-- 1 file changed, 263 insertions(+), 12 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index a00bb584ac..0699fb9943 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1,21 +1,53 @@ guid); } +/** + * the_content() - {@internal Missing Short Description}} + * + * {@internal Missing Long Description}} + * + * @since 0.71 + * + * @param unknown_type $more_link_text + * @param unknown_type $stripteaser + * @param unknown_type $more_file + */ function the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); @@ -81,7 +163,18 @@ function the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') echo $content; } - +/** + * get_the_content() - {@internal Missing Short Description}} + * + * {@internal Missing Long Description}} + * + * @since 0.71 + * + * @param unknown_type $more_link_text + * @param unknown_type $stripteaser + * @param unknown_type $more_file + * @return unknown + */ function get_the_content($more_link_text = NULL, $stripteaser = 0, $more_file = '') { global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow; @@ -133,12 +226,28 @@ function get_the_content($more_link_text = NULL, $stripteaser = 0, $more_file = return $output; } - +/** + * the_excerpt() - {@internal Missing Short Description}} + * + * {@internal Missing Long Description}} + * + * @since 0.71 + * @uses apply_filters() - + */ function the_excerpt() { echo apply_filters('the_excerpt', get_the_excerpt()); } - +/** + * get_the_excerpt() - {@internal Missing Short Description}} + * + * {@internal Missing Long Description}} + * + * @since 0.71 + * + * @param unknown_type $deprecated + * @return unknown + */ function get_the_excerpt($deprecated = '') { global $post; $output = ''; @@ -151,6 +260,16 @@ function get_the_excerpt($deprecated = '') { return apply_filters('get_the_excerpt', $output); } +/** + * has_excerpt() - {@internal Missing Short Description}} + * + * {@internal Missing Long Description}} + * + * @since 2.3.0 + * + * @param unknown_type $id + * @return unknown + */ function has_excerpt( $id = 0 ) { $post = &get_post( $id ); return ( !empty( $post->post_excerpt ) ); @@ -268,6 +387,16 @@ function sticky_class( $post_id = null ) { echo " sticky"; } +/** + * wp_link_pages() - {@internal Missing Short Description}} + * + * {@internal Missing Long Description}} + * + * @since 1.2.0 + * + * @param unknown_type $args + * @return unknown + */ function wp_link_pages($args = '') { $defaults = array( 'before' => '

' . __('Pages:'), 'after' => '

', @@ -348,7 +477,16 @@ function wp_link_pages($args = '') { // Post-meta: Custom per-post fields. // - +/** + * post_custom() - {@internal Missing Short Description}} + * + * {@internal Missing Long Description}} + * + * @since 1.5.0 + * + * @param unknown_type $key + * @return unknown + */ function post_custom( $key = '' ) { $custom = get_post_custom(); @@ -360,6 +498,14 @@ function post_custom( $key = '' ) { // this will probably change at some point... +/** + * the_meta() - {@internal Missing Short Description}} + * + * {@internal Missing Long Description}} + * + * @since 1.2.0 + * @uses apply_filters() + */ function the_meta() { if ( $keys = get_post_custom_keys() ) { echo "