Changeset 12991
- Timestamp:
- 02/06/2010 02:56:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r12987 r12991 929 929 $data = $message; 930 930 } else { 931 if ( '1' == $_POST['auto_draft'] )931 if ( isset( $_POST['auto_draft'] ) && '1' == $_POST['auto_draft'] ) 932 932 $id = 0; // This tells us it didn't actually save 933 933 else … … 935 935 } 936 936 937 if ( $do_lock && $_POST['auto_draft'] != '1'&& $id && is_numeric($id) )937 if ( $do_lock && ( isset( $_POST['auto_draft'] ) && ( $_POST['auto_draft'] != '1' ) ) && $id && is_numeric($id) ) 938 938 wp_set_post_lock( $id ); 939 939
Note: See TracChangeset
for help on using the changeset viewer.