[wp-trac] [WordPress Trac] #12763: "Last edited by" not correct username
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 6 14:42:56 UTC 2010
#12763: "Last edited by" not correct username
----------------------------+-----------------------------------------------
Reporter: rooodini | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Administration | Version: 2.9.2
Severity: normal | Keywords: has-patch tested
----------------------------+-----------------------------------------------
Changes (by scribu):
* keywords: has-patch, dev-feedback => has-patch tested
Comment:
Seems to be working properly.
This line is unnecessary:
{{{if ( !add_post_meta( $post_ID, '_edit_last',
$GLOBALS['current_user']->ID, true ) )}}}
update_post_meta() will internally call add_post_meta() if necessary.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12763#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list