• Resolved peter-a

    (@peter-a)


    This plugin is great, but it has the side effect of disabling the Quick Edit function.

    To re-enable Quick Edit, I edited line 98 of plugin.php to read:

    if ( 'post.php' != $pagenow && 'post-new.php' != $pagenow && 'edit.php' != $pagenow ) {

    It would be great if you could add a setting in the future to enable or disable Heartbeat on edit.php in order to let the user decide about Quick Edit.

    https://www.ads-software.com/plugins/ajax-heartbeat-tool/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikel King

    (@vizkr)

    Hey @peter-a,

    Thanks for that. I am looking at adding a basic settings page in the next revision. I will try to include this suggestion.

    I also had this happen, thanks for the code suggestion, Peter.

    Plugin Author Mikel King

    (@vizkr)

    Peter,

    I have incorporated your suggestion…

    public function unregister_wp_heartbeat() {
        	global $pagenow;
    
        	if ( $pagenow != 'post.php' &&
                $pagenow != 'post-new.php' &&
                $pagenow != 'edit.php'
               ) {
    
        		wp_deregister_script('heartbeat');
        	}
        }

    Thanks,
    m!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Re-enable Quick Edit’ is closed to new replies.