[wp-trac] [WordPress Trac] #46275: Use CSS not paragraph tag for plugin install card notice

WordPress Trac noreply at wordpress.org
Tue Mar 12 13:47:28 UTC 2019


#46275: Use CSS not paragraph tag for plugin install card notice
-----------------------------------------------+---------------------
 Reporter:  afragen                            |       Owner:  (none)
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  5.2
Component:  Upgrade/Install                    |     Version:  5.1
 Severity:  normal                             |  Resolution:
 Keywords:  servehappy has-patch dev-feedback  |     Focuses:
-----------------------------------------------+---------------------

Comment (by afragen):

 There are several locations where paragraph tags are used for spacing
 purposes that can be more efficiently done with CSS. This patch also
 removes several surrounding paragraph tags that were inserted for earlier
 Servehappy commits.
 https://core.trac.wordpress.org/ticket/43987#comment:36

 Combined with the issue of having nested paragraph tags causing browsers
 to create additional paragraph tags pairs resulting in empty paragraph tag
 pairings.

 As the default parameters for the `wp_update_php_annotaation()` are
 paragraph tags, this change obviates needing to place the `<br><span>...`
 parameters in about 4 to 5 other locations.

 If I’m not explaining this well, please let me know.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46275#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list