WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/16/2019 04:26:48 AM (14 months ago)
Author:
pento
Message:

Users: Add extra checking to wp_new_user_notification().

Prevent a notification from being sent when an unrecognised value is passed in the $notify parameter.

Props cthreelabs, 360zen.
Fixes #44293.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user.php

    r44573 r44611  
    11701170                true,
    11711171            ),
     1172            array(
     1173                'THIS IS NOT A SUPPORTED NOTIFICATION TYPE',
     1174                false,
     1175                false,
     1176            ),
    11721177        );
    11731178    }
Note: See TracChangeset for help on using the changeset viewer.