mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- added Photos extension;
This commit is contained in:
@@ -57,7 +57,7 @@ if ( ! class_exists( 'um\Dependencies' ) ) {
|
||||
'woocommerce' => '2.0.1',
|
||||
'restrict-content' => '2.0',
|
||||
'beaver-builder' => '2.0',
|
||||
'gdpr' => '1.0.0',
|
||||
'photos' => '1.1',
|
||||
);
|
||||
|
||||
|
||||
|
||||
@@ -658,9 +658,7 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
|
||||
} elseif ( ( um_user( $key ) || isset( $data['show_anyway'] ) ) && $this->viewing == true ) {
|
||||
|
||||
$value = um_filtered_value( $key, $data );
|
||||
|
||||
return $value;
|
||||
return um_filtered_value( $key, $data );
|
||||
|
||||
} elseif ( isset( UM()->user()->profile[ $key ] ) ) {
|
||||
|
||||
|
||||
@@ -146,8 +146,9 @@ add_filter( 'um_profile_field_filter_hook___um_last_login', 'um_profile_field_fi
|
||||
* @return mixed|string|void
|
||||
*/
|
||||
function um_profile_field_filter_hook__textarea( $value, $data ) {
|
||||
if ( isset( $data ) && isset( $data['html'] ) && $data['html'] == 1 )
|
||||
if ( isset( $data['html'] ) && $data['html'] == 1 ) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
$value = esc_textarea( $value );
|
||||
$value = preg_replace('$(https?://[a-z0-9_./?=&#-]+)(?![^<>]*>)$i', ' <a href="$1" target="_blank">$1</a> ', $value." ");
|
||||
|
||||
Reference in New Issue
Block a user