Docs: Improve documentation for WP_Customize_Nav_Menus::filter_nonces(), introduced in [36414].

See #27355, #35617. See #35986.


git-svn-id: https://develop.svn.wordpress.org/trunk@36835 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Drew Jaynes 2016-03-03 16:04:43 +00:00
parent c4ab9aeda8
commit 9c74b86880

View File

@ -72,13 +72,13 @@ final class WP_Customize_Nav_Menus {
}
/**
* Add nonce for customizing menus.
* Adds a nonce for customizing menus.
*
* @since 4.5.0
* @access public
*
* @param array $nonces Array of nonces.
* @return array $nonces Array of nonces.
* @param array $nonces Array of nonces.
* @return array $nonces Modified array of nonces.
*/
public function filter_nonces( $nonces ) {
$nonces['customize-menus'] = wp_create_nonce( 'customize-menus' );