Making WordPress.org

Changeset 13188


Ignore:
Timestamp:
02/07/2024 09:31:36 AM (4 months ago)
Author:
dd32
Message:

Trac: Treat the footer HTML as UTF-8. The charset isn't being detected as it lacks a HTML dom, and is only the main footer elements. This restores footer arrows. Follow up to [13182]

Location:
sites/trunk/trac.wordpress.org/templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/update-headers.php

    r13187 r13188  
    2222        $html
    2323    );
     24
     25    // Ensure it's treated as UTF8, we'll assume if there's no <body> tag it's just a HTML blob.
     26    if ( ! strpos( $html, '<body' ) ) {
     27        $html = '<!DOCTYPE html>
     28            <html xmlns="http://www.w3.org/1999/xhtml">
     29            <head>
     30                <meta charset="UTF-8">
     31            </head>
     32            <body>' . $html . '</body></html>';
     33    }
    2434
    2535    $doc = new DOMDocument();
  • sites/trunk/trac.wordpress.org/templates/wporg-footer.html

    r13185 r13188  
    1818            <li><a href="https://wordpress.org/documentation/">Documentation</a></li>
    1919        <li><a href="https://developer.wordpress.org/">Developers</a></li>
    20         <li><a href="https://wordpress.tv/">WordPress.tv <span aria-hidden="true">↗</span></a></li>
     20        <li><a href="https://wordpress.tv/">WordPress.tv <span aria-hidden="true"></span></a></li>
    2121    </ul>
    2222    <ul>
    2323        <li><a href="https://make.wordpress.org/">Get Involved</a></li>
    2424        <li><a href="https://events.wordpress.org/">Events</a></li>
    25         <li><a href="https://wordpressfoundation.org/donate/">Donate <span aria-hidden="true">↗</span></a></li>
    26         <li><a href="https://mercantile.wordpress.org/">Swag Store <span aria-hidden="true">↗</span></a></li>
     25        <li><a href="https://wordpressfoundation.org/donate/">Donate <span aria-hidden="true"></span></a></li>
     26        <li><a href="https://mercantile.wordpress.org/">Swag Store <span aria-hidden="true"></span></a></li>
    2727    </ul>
    2828    <ul>
    29         <li><a href="https://wordpress.com/?ref=wporg-footer">WordPress.com <span aria-hidden="true">↗</span></a></li>
    30         <li><a href="https://ma.tt/">Matt <span aria-hidden="true">↗</span></a></li>
    31         <li><a href="https://bbpress.org/">bbPress <span aria-hidden="true">↗</span></a></li>
    32         <li><a href="https://buddypress.org/">BuddyPress <span aria-hidden="true">↗</span></a></li>
     29        <li><a href="https://wordpress.com/?ref=wporg-footer">WordPress.com <span aria-hidden="true"></span></a></li>
     30        <li><a href="https://ma.tt/">Matt <span aria-hidden="true"></span></a></li>
     31        <li><a href="https://bbpress.org/">bbPress <span aria-hidden="true"></span></a></li>
     32        <li><a href="https://buddypress.org/">BuddyPress <span aria-hidden="true"></span></a></li>
    3333    </ul>
    3434</nav>
  • sites/trunk/trac.wordpress.org/templates/wporg-head.html

    r13187 r13188  
    3232</style>
    3333<link rel="stylesheet" id="open-sans-css" href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&amp;display=swap" media="all"/>
    34 <link rel="stylesheet" id="wp4-styles-css" href="https://s.w.org/style/wp4.css?ver=1645139155" media="all"/>
     34<link rel="stylesheet" id="wp4-styles-css" href="https://s.w.org/style/wp4.css?ver=1645139115" media="all"/>
    3535<style id="wp-emoji-styles-inline-css">
    3636    img.wp-smiley, img.emoji {
     
    258258.wp-container-core-navigation-is-layout-2.wp-container-core-navigation-is-layout-2{flex-direction:column;align-items:flex-start;}
    259259</style>
    260 <link rel="stylesheet" id="wporg-global-fonts-css" href="https://s.w.org/wp-content/mu-plugins/pub-sync/global-fonts/style.css?ver=1700434948-d6228079937fbf30cfb38ae89bd881d5" media="all"/>
    261 <link rel="stylesheet" id="wporg-global-header-footer-css" href="https://s.w.org/wp-content/mu-plugins/pub-sync/blocks/global-header-footer/build/style.css?ver=1706749311-3b988c8838ef7d6789c20ca32d48bed3" media="all"/>
     260<link rel="stylesheet" id="wporg-global-fonts-css" href="https://s.w.org/wp-content/mu-plugins/pub-sync/global-fonts/style.css?ver=1700434847-d6228079937fbf30cfb38ae89bd881d5" media="all"/>
     261<link rel="stylesheet" id="wporg-global-header-footer-css" href="https://s.w.org/wp-content/mu-plugins/pub-sync/blocks/global-header-footer/build/style.css?ver=1706749244-3b988c8838ef7d6789c20ca32d48bed3" media="all"/>
    262262<link rel="stylesheet" id="jetpack_css-css" href="https://s.w.org/wp-content/plugins/jetpack/css/jetpack.css?ver=12.9.3-af06e42ba998be5b755ccfa57836b1a5" media="all"/>
    263263<script id="wp-load-polyfill-importmap">//<![CDATA[
Note: See TracChangeset for help on using the changeset viewer.