File tree 2 files changed +0
-6
lines changed
tests/phpunit/unit/includes
2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ parameters:
27
27
-
28
28
message: '/\(int\) does not accept int\|WP_Error\.$/'
29
29
path: tests/phpunit/integration/tests
30
- -
31
- message: '/^Parameter #1 \$post of function set_post_thumbnail expects int\|WP_Post, int\|WP_Error given\.$/'
32
- path: tests/phpunit/integration/tests
33
30
-
34
31
message: '/^Call to deprecated method _get_first_available_transport\(\)/'
35
32
path: includes/REST_API/Hotlinking_Controller.php
Original file line number Diff line number Diff line change @@ -41,9 +41,6 @@ trait ScriptHash {
41
41
*/
42
42
public function generate_script_hash ( string $ script ): ?string {
43
43
$ sha384 = hash ( 'sha384 ' , $ script , true );
44
- if ( ! $ sha384 ) {
45
- return null ;
46
- }
47
44
$ hash = str_replace (
48
45
[ '+ ' , '/ ' , '= ' ],
49
46
[ '- ' , '_ ' , '. ' ],
You can’t perform that action at this time.
0 commit comments