Skip to content

Commit

Permalink
Correct invalid format specifier at end of sprintf
Browse files Browse the repository at this point in the history
Throws an error without it
  • Loading branch information
kadamwhite authored Aug 20, 2024
1 parent 0f52907 commit 39faf13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _register_or_update_script( string $handle, string $asset_uri, array $d
*/
function register_asset( ?string $manifest_path, string $target_asset, array $options = [] ): array {
if ( empty( $manifest_path ) ) {
trigger_error( sprintf( 'No manifest specified when loading %', esc_attr( $target_asset ) ), E_USER_NOTICE );
trigger_error( sprintf( 'No manifest specified when loading %s', esc_attr( $target_asset ) ), E_USER_NOTICE );
return [];
}

Expand Down

0 comments on commit 39faf13

Please sign in to comment.