mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 15:13:55 +09:00
- fixed: PHP notices and warnings
- fixed: security vulnerability with User Account page and password field
This commit is contained in:
@@ -146,7 +146,7 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
|
||||
*/
|
||||
function forumwp_fix() {
|
||||
if ( function_exists( 'FMWP' ) ) {
|
||||
remove_filter( 'single_template', array( FMWP()->shortcodes(), 'cpt_template' ) );
|
||||
remove_filter( 'single_template', array( FMWP()->frontend()->shortcodes(), 'cpt_template' ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3741,11 +3741,14 @@ if ( ! class_exists( 'um\core\Fields' ) ) {
|
||||
$sort_col = array();
|
||||
foreach ( $arr as $key => $row ) {
|
||||
if ( $key == 'form_id' ) {
|
||||
unset( $arr['form_id'] );
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( isset( $row[ $col ] ) ) {
|
||||
$sort_col[ $key ] = $row[ $col ];
|
||||
} else {
|
||||
unset( $arr[ $key ] );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -276,6 +276,10 @@ function um_submit_account_details( $args ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( $k == 'single_user_password' ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$changes[ $k ] = $v;
|
||||
}
|
||||
|
||||
|
||||
@@ -441,7 +441,20 @@ function um_get_custom_field_array( $array, $fields ) {
|
||||
|
||||
if ( ! empty( $array['conditions'] ) ) {
|
||||
foreach ( $array['conditions'] as $key => $value ) {
|
||||
if ( ! isset( $value[1] ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( empty( $fields[ $value[1] ] ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( empty( $fields[ $value[1] ]['metakey'] ) ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$condition_metakey = $fields[ $value[1] ]['metakey'];
|
||||
|
||||
if ( isset( $_POST[ $condition_metakey ] ) ) {
|
||||
$cond_value = ( $fields[ $value[1] ]['type'] == 'radio' ) ? $_POST[ $condition_metakey ][0] : $_POST[ $condition_metakey ];
|
||||
list( $visibility, $parent_key, $op, $parent_value ) = $value;
|
||||
|
||||
Reference in New Issue
Block a user