Changeset 49544
- Timestamp:
- 11/09/2020 03:13:56 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/comment.php
r48585 r49544 142 142 * @global wpdb $wpdb WordPress database abstraction object. 143 143 * 144 * @param int| array$post_id Either a single Post ID or an array of Post IDs145 * @return int| arrayEither a single Posts pending comments as an int or an array of ints keyed on the Post IDs144 * @param int|int[] $post_id Either a single Post ID or an array of Post IDs 145 * @return int|int[] Either a single Posts pending comments as an int or an array of ints keyed on the Post IDs 146 146 */ 147 147 function get_pending_comments_num( $post_id ) { -
trunk/src/wp-admin/includes/post.php
r49288 r49544 1347 1347 * @since 2.5.0 1348 1348 * 1349 * @param int 1350 * @param string $title Optional. Title to override the post's current title when generating the post name. Default null.1351 * @param string $name Optional. Name to override the post name. Default null.1349 * @param int|WP_Post $id Post ID or post object. 1350 * @param string $title Optional. Title to override the post's current title when generating the post name. Default null. 1351 * @param string $name Optional. Name to override the post name. Default null. 1352 1352 * @return array { 1353 1353 * Array containing the sample permalink with placeholder for the post name, and the post name. … … 1597 1597 * @since 2.5.0 1598 1598 * 1599 * @param int $post_id IDof the post to check for editing.1599 * @param int|WP_Post $post_id ID or object of the post to check for editing. 1600 1600 * @return int|false ID of the user with lock. False if the post does not exist, post is not locked, 1601 1601 * the user with lock does not exist, or the post is locked by current user. … … 1635 1635 * @since 2.5.0 1636 1636 * 1637 * @param int $post_id IDof the post being edited.1637 * @param int|WP_Post $post_id ID or object of the post being edited. 1638 1638 * @return array|false Array of the lock time and user ID. False if the post does not exist, or 1639 1639 * there is no current user. -
trunk/src/wp-includes/class-wp-post.php
r48941 r49544 353 353 * 354 354 * @param string $filter Filter. 355 * @return array|bool|object|WP_Post355 * @return WP_Post 356 356 */ 357 357 public function filter( $filter ) { -
trunk/src/wp-includes/post-formats.php
r49183 r49544 12 12 * @since 3.1.0 13 13 * 14 * @param int| object|null $post Optional. Post ID or post object. Defaults to the current post in the loop.14 * @param int|WP_Post|null $post Optional. Post ID or post object. Defaults to the current post in the loop. 15 15 * @return string|false The format if successful. False otherwise. 16 16 */ -
trunk/src/wp-includes/post.php
r49496 r49544 2324 2324 2325 2325 /** 2326 * Sanitize every post field.2326 * Sanitizes every post field. 2327 2327 * 2328 2328 * If the context is 'raw', then the post object or array will get minimal … … 2333 2333 * @see sanitize_post_field() 2334 2334 * 2335 * @param object|WP_Post|array $post The Post Object or Array2335 * @param object|WP_Post|array $post The post object or array 2336 2336 * @param string $context Optional. How to sanitize post fields. 2337 2337 * Accepts 'raw', 'edit', 'db', or 'display'. 2338 2338 * Default 'display'. 2339 * @return object|WP_Post|array The now sanitized Post Object or Array (will be the2340 * same type as $post).2339 * @return object|WP_Post|array The now sanitized post object or array (will be the 2340 * same type as `$post`). 2341 2341 */ 2342 2342 function sanitize_post( $post, $context = 'display' ) {
Note: See TracChangeset
for help on using the changeset viewer.