Making WordPress.org


Ignore:
Timestamp:
12/05/2022 03:28:15 AM (2 years ago)
Author:
dd32
Message:

Support Forums: Code Expand/Contract: Allow for Block Editor Code sections that may have multiple <code>s within a single <pre>.

See #6608.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-code-blocks-expand-contract/wporg-bbp-code-blocks-expand-contract.php

    r9837 r12296  
    2626
    2727function wp_head() {
    28     wp_enqueue_script( 'wporg-bbp-code-blocks-expand-contract', plugins_url( 'wporg-bbp-code-blocks-expand-contract.js', __FILE__ ), [ 'jquery' ], 1, true );
     28    wp_enqueue_script(
     29        'wporg-bbp-code-blocks-expand-contract',
     30        plugins_url( 'wporg-bbp-code-blocks-expand-contract.js', __FILE__ ),
     31        [ 'jquery' ],
     32        filemtime( __DIR__ . '/wporg-bbp-code-blocks-expand-contract.js' ),
     33        true
     34    );
    2935    wp_localize_script( 'wporg-bbp-code-blocks-expand-contract', 'bbpCodeBlocksExpandContract', [
    3036        'expand'   => __( 'Expand', 'wporg-forums' ),
    3137        'contract' => __( 'Contract', 'wporg-forums' ),
    3238    ] );
    33     wp_enqueue_style( 'wporg-bbp-code-blocks-expand-contract', plugins_url( 'wporg-bbp-code-blocks-expand-contract.css', __FILE__ ), [], 1 );
     39    wp_enqueue_style(
     40        'wporg-bbp-code-blocks-expand-contract',
     41        plugins_url( 'wporg-bbp-code-blocks-expand-contract.css', __FILE__ ),
     42        [],
     43        filemtime( __DIR__ . '/wporg-bbp-code-blocks-expand-contract.css' ),
     44    );
    3445}
    3546add_action( 'wp_head', __NAMESPACE__ . '\wp_head' );
Note: See TracChangeset for help on using the changeset viewer.