[wp-trac] [WordPress Trac] #39390: Update to 4.7 broke front-end stylings

WordPress Trac noreply at wordpress.org
Mon Dec 26 18:00:55 UTC 2016


#39390: Update to 4.7 broke front-end stylings
-------------------------------------+------------------------------
 Reporter:  yogaman5020              |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Formatting               |     Version:  4.7
 Severity:  normal                   |  Resolution:
 Keywords:  close reporter-feedback  |     Focuses:
-------------------------------------+------------------------------

Comment (by yogaman5020):

 Hello Dion,

 To understand what I mean by the statement “The HTML on the site header
 was stripped out”, you’ll need to open the sites `[yogastlouis.us]` and
 `[ystl.spiralwebdb.com]` in either Google Chrome or Firefox and use their
 web development inspector tools to inspect the page Elements. While you’re
 at it, be sure to drag the right edge of the browser screen to ensure the
 screen width is 1440px or greater.  There’s a media query breakpoint set
 to 1439px above which a full navigation header appears. [Below 1440px, a
 single ‘Menu’ icon appears.]

 At any rate, when you inspect the header using developer tools, you will
 observe that on the site running WP 4.6.1 (yogastlouis.us), the following
 HTML elements appear sequentially below the site-header:

 <div class=“navigation-container>
 <div class=“utility-bar-after-header”> // contains social media icons
 <div class=“home-gallery"> // front-page widget areas

 By comparison, on the site running WP 4.7 (ystl.spiralwebdb.com), the
 <div> containing the `.utility-bar-after-header` class attribute was
 stripped out on the front-end. I inspected the child-theme file (wp-
 content/themes/utility-pro/lib/structure/header.php) that passes in this
 class attribute.  The custom callback (function) preregistered to the
 `genesis_after_header` event (hook) failed to register with WP Core.  Not
 sure why this is happening.  The callback executed perfectly in WP 4.6.1.
 The child theme code is unchanged between version 4.6.1 and 4.7.

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


More information about the wp-trac mailing list