WPIntell

Source evidence

Plugin doesn't work

Disable Post Locking · support · 2013-09-19T23:30:00+00:00

mixedsentiment
mediumseverity
0.72relevance
3replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Eric Andrew Lewis resolved
Hey Bryan, great idea here. However, the plugin doesn’t exactly do what it should. On activation of the plugin _edit_lock post meta is cleared, which clears any current locks for posts. I believe the best approach here would be to just filter ‘wp_check_post_lock_window’, and set it to a negative value. Cheers. <?php add_filter( 'wp_check_post_lock_window', 'set_post_lock_window_to_a_negative_number' ); function set_post_lock_window_to_a_negative_number( $lock_window ) { $lock_window = -1; return $lock_window; http://wordpress.org/plugins/disable-post-locking/ I did have a problem initially with version 1.0 that used the wrong method name in the metadata update filter. That was fixed in 1.1 though. I’d give that another shot. Basically, my approach stops WordPress from ever marking a post as locked in the first place, so that also prevents issues like additional lists of posts outside of the editor showing posts as locked as well. Ah works now, and a more to-the-point approach 😉

Comments

3 shown
Bryan Petty 2013-09-20T05:37:00+00:00

I did have a problem initially with version 1.0 that used the wrong method name in the metadata update filter. That was fixed in 1.1 though. I’d give that another shot.

Bryan Petty 2013-09-20T05:38:00+00:00

Basically, my approach stops WordPress from ever marking a post as locked in the first place, so that also prevents issues like additional lists of posts outside of the editor showing posts as locked as well.

Eric Andrew Lewis 2013-09-20T13:28:00+00:00

Ah works now, and a more to-the-point approach 😉