diff --git a/WordPress/Docs/WP/EnqueuedResourcesStandard.xml b/WordPress/Docs/WP/EnqueuedResourcesStandard.xml index e4a14f6186..a6032934be 100644 --- a/WordPress/Docs/WP/EnqueuedResourcesStandard.xml +++ b/WordPress/Docs/WP/EnqueuedResourcesStandard.xml @@ -9,7 +9,7 @@ wp_enqueue_script( 'someScript-js', - 'http://someurl/somefile.js', + $path_to_file, array( 'jquery' ), '1.0.0', true @@ -18,8 +18,10 @@ src="http://someurl/somefile.js"> - +printf( + '', + esc_attr( $path_to_file ) +); ]]> @@ -33,7 +35,7 @@ wp_enqueue_style( 'style-name', - 'https://example.com/somefile.css', + $path_to_file, array(), '1.0.0' ); @@ -41,8 +43,10 @@ href="http://someurl/somefile.css" /> +printf( + '', + esc_attr( $path_to_file ) +); ]]>