Skip to content

Commit 264ae52

Browse files
committed
Prevent output of plugin-page specific CSS elsewhere
1 parent 7f1de2b commit 264ae52

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## _(in-progress)_
4+
* Change: Prevent output of plugin-page specific CSS elsewhere
45
* Change: Discontinue handling for contextual help text added via deprecated filter `contextual_help`
56
* Change: Update plugin framework to 050
67
* Allow a hash entry to literally have '0' as a value without being entirely omitted when saved

‎admin-trim-interface.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public function add_css() {
357357
}
358358

359359
// Style the legend image on the plugin's setting page.
360-
if ( is_admin() ) {
360+
if ( is_admin() && ( $this->options_page === get_current_screen()->id ) ) {
361361
$extra_css .= <<<CSS
362362
.c2c-ati-image { position: absolute; left: 400px; }
363363
.appearance_page_admin-trim-interface-admin-trim-interface .form-table th { width: 300px; }

0 commit comments

Comments
 (0)