- Timestamp:
- 07/14/2021 08:12:24 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r51425 r51430 808 808 * @global WP_Post $post Global post object. 809 809 * 810 * @param int|WP_Post|null $post Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsey 811 * values return the current global post inside the loop. A numerically valid post812 * ID thatpoints to a non-existent post returns `null`. Defaults to global $post.810 * @param int|WP_Post|null $post Optional. Post ID or post object. `null`, `false`, `0` and other PHP falsey values 811 * return the current global post inside the loop. A numerically valid post ID that 812 * points to a non-existent post returns `null`. Defaults to global $post. 813 813 * @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which 814 814 * correspond to a WP_Post object, an associative array, or a numeric array, … … 2176 2176 * 2177 2177 * @param array $args { 2178 * Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all 2179 * available arguments. 2178 * Optional. Arguments to retrieve posts. See WP_Query::parse_query() for all available arguments. 2180 2179 * 2181 2180 * @type int $numberposts Total number of posts to retrieve. Is an alias of `$posts_per_page` … … 2389 2388 * @since 1.2.0 2390 2389 * 2391 * @param int $post_id Optional. Post ID. Default is ID of the global $post.2390 * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. 2392 2391 * @return array Post meta for the given post. 2393 2392 */ … … 2408 2407 * @since 1.2.0 2409 2408 * 2410 * @param int $post_id Optional. Post ID. Default is ID of the global $post.2409 * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. 2411 2410 * @return array|void Array of the keys, if retrieved. 2412 2411 */ … … 2433 2432 * 2434 2433 * @param string $key Optional. Meta field key. Default empty. 2435 * @param int $post_id Optional. Post ID. Default is ID of the global $post.2434 * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. 2436 2435 * @return array|null Meta field values. 2437 2436 */ … … 2458 2457 * @since 2.7.0 2459 2458 * 2460 * @param int $post_id Optional. Post ID. Default is ID of the global $post.2459 * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. 2461 2460 * @return bool Whether post is sticky. 2462 2461 */ … … 3341 3340 * @see wp_delete_post() 3342 3341 * 3343 * @param int $post_id Optional. Post ID. Default is ID of the global $post3344 * if EMPTY_TRASH_DAYSequals true.3342 * @param int $post_id Optional. Post ID. Default is the ID of the global `$post` 3343 * if `EMPTY_TRASH_DAYS` equals true. 3345 3344 * @return WP_Post|false|null Post data on success, false or null on failure. 3346 3345 */ … … 3418 3417 * attachments which are returned to their original 'inherit' status. 3419 3418 * 3420 * @param int $post_id Optional. Post ID. Default is ID of the global `$post`.3419 * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. 3421 3420 * @return WP_Post|false|null Post data on success, false or null on failure. 3422 3421 */ … … 6496 6495 * @since 2.1.0 6497 6496 * 6498 * @param int $post_id Optional. Attachment ID. Default 0.6497 * @param int $post_id Optional. Attachment ID. Default is the ID of the global `$post`. 6499 6498 * @return string|false Thumbnail file path on success, false on failure. 6500 6499 */ … … 6536 6535 * @since 2.1.0 6537 6536 * 6538 * @param int $post_id Optional. Attachment ID. Default 0.6537 * @param int $post_id Optional. Attachment ID. Default is the ID of the global `$post`. 6539 6538 * @return string|false Thumbnail URL on success, false on failure. 6540 6539 */ … … 7400 7399 * @access private 7401 7400 * 7402 * @param int $post_id The ID in the database tableof the post being published.7401 * @param int $post_id The ID of the post being published. 7403 7402 */ 7404 7403 function _publish_post_hook( $post_id ) { … … 7655 7654 * @access private 7656 7655 * 7657 * @param string $post_name Slug.7656 * @param string $post_name Post slug. 7658 7657 * @param int $post_ID Optional. Post ID that should be ignored. Default 0. 7659 7658 */
Note: See TracChangeset
for help on using the changeset viewer.