Make WordPress Core


Ignore:
Timestamp:
11/09/2019 12:57:27 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Consistently use do_action_deprecated() and apply_filters_deprecated() for deprecated hooks.

Props jrf.
See #48255.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r46660 r46684  
    63336333         * @param string $cap Capability.
    63346334         */
    6335         $cap = apply_filters( 'pub_priv_sql_capability', '' );
     6335        $cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0' );
    63366336        if ( ! $cap ) {
    63376337            $cap = current_user_can( $post_type_obj->cap->read_private_posts );
     
    67426742         * @param int $post_id Post ID.
    67436743         */
    6744         do_action( 'private_to_published', $post->ID );
     6744        do_action_deprecated( 'private_to_published', array( $post->ID ), '2.3.0', 'private_to_publish' );
    67456745    }
    67466746
Note: See TracChangeset for help on using the changeset viewer.