Version 1.0.41

This commit is contained in:
ultimatemember
2015-02-05 02:18:20 +02:00
parent f90388b4d6
commit 4c04769219
8 changed files with 121 additions and 37 deletions
+1 -1
View File
@@ -901,7 +901,7 @@ class UM_Builtin {
$all[$k]['title'] = stripslashes( $arr['title'] );
}
if ( $exclude_types && in_array( $arr['type'], $exclude_types ) ) {
if ( $exclude_types && isset( $arr['type'] ) && in_array( $arr['type'], $exclude_types ) ) {
unset( $all[$k] );
}
if ( isset( $arr['account_only'] ) || isset( $arr['private_use'] ) ) {
+7 -5
View File
@@ -1130,12 +1130,12 @@ class UM_Fields {
/* Gap/Space */
case 'spacing':
$output .= '<div class="um-field-spacing" style="height: '.$spacing.'"></div>';
$output .= '<div class="um-field um-field-spacing' . $classes . '"' . $conditional . ' style="height: '.$spacing.'"></div>';
break;
/* A line divider */
case 'divider':
$output .= '<div class="um-field-divider" style="border-bottom: '.$borderwidth.'px '.$borderstyle.' '.$bordercolor.'">';
$output .= '<div class="um-field um-field-divider' . $classes . '"' . $conditional . ' style="border-bottom: '.$borderwidth.'px '.$borderstyle.' '.$bordercolor.'">';
if ( $divider_text ) {
$output .= '<div class="um-field-divider-text"><span>' . $divider_text . '</span></div>';
}
@@ -1597,7 +1597,9 @@ class UM_Fields {
function array_sort_by_column($arr, $col, $dir = SORT_ASC) {
$sort_col = array();
foreach ($arr as $key=> $row) {
$sort_col[$key] = $row[$col];
if ( isset( $row[$col] ) ) {
$sort_col[$key] = $row[$col];
}
}
array_multisort($sort_col, $dir, $arr);
@@ -1856,12 +1858,12 @@ class UM_Fields {
/* Gap/Space */
case 'spacing':
$output .= '<div class="um-field-spacing" style="height: '.$spacing.'"></div>';
$output .= '<div class="um-field um-field-spacing' . $classes . '"' . $conditional . ' style="height: '.$spacing.'"></div>';
break;
/* A line divider */
case 'divider':
$output .= '<div class="um-field-divider" style="border-bottom: '.$borderwidth.'px '.$borderstyle.' '.$bordercolor.'">';
$output .= '<div class="um-field um-field-divider' . $classes . '"' . $conditional . ' style="border-bottom: '.$borderwidth.'px '.$borderstyle.' '.$bordercolor.'">';
if ( $divider_text ) {
$output .= '<div class="um-field-divider-text"><span>' . $divider_text . '</span></div>';
}
+12
View File
@@ -3,7 +3,19 @@
class UM_Query {
function __construct() {
add_action('wp_loaded', array(&$this, 'get_post_types'), 100 );
}
/***
*** @get all post types
***/
function get_post_types() {
$array = get_post_types();
foreach( $array as $k => $v ) {
$this->get_post_types[] = $k;
}
}
/***