← All changes
|
admin/advanced-settings/includes/forms/save-last-profile-update.php
+2
-0
3.9.6
→
4.0.3
View file →
| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | +// Exit if accessed directly | |
| 3 | +if ( ! defined( 'ABSPATH' ) ) exit; | |
| 2 | 4 | |
| 3 | 5 | add_action( 'wppb_edit_profile_success', 'wppb_toolbox_save_last_update_date', 20, 3 ); |
| 4 | 6 | function wppb_toolbox_save_last_update_date( $http_request, $form_name, $user_id ) { |
| 5 | 7 | if ( empty($user_id) || !function_exists( 'wp_timezone' ) ) return; |