| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | * This template can be overridden by copying it to yourtheme/learnpress/profile/content.php. |
| 6 | 6 | * |
| 7 | 7 | * @author ThimPress |
| 8 | 8 | * @package Learnpress/Templates |
| 9 | - * @version 4.0.1 | |
| 9 | + * @version 4.0.2 | |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | defined( 'ABSPATH' ) || exit(); |
| 13 | 13 | |
| @@ -19,9 +19,8 @@ | ||
| 19 | 19 | } |
| 20 | 20 | ?> |
| 21 | 21 | |
| 22 | 22 | <article id="profile-content" class="lp-profile-content"> |
| 23 | - <?php learn_press_print_messages( true ); ?> | |
| 24 | 23 | <div id="profile-content-<?php echo esc_attr( $tab_key ); ?>"> |
| 25 | 24 | <?php do_action( 'learn-press/before-profile-content', $tab_key, $profile_tab, $user ); ?> |
| 26 | 25 | |
| 27 | 26 | <?php |
| @@ -26,9 +25,16 @@ | ||
| 26 | 25 | |
| 27 | 26 | <?php |
| 28 | 27 | if ( empty( $profile_tab->get( 'sections' ) ) ) { |
| 29 | 28 | if ( $profile_tab->get( 'callback' ) && is_callable( $profile_tab->get( 'callback' ) ) ) { |
| 30 | - echo call_user_func_array( $profile_tab->get( 'callback' ), array( $tab_key, $profile_tab, $user ) ); | |
| 29 | + echo call_user_func_array( | |
| 30 | + $profile_tab->get( 'callback' ), | |
| 31 | + [ | |
| 32 | + $tab_key, | |
| 33 | + $profile_tab, | |
| 34 | + $user, | |
| 35 | + ] | |
| 36 | + ); | |
| 31 | 37 | } else { |
| 32 | 38 | do_action( 'learn-press/profile-content', $tab_key, $profile_tab, $user ); |
| 33 | 39 | } |
| 34 | 40 | } else { |