Skip to content

Commit

Permalink
Return false if get_liveblog_state is not called by single or admin.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonagnew committed Jul 10, 2015
1 parent be282bb commit 8cce6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liveblog.php
Expand Up @@ -373,7 +373,7 @@ public static function is_viewing_liveblog_post() {
* One of: 'enable', 'archive', false.
*/
public static function get_liveblog_state( $post_id = null ) {
if ( ! is_single() ) {
if ( ! is_single() && ! is_admin() ) {
return false;
}
if ( empty( $post_id ) ) {
Expand Down

0 comments on commit 8cce6d5

Please sign in to comment.