flyntwp /
flynt
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Flynt\Components\FormPasswordProtection; |
||
| 4 | |||
| 5 | use Timber\Timber; |
||
| 6 | use Timber\Post; |
||
| 7 | |||
| 8 | add_filter('the_password_form', function ($output) { |
||
|
0 ignored issues
–
show
|
|||
| 9 | $context = Timber::get_context(); |
||
| 10 | $context['form'] = [ |
||
| 11 | 'url' => site_url('/wp-login.php?action=postpass', 'login_post') |
||
| 12 | ]; |
||
| 13 | |||
| 14 | return Timber::fetch('index.twig', $context); |
||
| 15 | }); |
||
| 16 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.