Lewiscowles1986 / WordPressSVGPlugin

WordPress SVG Plugin
GNU General Public License v3.0
42 stars 4 forks source link

Excerpt view for posts broken if emojii's exist #17

Closed Lewiscowles1986 closed 7 years ago

Lewiscowles1986 commented 7 years ago

If this plugin is active, and I visit the url {websiteurl}/wp-admin/edit.php?mode=excerpt with any post having an emojii. This happens

screenshot capture - 2017-07-12 - 07-09-36

If I disable this plugin. I see this

screenshot capture - 2017-07-12 - 07-11-42

Use case As any user that can view the admin back-end. So that I can see as many posts as necessary, it would be nice if this plugin did not alter default WordPress behaviour for displaying the post listing.

Lewiscowles1986 commented 7 years ago

16 deals with this using a css :not(.emoji) suffix to the existing img[src$=".svg"] which in retrospect is a little greedy. Also an option is .media-icon.image-icon img[src$=".svg"], .thumbnail.cd2-svg, .details-image.cd2-svg, it's longer but seems to work well with attachment post view, grid view and list view. which fits with #2 pushing all non-have-to-have CSS edits to user choice. Thoughts? Comments?

Lewiscowles1986 commented 7 years ago

Fixed :wink:

Lewiscowles1986 commented 4 years ago

Fixed in a better way RE: #24 by using a parent body:not(.wp-admin) selector