Changeset 23519 for trunk/wp-includes/functions.php
- Timestamp:
- 02/28/2013 06:08:53 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r23504 r23519 1169 1169 * @since 2.0.4 1170 1170 * 1171 * @param string $actionurl URL to add nonce action 1172 * @param string $action Optional. Nonce action name 1171 * @param string $actionurl URL to add nonce action. 1172 * @param string $action Optional. Nonce action name. 1173 * @param string $name Optional. Nonce name. 1173 1174 * @return string URL with nonce action added. 1174 1175 */ 1175 function wp_nonce_url( $actionurl, $action = -1 ) {1176 function wp_nonce_url( $actionurl, $action = -1, $name = '_wpnonce' ) { 1176 1177 $actionurl = str_replace( '&', '&', $actionurl ); 1177 return esc_url( add_query_arg( '_wpnonce', wp_create_nonce( $action ), $actionurl ) );1178 return esc_url( add_query_arg( $name, wp_create_nonce( $action ), $actionurl ) ); 1178 1179 } 1179 1180
Note: See TracChangeset
for help on using the changeset viewer.