mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-16 02:24:30 +00:00
Editor: Use a consistent way to retrieve post ID on Edit Post screens.
Props mukesh27, ravipatel, davidbaumwald. Fixes #52995. git-svn-id: https://develop.svn.wordpress.org/trunk@50693 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -346,7 +346,7 @@ $editor_settings = array(
|
||||
'enableCustomSpacing' => $custom_spacing,
|
||||
);
|
||||
|
||||
$autosave = wp_get_post_autosave( $post_ID );
|
||||
$autosave = wp_get_post_autosave( $post->ID );
|
||||
if ( $autosave ) {
|
||||
if ( mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
|
||||
$editor_settings['autosave'] = array(
|
||||
|
||||
Reference in New Issue
Block a user