Changeset 10677
- Timestamp:
- 02/16/2021 07:01:53 AM (4 years ago)
- Location:
- sites/trunk/trac.wordpress.org/templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/site.html
r10509 r10677 53 53 ticket_preview.html (as site.html isn't) --> 54 54 <xi:include href="site-ticket.html" /> 55 56 <!--! Append a version string to CSS files hosted on the w.org CDN -->57 <py:match path="link[@rel='stylesheet' and starts-with(@href,'https://s.w.org/') and substring-after(@href,'.css') = '']">58 <link rel="stylesheet" href="${select('@href')}?v=${scripts_version}" />59 </py:match>60 55 61 56 <!--! Styles and such. Load before first JS file (jquery.js) --> … … 74 69 <xi:include href="wporg-head.html" /> 75 70 <meta name="viewport" content="width=device-width" /> 76 <link rel='stylesheet' href='https://s.w.org/wp-includes/css/dashicons.min.css? 20150710' type='text/css' />71 <link rel='stylesheet' href='https://s.w.org/wp-includes/css/dashicons.min.css?${scripts_version}' type='text/css' /> 77 72 <link rel="stylesheet" type="text/css" href="https://s.w.org/style/trac/wp-trac.css?${scripts_version}" /> 78 <link py:if="req.session['authenticated']" rel="stylesheet" href="https://s.w.org/wp-includes/css/wp-auth-check.css? ver=3.9-alpha" type="text/css" media="all" />73 <link py:if="req.session['authenticated']" rel="stylesheet" href="https://s.w.org/wp-includes/css/wp-auth-check.css?${scripts_version}" type="text/css" media="all" /> 79 74 80 75 <script py:attrs="select('@*')"></script> … … 96 91 <meta name="robots" content="$robots"/> 97 92 </py:if> 98 </py:match>99 100 <!--! Append a version string to JS files hosted on the w.org CDN -->101 <py:match path="script[starts-with(@src,'https://s.w.org/') and substring-after(@src,'.js') = '']">102 <script src="${select('@src')}?v=${scripts_version}">${select('*|comment()|text()')}</script>103 93 </py:match> 104 94 … … 330 320 331 321 <!--! JavaScript --> 332 <script src="https://s.w.org/style/js/navigation.min.js? 20190128"></script>333 <script src="https://s.w.org/style/trac/jquery.caret.min.js? ver=2015-02-01"></script>334 <script src="https://s.w.org/style/trac/jquery.atwho.min.js? ver=1.0.1"></script>322 <script src="https://s.w.org/style/js/navigation.min.js?${scripts_version}"></script> 323 <script src="https://s.w.org/style/trac/jquery.caret.min.js?${scripts_version}"></script> 324 <script src="https://s.w.org/style/trac/jquery.atwho.min.js?${scripts_version}"></script> 335 325 <script src="https://s.w.org/style/trac/wp-trac.js?${scripts_version}"></script> 336 326 … … 380 370 381 371 <xi:include href="site-specific.html"><xi:fallback /></xi:include> 372 373 <!--! The following rules should be just before `</html>` to ensure it affects all of the document. --> 374 375 <!--! Append a version string to CSS files hosted on the w.org CDN --> 376 <py:match path="link[@rel='stylesheet' and starts-with(@href,'https://s.w.org/') and substring-after(@href,'.css') = '']"> 377 <link rel="stylesheet" href="${select('@href')}?v=${scripts_version}" /> 378 </py:match> 379 380 <!--! Append a version string to JS files hosted on the w.org CDN --> 381 <py:match path="script[starts-with(@src,'https://s.w.org/') and substring-after(@src,'.js') = '']"> 382 <script src="${select('@src')}?v=${scripts_version}">${select('*|comment()|text()')}</script> 383 </py:match> 384 385 <!--! Allow bypassing the WordPress.org CDN for testing. --> 386 <py:if test="'cdn' in req.args and 'wordpress.org' == req.args.cdn"> 387 <py:match path="link[@rel='stylesheet' and starts-with(@href,'https://s.w.org/')]"> 388 <link rel="stylesheet" href="${select('@href').render().replace('s.w.org','wordpress.org')}" /> 389 </py:match> 390 <py:match path="script[starts-with(@src,'https://s.w.org/')]"> 391 <script src="${select('@src').render().replace('s.w.org','wordpress.org')}">${select('*|comment()|text()')}</script> 392 </py:match> 393 </py:if> 394 382 395 </html> -
sites/trunk/trac.wordpress.org/templates/wporg-head.html
r9095 r10677 24 24 </style> 25 25 <link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,300,600&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic' rel='stylesheet' type='text/css' /> 26 <link rel="stylesheet" href="https://s.w.org/style/wp4.css ?80" />26 <link rel="stylesheet" href="https://s.w.org/style/wp4.css" /> 27 27 <!--[if lte IE 8]> 28 28 <style type="text/css">
Note: See TracChangeset
for help on using the changeset viewer.