mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
@@ -585,7 +585,7 @@ if ( ! class_exists( 'Admin_Forms' ) ) {
|
||||
$name_attr = ' name="' . $name . '" ';
|
||||
|
||||
$default = isset( $field_data['default'] ) ? $field_data['default'] : '';
|
||||
$value = ( '' !== $field_data['value'] ) ? $field_data['value'] : $default;
|
||||
$value = ( isset( $field_data['value'] ) && '' !== $field_data['value'] ) ? $field_data['value'] : $default;
|
||||
/*$value = isset( $field_data['value'] ) ? $field_data['value'] : $default;
|
||||
$value = ! empty( $field_data['value'] ) ? $field_data['value'] : 0;
|
||||
*/
|
||||
|
||||
@@ -72,8 +72,6 @@ if ( ! class_exists( 'Permalinks' ) ) {
|
||||
*** @Get current URL anywhere
|
||||
***/
|
||||
function get_current_url( $no_query_params = false ) {
|
||||
global $post;
|
||||
|
||||
$um_get_option = get_option('um_options');
|
||||
|
||||
$server_name_method = isset( $um_get_option['current_url_method'] ) ? $um_get_option['current_url_method'] : 'SERVER_NAME';
|
||||
@@ -94,7 +92,7 @@ if ( ! class_exists( 'Permalinks' ) ) {
|
||||
}
|
||||
} else {*/
|
||||
|
||||
$network_permalink_structure = um_get_option("network_permalink_structure");
|
||||
$network_permalink_structure = UM()->um_get_option("network_permalink_structure");
|
||||
|
||||
if( $network_permalink_structure == "sub-directory" ){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user