WordPress.org

Making WordPress.org

Changeset 7678


Ignore:
Timestamp:
09/20/2018 06:32:43 AM (12 months ago)
Author:
dd32
Message:

Gutenberg Theme: Add JSX Parsing support to the handbook importer.

Fixes #3803

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg
Files:
2 edited

Legend:

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

    r7601 r7678  
    433433    wp_enqueue_style( 'gutenbergthemeblocks-style', get_template_directory_uri() . '/blocks.css');
    434434
    435     wp_enqueue_style( 'gutenbergtheme-prism', gutenbergtheme_fonts_url(), array(), null );
     435    wp_enqueue_style( 'gutenbergtheme-fonts', gutenbergtheme_fonts_url(), array(), null );
    436436
    437437    wp_enqueue_script( 'gutenbergtheme-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true );
    438438
    439     wp_enqueue_script( 'gutenbergtheme-prism', get_template_directory_uri() . '/js/prism.js', array(), null );
     439    wp_enqueue_script( 'gutenbergtheme-prism', get_template_directory_uri() . '/js/prism.js', array(), '1.15.0' );
    440440
    441441    wp_enqueue_script( 'gutenbergtheme-handbook', get_template_directory_uri() . '/js/handbook.js', array( 'jquery' ), null );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/inc/docs-importer.php

    r7668 r7678  
    293293        $html = str_replace( 'class="php"', 'class="language-php"', $html );
    294294        $html = str_replace( 'class="js"', 'class="language-javascript"', $html );
     295        $html = str_replace( 'class="jsx"', 'class="language-jsx"', $html );
    295296        $html = str_replace( 'class="css"', 'class="language-css"', $html );
    296297
Note: See TracChangeset for help on using the changeset viewer.