Skip to content

Commit 7c7e65f

Browse files
author
Tom Hanoldt
committed
add is_admin check
1 parent cda03be commit 7c7e65f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Theme.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ class Theme{
99
public $footer='';
1010

1111
public function touchAfterPostUpdated($file = 'functions.php'){
12+
if(!is_admin())
13+
return $this;
14+
1215
$file = get_stylesheet_directory() . '/' . $file;
1316

1417
add_action( 'post_updated', function() use($file){

0 commit comments

Comments
 (0)