mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 22:23:37 +09:00
Version 1.0.48
This commit is contained in:
@@ -122,7 +122,10 @@ class UM_Admin_Metabox {
|
||||
***/
|
||||
function ui_on_off( $id, $default=0, $is_conditional=false, $cond1='', $cond1_show='', $cond1_hide='', $yes='', $no='' ) {
|
||||
|
||||
$meta = get_post_meta( get_the_ID(), $id, true );
|
||||
$meta = (string)get_post_meta( get_the_ID(), $id, true );
|
||||
if ( $meta === '0' && $default > 0 ) {
|
||||
$default = $meta;
|
||||
}
|
||||
|
||||
$yes = ( !empty( $yes ) ) ? $yes : __('Yes');
|
||||
$no = ( !empty( $no ) ) ? $no : __('No');
|
||||
|
||||
Reference in New Issue
Block a user