Changeset 46823
- Timestamp:
- 12/06/2019 10:41:26 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-form-blocks.php
r46596 r46823 145 145 * @param bool|array $allowed_block_types Array of block type slugs, or 146 146 * boolean to enable/disable all. 147 * @param object $postThe post resource data.147 * @param WP_Post $post The post resource data. 148 148 */ 149 149 $allowed_block_types = apply_filters( 'allowed_block_types', true, $post ); -
trunk/src/wp-admin/edit-form-comment.php
r46084 r46823 173 173 * @since 4.3.0 174 174 * 175 * @param string $html Output HTML to display miscellaneous action.176 * @param object $comment Current comment object.175 * @param string $html Output HTML to display miscellaneous action. 176 * @param WP_Comment $comment Current comment object. 177 177 */ 178 178 echo apply_filters( 'edit_comment_misc_actions', '', $comment ); -
trunk/src/wp-admin/edit-tags.php
r46811 r46823 223 223 * @since 4.6.0 224 224 * 225 * @param string $location The destination URL.226 * @param object$tax The taxonomy object.225 * @param string $location The destination URL. 226 * @param WP_Taxonomy $tax The taxonomy object. 227 227 */ 228 228 wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) ); -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r46696 r46823 558 558 * @since 2.8.0 559 559 * 560 * @param mixed $removed Whether the destination was cleared. true on success, WP_Error on failure561 * @param string $local_destination The local package destination.562 * @param string $remote_destination The remote package destination.563 * @param array $hook_extra Extra arguments passed to hooked filters.560 * @param true|WP_Error $removed Whether the destination was cleared. true upon success, WP_Error on failure. 561 * @param string $local_destination The local package destination. 562 * @param string $remote_destination The remote package destination. 563 * @param array $hook_extra Extra arguments passed to hooked filters. 564 564 */ 565 565 $removed = apply_filters( 'upgrader_clear_destination', $removed, $local_destination, $remote_destination, $args['hook_extra'] ); -
trunk/src/wp-admin/includes/post.php
r46732 r46823 1794 1794 * @since 2.6.0 1795 1795 * 1796 * @param mixed$post_data Associative array containing the post data or int post ID.1797 * @return mixedThe autosave revision ID. WP_Error or 0 on error.1796 * @param array|int $post_data Associative array containing the post data or int post ID. 1797 * @return int|WP_Error The autosave revision ID. WP_Error or 0 on error. 1798 1798 */ 1799 1799 function wp_create_post_autosave( $post_data ) { -
trunk/src/wp-admin/includes/revision.php
r46603 r46823 13 13 * @since 3.6.0 14 14 * 15 * @param object|int $post The post object. Also accepts apost ID.16 * @param int $compare_from The revision ID to compare from.17 * @param int $compare_to The revision ID to come to.15 * @param WP_Post|int $post The post object or post ID. 16 * @param int $compare_from The revision ID to compare from. 17 * @param int $compare_to The revision ID to come to. 18 18 * 19 19 * @return array|bool Associative array of a post's revisioned fields and their diffs. … … 159 159 * @since 3.6.0 160 160 * 161 * @param object|int $post The post object. Also accepts apost ID.162 * @param int $selected_revision_id The selected revision ID.163 * @param int $from Optional. The revision ID to compare from.161 * @param WP_Post|int $post The post object or post ID. 162 * @param int $selected_revision_id The selected revision ID. 163 * @param int $from Optional. The revision ID to compare from. 164 164 * 165 165 * @return array An associative array of revision data and related settings. -
trunk/src/wp-admin/includes/template.php
r46662 r46823 33 33 * @param int[] $popular_cats Optional. Array of category IDs to receive the "popular-category" class. 34 34 * Default false. 35 * @param object$walker Optional. Walker object to use to build the output.35 * @param Walker $walker Optional. Walker object to use to build the output. 36 36 * Default is a Walker_Category_Checklist instance. 37 37 * @param bool $checked_ontop Optional. Whether to move checked items out of the hierarchy and to … … 69 69 * @type int[] $popular_cats Array of category IDs to receive the "popular-category" class. 70 70 * Default false. 71 * @type object$walker Walker object to use to build the output.71 * @type Walker $walker Walker object to use to build the output. 72 72 * Default is a Walker_Category_Checklist instance. 73 73 * @type string $taxonomy Taxonomy to generate the checklist for. Default 'category'. -
trunk/src/wp-includes/category-template.php
r46451 r46823 1454 1454 * @since 3.1.0 1455 1455 * 1456 * @param string|int|array $term Optional. The term name/term_id/slug or array of them to check for.1457 * @param string $taxonomy Taxonomy name1458 * @param int| object $postOptional. Post to check instead of the current post.1456 * @param string|int|array $term Optional. The term name/term_id/slug or array of them to check for. 1457 * @param string $taxonomy Taxonomy name. 1458 * @param int|WP_Post $post Optional. Post to check instead of the current post. 1459 1459 * @return bool True if the current post has any of the given tags (or any tag, if no tag specified). 1460 1460 */ -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r46821 r46823 40 40 * @since 4.3.0 41 41 * 42 * @param object$manager An instance of the WP_Customize_Manager class.42 * @param WP_Customize_Manager $manager An instance of the WP_Customize_Manager class. 43 43 */ 44 44 public function __construct( $manager ) { -
trunk/src/wp-includes/class-wp-meta-query.php
r46188 r46823 823 823 * @since 4.1.0 824 824 * 825 * @param string|bool $alias Table alias, or false if none was found.826 * @param array $clause First-order query clause.827 * @param array $parent_query Parent of $clause.828 * @param object$this WP_Meta_Query object.825 * @param string|bool $alias Table alias, or false if none was found. 826 * @param array $clause First-order query clause. 827 * @param array $parent_query Parent of $clause. 828 * @param WP_Meta_Query $this WP_Meta_Query object. 829 829 */ 830 830 return apply_filters( 'meta_query_find_compatible_table_alias', $alias, $clause, $parent_query, $this ); -
trunk/src/wp-includes/comment.php
r46660 r46823 1685 1685 * @since 2.7.0 1686 1686 * 1687 * @param string $new_status New comment status.1688 * @param string $old_status Previous comment status.1689 * @param object $comment Comment data.1687 * @param string $new_status New comment status. 1688 * @param string $old_status Previous comment status. 1689 * @param WP_Comment $comment Comment object. 1690 1690 */ 1691 1691 function wp_transition_comment_status( $new_status, $old_status, $comment ) { … … 1717 1717 * @param int|string $new_status The new comment status. 1718 1718 * @param int|string $old_status The old comment status. 1719 * @param object $comment The comment data.1719 * @param WP_Comment $comment Comment object. 1720 1720 */ 1721 1721 do_action( 'transition_comment_status', $new_status, $old_status, $comment ); -
trunk/src/wp-includes/feed.php
r46757 r46823 774 774 * @since 3.0.0 775 775 * 776 * @param object$feed SimplePie feed object (passed by reference).777 * @param mixed $url URL of feed to retrieve. If an array of URLs, the feeds are merged.776 * @param SimplePie $feed SimplePie feed object (passed by reference). 777 * @param mixed $url URL of feed to retrieve. If an array of URLs, the feeds are merged. 778 778 */ 779 779 do_action_ref_array( 'wp_feed_options', array( &$feed, $url ) ); -
trunk/src/wp-includes/general-template.php
r46698 r46823 1340 1340 * @since 0.71 1341 1341 * 1342 * @param string $_post_title The single post page title.1343 * @param object $_post The current queried object as returned by get_queried_object().1342 * @param string $_post_title The single post page title. 1343 * @param WP_Post $_post The current post. 1344 1344 */ 1345 1345 $title = apply_filters( 'single_post_title', $_post->post_title, $_post ); -
trunk/src/wp-includes/link-template.php
r46795 r46823 1041 1041 * @since 3.1.0 1042 1042 * 1043 * @param string $link Optional. Anchor text. If empty, default is 'Edit This'. Default empty.1044 * @param string $before Optional. Display before edit link. Default empty.1045 * @param string $after Optional. Display after edit link. Default empty.1046 * @param object$term Optional. Term object. If null, the queried object will be inspected. Default null.1047 * @param bool $echo Optional. Whether or not to echo the return. Default true.1043 * @param string $link Optional. Anchor text. If empty, default is 'Edit This'. Default empty. 1044 * @param string $before Optional. Display before edit link. Default empty. 1045 * @param string $after Optional. Display after edit link. Default empty. 1046 * @param WP_Term $term Optional. Term object. If null, the queried object will be inspected. Default null. 1047 * @param bool $echo Optional. Whether or not to echo the return. Default true. 1048 1048 * @return string|void HTML content. 1049 1049 */ -
trunk/src/wp-includes/ms-blogs.php
r46685 r46823 770 770 * @since 3.3.0 771 771 * 772 * @param string $new_status The new post status773 * @param string $old_status The old post status774 * @param object $post Post object772 * @param string $new_status The new post status. 773 * @param string $old_status The old post status. 774 * @param WP_Post $post Post object. 775 775 */ 776 776 function _update_blog_date_on_post_publish( $new_status, $old_status, $post ) { -
trunk/src/wp-includes/nav-menu.php
r46660 r46823 1066 1066 * @access private 1067 1067 * 1068 * @param string $new_status The new status of the post object.1069 * @param string $old_status The old status of the post object.1070 * @param object $post The post object being transitioned from one status to another.1068 * @param string $new_status The new status of the post object. 1069 * @param string $old_status The old status of the post object. 1070 * @param WP_Post $post The post object being transitioned from one status to another. 1071 1071 */ 1072 1072 function _wp_auto_add_pages_to_menu( $new_status, $old_status, $post ) { -
trunk/src/wp-includes/post-formats.php
r46660 r46823 42 42 * @since 3.1.0 43 43 * 44 * @param string|array $format Optional. The format or formats to check.45 * @param object|int|null $post Optional. The post to check. If not supplied, defaults to the current post if used in the loop.44 * @param string|array $format Optional. The format or formats to check. 45 * @param WP_Post|int|null $post Optional. The post to check. If not supplied, defaults to the current post if used in the loop. 46 46 * @return bool True if the post has any of the given formats (or any format, if no format specified), false otherwise. 47 47 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-blocks-controller.php
r46586 r46823 25 25 * @since 5.0.0 26 26 * 27 * @param object $post Post object that backs the block.27 * @param WP_Post $post Post object that backs the block. 28 28 * @return bool Whether the block can be read. 29 29 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r46696 r46823 1665 1665 * @since 4.7.0 1666 1666 * 1667 * @param object $comment Comment object.1667 * @param WP_Comment $comment Comment object. 1668 1668 * @return bool Whether the comment can be edited or deleted. 1669 1669 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-post-types-controller.php
r46696 r46823 228 228 * @since 4.7.0 229 229 * 230 * @param WP_REST_Response $response The response object.231 * @param object $itemThe original post type object.232 * @param WP_REST_Request $request Request used to generate the response.230 * @param WP_REST_Response $response The response object. 231 * @param WP_Post_Type $post_type The original post type object. 232 * @param WP_REST_Request $request Request used to generate the response. 233 233 */ 234 234 return apply_filters( 'rest_prepare_post_type', $response, $post_type, $request ); -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r46646 r46823 870 870 * @since 4.7.0 871 871 * 872 * @param object$post The deleted or trashed post.872 * @param WP_Post $post The deleted or trashed post. 873 873 * @param WP_REST_Response $response The response data. 874 874 * @param WP_REST_Request $request The request sent to the API. … … 1146 1146 * @since 4.7.0 1147 1147 * 1148 * @param string $post_status Post status.1149 * @param object$post_type Post type.1148 * @param string $post_status Post status. 1149 * @param WP_Post_Type $post_type Post type. 1150 1150 * @return string|WP_Error Post status or WP_Error if lacking the proper permission. 1151 1151 */ … … 1322 1322 * @since 4.7.0 1323 1323 * 1324 * @param object|string $post_type Post type name or object.1324 * @param WP_Post_Type|string $post_type Post type name or object. 1325 1325 * @return bool Whether the post type is allowed in REST. 1326 1326 */ … … 1344 1344 * @since 4.7.0 1345 1345 * 1346 * @param object $post Post object.1346 * @param WP_Post $post Post object. 1347 1347 * @return bool Whether the post can be read. 1348 1348 */ … … 1387 1387 * @since 4.7.0 1388 1388 * 1389 * @param object $post Post object.1389 * @param WP_Post $post Post object. 1390 1390 * @return bool Whether the post can be edited. 1391 1391 */ … … 1405 1405 * @since 4.7.0 1406 1406 * 1407 * @param object $post Post object.1407 * @param WP_Post $post Post object. 1408 1408 * @return bool Whether the post can be created. 1409 1409 */ … … 1423 1423 * @since 4.7.0 1424 1424 * 1425 * @param object $post Post object.1425 * @param WP_Post $post Post object. 1426 1426 * @return bool Whether the post can be deleted. 1427 1427 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r46731 r46823 782 782 * 783 783 * @param WP_REST_Response $response The response object. 784 * @param object$item The original term object.784 * @param WP_Term $item The original term object. 785 785 * @param WP_REST_Request $request Request used to generate the response. 786 786 */ … … 793 793 * @since 4.7.0 794 794 * 795 * @param object$term Term object.795 * @param WP_Term $term Term object. 796 796 * @return array Links for the given term. 797 797 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
r46804 r46823 962 962 * 963 963 * @param WP_REST_Response $response The response object. 964 * @param object$user User object used to create response.964 * @param WP_User $user User object used to create response. 965 965 * @param WP_REST_Request $request Request object. 966 966 */ -
trunk/src/wp-includes/taxonomy.php
r46696 r46823 3684 3684 * @global wpdb $wpdb WordPress database abstraction object. 3685 3685 * 3686 * @param array$terms List of Term taxonomy IDs.3687 * @param object$taxonomy Current taxonomy object of terms.3686 * @param int[] $terms List of Term taxonomy IDs. 3687 * @param WP_Taxonomy $taxonomy Current taxonomy object of terms. 3688 3688 */ 3689 3689 function _update_post_term_count( $terms, $taxonomy ) { … … 3739 3739 * @global wpdb $wpdb WordPress database abstraction object. 3740 3740 * 3741 * @param array$terms List of term taxonomy IDs.3742 * @param object$taxonomy Current taxonomy object of terms.3741 * @param int[] $terms List of term taxonomy IDs. 3742 * @param WP_Taxonomy $taxonomy Current taxonomy object of terms. 3743 3743 */ 3744 3744 function _update_generic_term_count( $terms, $taxonomy ) { … … 4173 4173 * @global WP_Rewrite $wp_rewrite WordPress rewrite component. 4174 4174 * 4175 * @param object|int|string $term The term object, ID, or slug whose link will be retrieved.4176 * @param string $taxonomy Optional. Taxonomy. Default empty.4175 * @param WP_Term|int|string $term The term object, ID, or slug whose link will be retrieved. 4176 * @param string $taxonomy Optional. Taxonomy. Default empty. 4177 4177 * @return string|WP_Error URL of the taxonomy term archive on success, WP_Error if term does not exist. 4178 4178 */ … … 4270 4270 * @since 2.5.0 4271 4271 * 4272 * @param string $termlink Term link URL.4273 * @param object$term Term object.4274 * @param string $taxonomy Taxonomy slug.4272 * @param string $termlink Term link URL. 4273 * @param WP_Term $term Term object. 4274 * @param string $taxonomy Taxonomy slug. 4275 4275 */ 4276 4276 return apply_filters( 'term_link', $termlink, $term, $taxonomy ); -
trunk/src/wp-includes/user.php
r46804 r46823 2451 2451 * @since 1.5.0 2452 2452 * 2453 * @param object$user The user.2454 * @param string $new_pass New user password.2453 * @param WP_User $user The user. 2454 * @param string $new_pass New user password. 2455 2455 */ 2456 2456 do_action( 'password_reset', $user, $new_pass ); -
trunk/src/wp-login.php
r46788 r46823 926 926 * @since 3.5.0 927 927 * 928 * @param object$errors WP Error object.928 * @param WP_Error $errors WP Error object. 929 929 * @param WP_User|WP_Error $user WP_User object if the login and reset key match. WP_Error object otherwise. 930 930 */ … … 1321 1321 * @since 3.6.0 1322 1322 * 1323 * @param object$errors WP Error object.1324 * @param string $redirect_to Redirect destination URL.1323 * @param WP_Error $errors WP Error object. 1324 * @param string $redirect_to Redirect destination URL. 1325 1325 */ 1326 1326 $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to );
Note: See TracChangeset
for help on using the changeset viewer.