Changeset 27473
- Timestamp:
- 03/08/2014 07:31:51 PM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r27429 r27473 97 97 * @since 0.71 98 98 * 99 * @param int| object $post Optional. Post ID orobject.99 * @param int|WP_Post $post Optional. Post ID or post object. 100 100 * @return string 101 101 */ … … 130 130 * @since 1.5.0 131 131 * 132 * @param int $id Optional. Post ID.132 * @param int|WP_Post $id Optional. Post ID or post object. 133 133 */ 134 134 function the_guid( $id = 0 ) { … … 145 145 * @since 1.5.0 146 146 * 147 * @param int $id Optional. Post ID.147 * @param int|WP_Post $id Optional. Post ID or post object. 148 148 * @return string 149 149 */ … … 281 281 * @since 2.3.0 282 282 * 283 * @param int $id Optional. Post ID.283 * @param int|WP_Post $id Optional. Post ID or post object. 284 284 * @return bool 285 285 */ … … 295 295 * 296 296 * @param string|array $class One or more classes to add to the class list. 297 * @param int $post_id An optional post ID.297 * @param int|WP_Post $post_id Optional. Post ID or post object. 298 298 */ 299 299 function post_class( $class = '', $post_id = null ) { … … 317 317 * 318 318 * @param string|array $class One or more classes to add to the class list. 319 * @param int $post_id An optional post ID.319 * @param int|WP_Post $post_id Optional. Post ID or post object. 320 320 * @return array Array of classes. 321 321 */ … … 1174 1174 * @since 2.0.0 1175 1175 * 1176 * @param int $id Optional. Post ID.1176 * @param int|WP_Post $id Optional. Post ID or post object. 1177 1177 * @param bool $fullsize Optional, default is false. Whether to use full size. 1178 1178 * @param bool $deprecated Deprecated. Not used. … … 1195 1195 * @uses apply_filters() Calls 'wp_get_attachment_link' filter on HTML content with same parameters as function. 1196 1196 * 1197 * @param int $id Optional. Post ID.1197 * @param int|WP_Post $id Optional. Post ID or post object. 1198 1198 * @param string $size Optional, default is 'thumbnail'. Size of image, either array or string. 1199 1199 * @param bool $permalink Optional, default is false. Whether to add permalink to image. … … 1260 1260 * @since 1.0.0 1261 1261 * @uses apply_filters() Calls 'the_password_form' filter on output. 1262 * @param int|WP_Post $post Optional. A post id or post object. Defaults to the current post when in The Loop, undefined otherwise.1262 * @param int|WP_Post $post Optional. A post ID or post object. 1263 1263 * @return string HTML content for password form for password protected post. 1264 1264 */ … … 1421 1421 * @uses get_the_author_meta() 1422 1422 * 1423 * @param int| object $post_idPost ID or post object.1423 * @param int|WP_Post $post_id Optional. Post ID or post object. 1424 1424 * @param string $type 'all' (default), 'revision' or 'autosave' 1425 1425 * @return null -
trunk/src/wp-includes/post.php
r27470 r27473 381 381 * @link http://codex.wordpress.org/Function_Reference/get_post 382 382 * 383 * @param int| object $post Post ID or post object. Optional, default is the current post from the loop.383 * @param int|WP_Post $post Optional. Post ID or post object. 384 384 * @param string $output Optional, default is Object. Either OBJECT, ARRAY_A, or ARRAY_N. 385 385 * @param string $filter Optional, default is raw. … … 711 711 * @since 2.5.0 712 712 * 713 * @param int| object $post Post ID or post object713 * @param int|WP_Post $post Post ID or post object. 714 714 * @return array Ancestor IDs or empty array if none are found. 715 715 */ … … 748 748 * 749 749 * @param string $field Post field name. 750 * @param int| object $post Post ID or post object.750 * @param int|WP_Post $post Post ID or post object. 751 751 * @param string $context Optional. How to filter the field. Default is 'display'. 752 752 * @return string The value of the post field on success, empty string on failure. … … 772 772 * @since 2.0.0 773 773 * 774 * @param int $ID Optional. Post ID. Default is the current post from the loop.774 * @param int|WP_Post $ID Optional. Post ID or post object. 775 775 * @return string|bool The mime type on success, false on failure. 776 776 */ … … 792 792 * @since 2.0.0 793 793 * 794 * @param int $ID Optional. Post ID. Default is the current post from the loop.794 * @param int|WP_Post $ID Optional. Post ID or post object. 795 795 * @return string|bool Post status on success, false on failure. 796 796 */ … … 1026 1026 * @since 2.1.0 1027 1027 * 1028 * @param int| object $post Optional. Post ID or post object. Default is the current post from the loop.1028 * @param int|WP_Post $post Optional. Post ID or post object. 1029 1029 * @return string|bool Post type on success, false on failure. 1030 1030 */ … … 2481 2481 * @uses do_action() on 'trashed_post_comments' after trashing 2482 2482 * 2483 * @param int| object $post Post ID orobject.2483 * @param int|WP_Post $post Optional. Post ID or post object. 2484 2484 * @return mixed False on failure 2485 2485 */ … … 2522 2522 * @uses do_action() on 'untrashed_post_comments' after trashing 2523 2523 * 2524 * @param int| object $post Post ID orobject.2524 * @param int|WP_Post $post Optional. Post ID or post object. 2525 2525 * @return mixed False on failure 2526 2526 */ … … 3040 3040 * @uses do_action() Calls 'edit_post', 'save_post_{$post_type}', 'save_post' and 'wp_insert_post' on post_id and post data. 3041 3041 * 3042 * @param int| object $post Post ID orobject.3042 * @param int|WP_Post $post Post ID or post object. 3043 3043 */ 3044 3044 function wp_publish_post( $post ) { … … 3073 3073 * @since 2.5.0 3074 3074 * 3075 * @param int $post_id Post ID.3075 * @param int|WP_Post $post_id Post ID or post object. 3076 3076 * @return null Nothing is returned. Which can mean that no action is required or post was published. 3077 3077 */ … … 4761 4761 * @uses do_action() Calls 'clean_post_cache' on $id before adding children (if any). 4762 4762 * 4763 * @param int| object $post Post ID or object to remove from the cache4763 * @param int|WP_Post $post Post ID or post object to remove from the cache. 4764 4764 */ 4765 4765 function clean_post_cache( $post ) { … … 5040 5040 * @since 3.1.0 5041 5041 * 5042 * @param int| object $post Post ID orobject where thumbnail should be attached.5042 * @param int|WP_Post $post Post ID or post object where thumbnail should be attached. 5043 5043 * @param int $thumbnail_id Thumbnail to attach. 5044 5044 * @return bool True on success, false on failure. … … 5061 5061 * @since 3.3.0 5062 5062 * 5063 * @param int| object $post Post ID orobject where thumbnail should be removed from.5063 * @param int|WP_Post $post Post ID or post object where thumbnail should be removed from. 5064 5064 * @return bool True on success, false on failure. 5065 5065 */ -
trunk/src/wp-includes/taxonomy.php
r27458 r27473 3194 3194 * @since 2.5.0 3195 3195 * 3196 * @param int $post Optional. Post ID or will use Global Post ID (in loop).3196 * @param int|WP_Post $post Optional. Post ID or post object. 3197 3197 * @param array $args Override the defaults. 3198 3198 * @return array … … 3241 3241 * @uses get_object_taxonomies() 3242 3242 * 3243 * @param int $post Optional. Post ID3243 * @param int|WP_Post $post Optional. Post ID or post object. 3244 3244 * @return array 3245 3245 */
Note: See TracChangeset
for help on using the changeset viewer.