- fixed allow tracking option;

- fixed hide wp-admin bar;
This commit is contained in:
nikitozzzzzzz
2017-11-02 18:13:50 +02:00
parent c8278a7599
commit 90c2063dbf
4 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -1121,11 +1121,11 @@ if ( ! class_exists( 'Admin_Settings' ) ) {
)
),
array(
'id' => 'allow_tracking',
'id' => 'um_allow_tracking',
'type' => 'checkbox',
'label' => __( 'Allow Tracking','ultimate-member' ),
'value' => UM()->um_get_option( 'allow_tracking' ),
'default' => UM()->um_get_default( 'allow_tracking' ),
'value' => UM()->um_get_option( 'um_allow_tracking' ),
'default' => UM()->um_get_default( 'um_allow_tracking' ),
),
array(
'id' => 'uninstall_on_delete',
+9 -9
View File
@@ -56,17 +56,17 @@ if ( ! class_exists( 'Admin_Upgrade' ) ) {
function set_update_versions() {
$update_versions = array();
$handle = opendir( $this->packages_dir );
while ( false !== ( $filename = readdir( $handle ) ) ) {
if ( $handle ) {
while ( false !== ( $filename = readdir( $handle ) ) ) {
if ( $filename != '.' && $filename != '..' )
$update_versions[] = preg_replace( '/(.*?)\.php/i', '$1', $filename );
}
closedir( $handle );
if ( $filename != '.' && $filename != '..' )
$update_versions[] = preg_replace( '/(.*?)\.php/i', '$1', $filename );
usort( $update_versions, array( &$this, 'version_compare_sort' ) );
}
closedir( $handle );
usort( $update_versions, array( &$this, 'version_compare_sort' ) );
$this->update_versions = $update_versions;
$this->update_versions = $update_versions;
}
}
+1 -1
View File
@@ -120,7 +120,7 @@
return $content;
}
add_filter( 'show_admin_bar' , 'um_control_admin_bar');
add_filter( 'show_admin_bar' , 'um_control_admin_bar', 9999, 1 );
/***
*** @fix permission for admin bar
+1 -1
View File
@@ -1388,7 +1388,7 @@
function um_get_default_avatar_uri() {
$uri = um_get_option( 'default_avatar' );
$uri = !empty( $uri['url'] ) ? $uri['url'] : '';
if (!$uri) {
if ( ! $uri ) {
$uri = um_url . 'assets/img/default_avatar.jpg';
} else {