Skip to content

Commit

Permalink
more specific regex for 'edit.php' pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-rudakov committed Mar 7, 2022
1 parent 5e1b3a4 commit ee2e01e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/zutranslate-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function update_qtx_config($admin_config) {

if($this->is_option('list') && !$ignore_type) {
$admin_config['edit'] = [
'pages' => ['edit.php' => ''],
'pages' => ['^edit.php' => ''],
// there is no way to indicate that 'qTranslate-XT' plugin do not need to create a language wrap by an anchor
// so we use an existing 'id' (#the-list) and a non-existing 'where' modifier ('none')
'anchors' => ['the-list' => ['where' => 'none']],
Expand Down

0 comments on commit ee2e01e

Please sign in to comment.