[wp-trac] [WordPress Trac] #46205: CSS stylesheet ID becoming munged under WP.

WordPress Trac noreply at wordpress.org
Thu Feb 7 18:23:32 UTC 2019


#46205: CSS stylesheet ID becoming munged under WP.
--------------------------+-----------------------------
 Reporter:  richardfoley  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.0.3
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 We had a weird timeout delay for some users on the site and narrowed it
 down to a non-existent stylesheet reference. Further searching produced
 the following debug statements around
 {{{
 wp-includes/class.wp-styles.php line 191
 }}}
  and below.

 {{{

 PHP message: B tag=<link rel='stylesheet' id='generate-child-css'
 href='https://www.naktiv.net/wp-content/themes/naktiv-
 generatepress/style.css?ver=1549205521' type='text/css' media='all' />
 PHP message: C tag=<link rel='stylesheet' id='generate-child-css'
 href='https://www.naktiv.net/wp-content/themes/naktiv-
 generatepress/style.css?ver=1549205521' type='text/css' media='all' />
 PHP message: A handle=1549205521
 PHP message: B tag=<link rel='stylesheet' id='1549205521-css'
 href='https://www.naktiv.netall?ver=5.0.3' type='text/css' media='all' />
 PHP message: C tag=<link rel='stylesheet' id='1549205521-css'
 href='https://www.naktiv.netall?ver=5.0.3' type='text/css' media='all' />"
 while reading upstream, client: 91.126.35.66, server: naktiv.net, request:
 "GET /docs/help/ HTTP/2.0", upstream:
 "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "www.naktiv.net",
 referrer: "https://www.naktiv.net/docs/help/"
 }}}

 You can see that the initial tag string has a `?ver=1549205521` appended.

 The `$handle` variable appears to take this version string and then apply
 it as the name of the `-css` file, creating `id='1549205521-css'`. Which
 is almost certainly wrong.

 This in turn leads to a non-existent URL:
 `href='https://www.naktiv.netall?ver=5.0.3'` on the
 `https://www.naktiv.net` site.

 Maybe someone can take a look at this?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46205>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list