Skip to content

Commit 7ec8226

Browse files
mock pluigins_url a little better
1 parent 3e34f84 commit 7ec8226

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/benchmarks/mocks.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,13 @@ function register_post_type()
161161
{
162162
}
163163

164-
function wp_register_script($handle, $src, $deps = [], $in_footer = true)
164+
function wp_register_script($handle, $src, $deps = [], $version = '', $in_footer = true)
165165
{
166166
}
167167

168168
function plugins_url($path, $plugin = '')
169169
{
170+
return $path;
170171
}
171172

172173

0 commit comments

Comments
 (0)