- Timestamp:
- 09/25/2020 07:15:20 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r12703 r12735 2586 2586 * @param string $action The action to get the submit button for. Required. 2587 2587 */ 2588 function bp_nouveau_submit_button( $action ) {2588 function bp_nouveau_submit_button( $action, $object_id = 0 ) { 2589 2589 $submit_data = bp_nouveau_get_submit_button( $action ); 2590 2590 if ( empty( $submit_data['attributes'] ) || empty( $submit_data['nonce'] ) ) { … … 2620 2620 wp_nonce_field( $submit_data['nonce'] ); 2621 2621 } else { 2622 if ( $object_id ) { 2623 $submit_data['nonce_key'] .= '_' . (int) $object_id; 2624 } 2625 2622 2626 wp_nonce_field( $submit_data['nonce'], $submit_data['nonce_key'] ); 2623 2627 }
Note: See TracChangeset
for help on using the changeset viewer.