projects/plugins/jetpack/_inc/lib/class.jetpack-password-checker.php 1 location
|
@@ 318-323 (lines=6) @@
|
| 315 |
|
$list_callback = $test_data['list_callback']; |
| 316 |
|
$compare_callback = $test_data['compare_callback']; |
| 317 |
|
|
| 318 |
|
if ( |
| 319 |
|
! is_callable( array( $this, $list_callback ) ) |
| 320 |
|
|| ! is_callable( array( $this, $compare_callback ) ) |
| 321 |
|
) { |
| 322 |
|
return false; |
| 323 |
|
} |
| 324 |
|
|
| 325 |
|
$list = call_user_func( array( $this, $list_callback ) ); |
| 326 |
|
if ( empty( $list ) ) { |
projects/packages/password-checker/src/class-password-checker.php 1 location
|
@@ 299-304 (lines=6) @@
|
| 296 |
|
* @return bool does the test pass? |
| 297 |
|
*/ |
| 298 |
|
protected function test_compare_to_list( $password, $test_data ) { |
| 299 |
|
if ( |
| 300 |
|
! is_callable( array( $this, $test_data['list_callback'] ) ) |
| 301 |
|
|| ! is_callable( array( $this, $test_data['compare_callback'] ) ) |
| 302 |
|
) { |
| 303 |
|
return false; |
| 304 |
|
} |
| 305 |
|
|
| 306 |
|
return call_user_func( |
| 307 |
|
array( |