Making WordPress.org


Ignore:
Timestamp:
06/04/2021 07:18:50 PM (3 years ago)
Author:
ryelle
Message:

Pattern Directory: Sync with git WordPress/pattern-directory@53b4aed1b62b05f8c61798ddc55ea0e02e1c765d

File:
1 edited

Legend:

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

    r11003 r11008  
    6565        wp_add_inline_script(
    6666            'wporg-pattern-script',
    67             sprintf( 'var wporgAssetUrl = "%s";', esc_url( get_stylesheet_directory_uri() ) ),
     67            sprintf(
     68                'var wporgAssetUrl = "%s", wporgSiteUrl = "%s";',
     69                esc_url( get_stylesheet_directory_uri() ),
     70                esc_url( home_url() )
     71            ),
    6872            'before'
    6973        );
Note: See TracChangeset for help on using the changeset viewer.