Making WordPress.org

Ticket #5144: 5144.diff

File 5144.diff, 4.1 KB (added by audrasjb, 6 years ago)

Declare HTML5 scripts and styles support for better compliance with HTML5 standards

  • global.wordpress.org/public_html/wp-content/themes/rosetta/functions.php

    diff --git a/global.wordpress.org/public_html/wp-content/themes/rosetta/functions.php b/global.wordpress.org/public_html/wp-content/themes/rosetta/functions.php
    index ee4125a34..52d2f20b0 100644
    a b function rosetta_after_setup_theme() { 
    1414        add_theme_support( 'automatic-feed-links' );
    1515
    1616        add_theme_support( 'html5', array(
    17                 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
     17                'search-form',
     18                'comment-form',
     19                'comment-list',
     20                'gallery',
     21                'caption',
     22                'style',
     23                'script',
    1824        ) );
    1925
    2026        add_theme_support( 'custom-header', array(
  • wordcamp.org/public_html/wp-content/themes/campsite-2017/functions.php

    diff --git a/wordcamp.org/public_html/wp-content/themes/campsite-2017/functions.php b/wordcamp.org/public_html/wp-content/themes/campsite-2017/functions.php
    index 0e185492a..cdc9a6fb5 100644
    a b function setup_theme() { 
    3030
    3131        add_theme_support(
    3232                'html5',
    33                 array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' )
     33                array(
     34                        'search-form',
     35                        'comment-form',
     36                        'comment-list',
     37                        'gallery',
     38                        'caption',
     39                        'style',
     40                        'script',
     41                )
    3442        );
    3543
    3644        add_theme_support(
  • wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php b/wordpress.org/public_html/wp-content/themes/pub/gutenberg/functions.php
    index 9674c4f01..6c540febd 100644
    a b if ( ! function_exists( 'gutenbergtheme_setup' ) ) : 
    801801                        'comment-list',
    802802                        'gallery',
    803803                        'caption',
     804                        'style',
     805                        'script',
    804806                ) );
    805807
    806808                add_theme_support( 'align-wide' );
  • wordpress.org/public_html/wp-content/themes/pub/wporg-apps/functions.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-apps/functions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-apps/functions.php
    index fa25807f3..fe62ce4c2 100644
    a b function wpmobileapps_setup() { 
    5555                'search-form',
    5656                'comment-form',
    5757                'gallery',
     58                'style',
     59                'script',
    5860        ) );
    5961
    6062        // Enable support for title tag.
  • wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
    index d432f77f5..1605a280c 100644
    a b function setup() { 
    3737                'comment-list',
    3838                'gallery',
    3939                'caption',
     40                'style',
     41                'script',
    4042        ) );
    4143
    4244        add_theme_support( 'wp4-styles' );
  • wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
    index 258dd3114..5e7efcdf8 100644
    a b function wporg_themes_setup() { 
    1919        load_theme_textdomain( 'wporg-themes' );
    2020
    2121        add_theme_support( 'html5', array(
    22                 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'
     22                'search-form',
     23                'comment-form',
     24                'comment-list',
     25                'gallery',
     26                'caption',
     27                'style',
     28                'script',
    2329        ) );
    2430
    2531        // No need for canonical lookups
  • wordpress.org/public_html/wp-content/themes/pub/wporg/functions.php

    diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg/functions.php b/wordpress.org/public_html/wp-content/themes/pub/wporg/functions.php
    index 29346bb2e..b62366192 100644
    a b function setup() { 
    4949                'comment-list',
    5050                'gallery',
    5151                'caption',
     52                'style',
     53                'script',
    5254        ) );
    5355
    5456        // Set up the WordPress core custom background feature.