[wp-trac] [WordPress Trac] #37504: Update message displays unstyled in plugins list
WordPress Trac
noreply at wordpress.org
Fri Aug 5 05:36:16 UTC 2016
#37504: Update message displays unstyled in plugins list
--------------------------+---------------------------------
Reporter: ovann86 | Owner: DrewAPicture
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.6
Component: Plugins | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, administration
--------------------------+---------------------------------
Comment (by rahulsprajapati):
@helen
I have used `:not(.notice)` selector because of this markup we are using
in update message from 4.6
`WP 4.6` :
{{{
<div class="update-message notice inline notice-warning notice-alt">
<p>Update Message..</p>
</div>
}}}
`WP < 4.6` :
{{{
<div class="update-message">
Update Message..
</div>
}}}
Now, here I can see only one way for backwards compatibility, using
`:not(.notice)` selector. I did check this `.update-message` class in the
core and it's not used in other than update message sections. So I think
`.update-message:not(.notice)` should not conflict with any other CSS of
the core.
We can also use `notice-warning` class for `:not` selector.
Thank you. :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37504#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list