mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Docs: Use typed array notation in some post function DocBlocks:
* `wp_queue_posts_for_term_meta_lazyload()` * `_prime_post_caches()` See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@53484 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -7008,8 +7008,8 @@ function wp_mime_type_icon( $mime = 0 ) {
|
||||
* @since 2.1.0
|
||||
*
|
||||
* @param int $post_id Post ID.
|
||||
* @param WP_Post $post The Post Object
|
||||
* @param WP_Post $post_before The Previous Post Object
|
||||
* @param WP_Post $post The post object.
|
||||
* @param WP_Post $post_before The previous post object.
|
||||
*/
|
||||
function wp_check_for_changed_slugs( $post_id, $post, $post_before ) {
|
||||
// Don't bother if it hasn't changed.
|
||||
@@ -7051,8 +7051,8 @@ function wp_check_for_changed_slugs( $post_id, $post, $post_before ) {
|
||||
* @since 4.9.3
|
||||
*
|
||||
* @param int $post_id Post ID.
|
||||
* @param WP_Post $post The Post Object
|
||||
* @param WP_Post $post_before The Previous Post Object
|
||||
* @param WP_Post $post The post object.
|
||||
* @param WP_Post $post_before The previous post object.
|
||||
*/
|
||||
function wp_check_for_changed_dates( $post_id, $post, $post_before ) {
|
||||
$previous_date = gmdate( 'Y-m-d', strtotime( $post_before->post_date ) );
|
||||
@@ -7793,7 +7793,7 @@ function wp_delete_auto_drafts() {
|
||||
*
|
||||
* @since 4.5.0
|
||||
*
|
||||
* @param array $posts Array of WP_Post objects.
|
||||
* @param WP_Post[] $posts Array of WP_Post objects.
|
||||
*/
|
||||
function wp_queue_posts_for_term_meta_lazyload( $posts ) {
|
||||
$post_type_taxonomies = array();
|
||||
@@ -7857,7 +7857,7 @@ function _update_term_count_on_transition_post_status( $new_status, $old_status,
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param array $ids ID list.
|
||||
* @param int[] $ids ID list.
|
||||
* @param bool $update_term_cache Optional. Whether to update the term cache. Default true.
|
||||
* @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user