mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 15:17:42 +02:00
Posts, Post Types: Revert [43617] from the 4.9 branch.
This change is out of the 4.9.x scope, and will be reintroduced in 5.0.x. See #34706. Built from https://develop.svn.wordpress.org/branches/4.9@43707 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b1f105e400
commit
f6edca7a9e
@ -2964,9 +2964,6 @@ final class WP_Customize_Manager {
|
|||||||
$post->post_status = $new_status;
|
$post->post_status = $new_status;
|
||||||
wp_transition_post_status( $new_status, $old_status, $post );
|
wp_transition_post_status( $new_status, $old_status, $post );
|
||||||
|
|
||||||
/** This action is documented in wp-includes/post.php */
|
|
||||||
do_action( "edit_post_{$post->post_type}", $post->ID, $post );
|
|
||||||
|
|
||||||
/** This action is documented in wp-includes/post.php */
|
/** This action is documented in wp-includes/post.php */
|
||||||
do_action( 'edit_post', $post->ID, $post );
|
do_action( 'edit_post', $post->ID, $post );
|
||||||
|
|
||||||
|
@ -2403,10 +2403,6 @@ function wp_update_comment_count_now($post_id) {
|
|||||||
* @param int $old The old comment count.
|
* @param int $old The old comment count.
|
||||||
*/
|
*/
|
||||||
do_action( 'wp_update_comment_count', $post_id, $new, $old );
|
do_action( 'wp_update_comment_count', $post_id, $new, $old );
|
||||||
|
|
||||||
/** This action is documented in wp-includes/post.php */
|
|
||||||
do_action( "edit_post_{$post->post_type}", $post_id, $post );
|
|
||||||
|
|
||||||
/** This action is documented in wp-includes/post.php */
|
/** This action is documented in wp-includes/post.php */
|
||||||
do_action( 'edit_post', $post_id, $post );
|
do_action( 'edit_post', $post_id, $post );
|
||||||
|
|
||||||
|
@ -3624,19 +3624,6 @@ function wp_insert_post( $postarr, $wp_error = false ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $update ) {
|
if ( $update ) {
|
||||||
/**
|
|
||||||
* Fires once an existing post has been updated.
|
|
||||||
*
|
|
||||||
* The dynamic portion of the hook name, `$post->post_type`, refers to
|
|
||||||
* the post type slug.
|
|
||||||
*
|
|
||||||
* @since 4.9.9
|
|
||||||
*
|
|
||||||
* @param int $post_ID Post ID.
|
|
||||||
* @param WP_Post $post Post object.
|
|
||||||
*/
|
|
||||||
do_action( "edit_post_{$post->post_type}", $post_ID, $post );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires once an existing post has been updated.
|
* Fires once an existing post has been updated.
|
||||||
*
|
*
|
||||||
@ -3646,7 +3633,6 @@ function wp_insert_post( $postarr, $wp_error = false ) {
|
|||||||
* @param WP_Post $post Post object.
|
* @param WP_Post $post Post object.
|
||||||
*/
|
*/
|
||||||
do_action( 'edit_post', $post_ID, $post );
|
do_action( 'edit_post', $post_ID, $post );
|
||||||
|
|
||||||
$post_after = get_post($post_ID);
|
$post_after = get_post($post_ID);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3786,9 +3772,6 @@ function wp_publish_post( $post ) {
|
|||||||
$post->post_status = 'publish';
|
$post->post_status = 'publish';
|
||||||
wp_transition_post_status( 'publish', $old_status, $post );
|
wp_transition_post_status( 'publish', $old_status, $post );
|
||||||
|
|
||||||
/** This action is documented in wp-includes/post.php */
|
|
||||||
do_action( "edit_post_{$post->post_type}", $post->ID, $post );
|
|
||||||
|
|
||||||
/** This action is documented in wp-includes/post.php */
|
/** This action is documented in wp-includes/post.php */
|
||||||
do_action( 'edit_post', $post->ID, $post );
|
do_action( 'edit_post', $post->ID, $post );
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9.9-alpha-43705';
|
$wp_version = '4.9.9-alpha-43707';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user