Skip to content

Commit

Permalink
fixes #1421
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath committed Jun 25, 2017
1 parent 0afbcbf commit 54050bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/class-kirki-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ public function http_request( $r = array(), $url = '' ) {
*/
public function is_plugin_active( $plugins ) {
global $pagenow;
if ( is_array( $plugins ) && 'plugins.php' !== $pagenow && 'network/plugins.php' !== $pagenow ) {
$referer = ( isset( $_SERVER ) && isset( $_SERVER['HTTP_REFERER'] ) ) ? $_SERVER['HTTP_REFERER'] : '';
if ( is_array( $plugins ) && 'plugins.php' !== $pagenow && 'network/plugins.php' !== $pagenow && false === strpos( $referer, 'plugins.php' ) ) {
$exists = false;
foreach ( $plugins as $plugin ) {
if ( false !== strpos( $plugin, 'kirki.php' ) ) {
Expand Down

0 comments on commit 54050bb

Please sign in to comment.