Skip to content

Commit

Permalink
Inline Comments: Enable inline replies on single Social Paper pages.
Browse files Browse the repository at this point in the history
See #1.
  • Loading branch information
r-a-y committed Aug 15, 2015
1 parent cbcabcf commit a3a7fc5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion includes/hooks-inline-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@
*/

/**
* Modify selector for Inline Comments when on our Social Paper single page.
* Enable inline replies in IC on Social Paper single pages.
*
* @param string $retval Current setting.
* @return string
*/
function cacsp_ic_enable_inline_replies( $retval ) {
if ( false === cacsp_is_page() ) {
return $retval;
}

return 1;
}
add_filter( 'option_incom_reply', 'cacsp_ic_enable_inline_replies' );

/**
* Modify selector for Inline Comments when on Social Paper single pages.
*
* @param string $retval Current CSS selector.
* @return string
Expand Down

0 comments on commit a3a7fc5

Please sign in to comment.