Changeset 46704 for branches/5.3/src/wp-includes/script-loader.php
- Timestamp:
- 11/11/2019 03:11:51 PM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
-
branches/5.3/src/wp-includes/script-loader.php
r46666 r46704 652 652 $scripts->add_inline_script( 653 653 'wp-api-fetch', 654 sprintf( 655 'wp.apiFetch.use( wp.apiFetch.createRootURLMiddleware( "%s" ) );', 656 esc_url_raw( get_rest_url() ) 657 ), 658 'after' 659 ); 660 $scripts->add_inline_script( 661 'wp-api-fetch', 654 662 implode( 655 663 "\n", … … 669 677 'after' 670 678 ); 671 $scripts->add_inline_script(672 'wp-api-fetch',673 sprintf(674 'wp.apiFetch.use( wp.apiFetch.createRootURLMiddleware( "%s" ) );',675 esc_url_raw( get_rest_url() )676 ),677 'after'678 );679 680 679 $scripts->add_inline_script( 681 680 'wp-data',
Note: See TracChangeset
for help on using the changeset viewer.