Skip to content

Commit

Permalink
Inline Comments: Disables the cancel 'x' button.
Browse files Browse the repository at this point in the history
See #1.
  • Loading branch information
r-a-y committed Aug 21, 2015
1 parent d77aef7 commit 6fed1d9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions includes/hooks-inline-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ function cacsp_ic_modify_selector( $retval ) {
}
add_filter( 'option_multiselector', 'cacsp_ic_modify_selector' );

/**
* Disables the cancel 'x' button in IC on Social Paper single pages.
*
* @param string $retval Current setting.
* @return string
*/
function cacsp_ic_disable_x_button( $retval ) {
if ( false === cacsp_is_page() ) {
return $retval;
}

return '1';
}
add_filter( 'option_cancel_x', 'cacsp_ic_disable_x_button' );

/** COMMENT OVERRIDES *******************************************************/

/**
Expand Down

0 comments on commit 6fed1d9

Please sign in to comment.