如果你不喜欢此功能,可以在当前主题的functions.php中添加以下PHP代码
代码如下 |
复制代码 |
/*
* Plugin Name: Remove Double-Click to Edit for Comments
* Description: Disables the double-click to edit action for comments
* Author: Pippin Williamson
* Version: 1.0
*/
class Remove_Double_Click_To_Edit {
public function __construct() {
add_action( 'admin_footer', array( $this, 'javascript' ) );
}
public function javascript() {
global $pagenow;
if( 'edit-comments.php' != $pagenow ) {
return;
}
?>
}
}
new Remove_Double_Click_To_Edit;
|