Making WordPress.org


Ignore:
Timestamp:
12/11/2019 07:47:00 AM (5 years ago)
Author:
tellyworth
Message:

Main theme: fix headings hierarchy in About section

This is the markup following r9327, to fix the headings hierarchy for better SEO and accessibility.

Props dufresnesteven, afercia.
Fixes #4120.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php

    r9250 r9328  
    7878    $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    7979
    80     wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), [ 'dashicons', 'open-sans' ], '20191102b' );
     80    wp_enqueue_style( 'wporg-style', get_theme_file_uri( '/css/style.css' ), [ 'dashicons', 'open-sans' ], '20191211' );
    8181    wp_style_add_data( 'wporg-style', 'rtl', 'replace' );
    8282
     
    8989    if ( is_page( 'stats' ) ) {
    9090        wp_enqueue_script( 'google-charts', 'https://www.gstatic.com/charts/loader.js', [], null, true );
    91         wp_enqueue_script( 'wporg-page-stats', get_theme_file_uri( '/js/page-stats.js' ), [ 'jquery', 'google-charts' ], 2, true );
     91        wp_enqueue_script( 'wporg-page-stats', get_theme_file_uri( '/js/page-stats.js' ), [ 'jquery', 'google-charts' ], 3, true );
    9292        wp_localize_script( 'wporg-page-stats', 'wporgPageStats', [
    9393            'trunk'         => number_format( WP_CORE_STABLE_BRANCH + 0.1, 1 ), /* trunk */
    94             'wpVersions'    => __( 'WordPress Version', 'wporg' ),
    95             'phpVersions'   => __( 'PHP Versions', 'wporg' ),
    96             'mysqlVersions' => __( 'MySQL Version', 'wporg' ),
    97             'locales'       => __( 'Locales', 'wporg' ),
    9894        ] );
    9995    }
Note: See TracChangeset for help on using the changeset viewer.