Warning fixes from DD32. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9332 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d77e7d4883
commit
2b5d6d0b6e
|
@ -13,6 +13,8 @@
|
||||||
*/
|
*/
|
||||||
if ( ! isset( $post_ID ) )
|
if ( ! isset( $post_ID ) )
|
||||||
$post_ID = 0;
|
$post_ID = 0;
|
||||||
|
if ( ! isset( $temp_ID ) )
|
||||||
|
$temp_ID = 0;
|
||||||
|
|
||||||
if ( isset($_GET['message']) )
|
if ( isset($_GET['message']) )
|
||||||
$_GET['message'] = absint( $_GET['message'] );
|
$_GET['message'] = absint( $_GET['message'] );
|
||||||
|
@ -37,7 +39,7 @@ if ( 0 == $post_ID) {
|
||||||
$form_action = 'editpost';
|
$form_action = 'editpost';
|
||||||
$nonce_action = 'update-page_' . $post_ID;
|
$nonce_action = 'update-page_' . $post_ID;
|
||||||
$form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
|
$form_extra = "<input type='hidden' id='post_ID' name='post_ID' value='$post_ID' />";
|
||||||
$autosave = wp_get_post_autosave( $post_id );
|
$autosave = wp_get_post_autosave( $post_ID );
|
||||||
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) )
|
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt ) > mysql2date( 'U', $post->post_modified_gmt ) )
|
||||||
$notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
|
$notice = sprintf( $notices[1], get_edit_post_link( $autosave->ID ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue