Skip to content

Commit 02b923b

Browse files
committed
fix notice
1 parent 29606eb commit 02b923b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WPSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public function should_make_tabs()
197197

198198
public function get_url()
199199
{
200-
if (strpos($this->parent_slug, '.php') !== false && $this->parent_slug) {
200+
if ($this->parent_slug && strpos($this->parent_slug, '.php') !== false) {
201201
return \add_query_arg('page', $this->slug, \admin_url($this->parent_slug));
202202
}
203203

0 commit comments

Comments
 (0)