Version Description
Download this release
Release Info
Developer | ultimatemember |
Plugin | ![]() |
Version | 1.0.84 |
Comparing to | |
See all releases |
Code changes from version 1.0.83 to 1.0.84
- admin/assets/css/um-admin-columns.css +6 -1
- admin/assets/css/um-admin-dashboard.css +5 -0
- admin/assets/css/um-admin-form.css +5 -0
- admin/core/um-admin-dashboard.php +1 -1
- core/um-actions-global.php +1 -1
- core/um-files.php +2 -2
- core/um-shortcodes.php +24 -0
- index.php +1 -1
- readme.txt +7 -1
admin/assets/css/um-admin-columns.css
CHANGED
@@ -64,4 +64,9 @@
|
|
64 |
|
65 |
.um-adm-ico.inactive {color: #C74A4A}
|
66 |
|
67 |
-
.um-adm-ico.pointer {cursor: pointer}
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
.um-adm-ico.inactive {color: #C74A4A}
|
66 |
|
67 |
+
.um-adm-ico.pointer {cursor: pointer}
|
68 |
+
|
69 |
+
.um-admin-icontext i {
|
70 |
+
font-size: 18px;
|
71 |
+
margin: 0 5px 0 0;
|
72 |
+
}
|
admin/assets/css/um-admin-dashboard.css
CHANGED
@@ -35,6 +35,11 @@
|
|
35 |
|
36 |
/* Dashboard widgets */
|
37 |
|
|
|
|
|
|
|
|
|
|
|
38 |
.um-metabox-holder p.sub {
|
39 |
padding: 0 4px 2px 4px;
|
40 |
margin: 0 0 8px 0;
|
35 |
|
36 |
/* Dashboard widgets */
|
37 |
|
38 |
+
.p_seperate {
|
39 |
+
margin-top: 12px;
|
40 |
+
border-top: 1px solid #ddd;
|
41 |
+
}
|
42 |
+
|
43 |
.um-metabox-holder p.sub {
|
44 |
padding: 0 4px 2px 4px;
|
45 |
margin: 0 0 8px 0;
|
admin/assets/css/um-admin-form.css
CHANGED
@@ -7,6 +7,11 @@
|
|
7 |
-moz-osx-font-smoothing: grayscale !important;
|
8 |
}
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
/*
|
11 |
- Metabox layout
|
12 |
*/
|
7 |
-moz-osx-font-smoothing: grayscale !important;
|
8 |
}
|
9 |
|
10 |
+
.um-admin-metabox h6 {
|
11 |
+
font-size: 14px;
|
12 |
+
margin: 12px 0 0 0;
|
13 |
+
}
|
14 |
+
|
15 |
/*
|
16 |
- Metabox layout
|
17 |
*/
|
admin/core/um-admin-dashboard.php
CHANGED
@@ -44,7 +44,7 @@ class UM_Admin_Dashboard {
|
|
44 |
|
45 |
do_action('um_extend_admin_menu');
|
46 |
|
47 |
-
add_submenu_page( $this->slug, __('Extensions', $this->slug), '<span style="color: #
|
48 |
|
49 |
}
|
50 |
|
44 |
|
45 |
do_action('um_extend_admin_menu');
|
46 |
|
47 |
+
add_submenu_page( $this->slug, __('Extensions', $this->slug), '<span style="color: #3dc3e5">' .__('Extensions', $this->slug) . '</span>', 'manage_options', $this->slug . '-extensions', array(&$this, 'admin_page') );
|
48 |
|
49 |
}
|
50 |
|
core/um-actions-global.php
CHANGED
@@ -46,7 +46,7 @@
|
|
46 |
/***
|
47 |
*** @empty the honeypot value
|
48 |
***/
|
49 |
-
add_action('wp_footer', 'um_add_form_honeypot_js');
|
50 |
function um_add_form_honeypot_js() { global $ultimatemember; ?>
|
51 |
|
52 |
<script type="text/javascript">jQuery( '#<?php echo $ultimatemember->honeypot; ?>' ).val( '' );</script>
|
46 |
/***
|
47 |
*** @empty the honeypot value
|
48 |
***/
|
49 |
+
add_action('wp_footer', 'um_add_form_honeypot_js', 99999999999999999 );
|
50 |
function um_add_form_honeypot_js() { global $ultimatemember; ?>
|
51 |
|
52 |
<script type="text/javascript">jQuery( '#<?php echo $ultimatemember->honeypot; ?>' ).val( '' );</script>
|
core/um-files.php
CHANGED
@@ -314,7 +314,7 @@ class UM_Files {
|
|
314 |
if ( $fileinfo['invalid_image'] == true ) {
|
315 |
$error = sprintf(__('Your image is invalid or too large!','ultimatemember') );
|
316 |
} elseif ( !$this->in_array( $fileinfo['extension'], $data['allowed_types'] ) ) {
|
317 |
-
$error = $data['extension_error'];
|
318 |
} elseif ( isset($data['min_size']) && ( $fileinfo['size'] < $data['min_size'] ) ) {
|
319 |
$error = $data['min_size_error'];
|
320 |
} elseif ( isset($data['min_width']) && ( $fileinfo['width'] < $data['min_width'] ) ) {
|
@@ -337,7 +337,7 @@ class UM_Files {
|
|
337 |
$data = $ultimatemember->fields->get_field($field);
|
338 |
|
339 |
if ( !$this->in_array( $extension, $data['allowed_types'] ) ) {
|
340 |
-
$error = $data['extension_error'];
|
341 |
} elseif ( isset($data['min_size']) && ( $fileinfo['size'] < $data['min_size'] ) ) {
|
342 |
$error = $data['min_size_error'];
|
343 |
}
|
314 |
if ( $fileinfo['invalid_image'] == true ) {
|
315 |
$error = sprintf(__('Your image is invalid or too large!','ultimatemember') );
|
316 |
} elseif ( !$this->in_array( $fileinfo['extension'], $data['allowed_types'] ) ) {
|
317 |
+
$error = ( isset( $data['extension_error'] ) && !empty( $data['extension_error'] ) ) ? $data['extension_error'] : 'not allowed';
|
318 |
} elseif ( isset($data['min_size']) && ( $fileinfo['size'] < $data['min_size'] ) ) {
|
319 |
$error = $data['min_size_error'];
|
320 |
} elseif ( isset($data['min_width']) && ( $fileinfo['width'] < $data['min_width'] ) ) {
|
337 |
$data = $ultimatemember->fields->get_field($field);
|
338 |
|
339 |
if ( !$this->in_array( $extension, $data['allowed_types'] ) ) {
|
340 |
+
$error = ( isset( $data['extension_error'] ) && !empty( $data['extension_error'] ) ) ? $data['extension_error'] : 'not allowed';
|
341 |
} elseif ( isset($data['min_size']) && ( $fileinfo['size'] < $data['min_size'] ) ) {
|
342 |
$error = $data['min_size_error'];
|
343 |
}
|
core/um-shortcodes.php
CHANGED
@@ -10,6 +10,30 @@ class UM_Shortcodes {
|
|
10 |
|
11 |
add_shortcode('ultimatemember', array(&$this, 'ultimatemember'), 1);
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
|
15 |
/***
|
10 |
|
11 |
add_shortcode('ultimatemember', array(&$this, 'ultimatemember'), 1);
|
12 |
|
13 |
+
add_filter( 'body_class', array(&$this, 'body_class'), 0 );
|
14 |
+
|
15 |
+
}
|
16 |
+
|
17 |
+
/***
|
18 |
+
*** @extend body classes
|
19 |
+
***/
|
20 |
+
function body_class( $classes ) {
|
21 |
+
global $ultimatemember;
|
22 |
+
$array = $ultimatemember->permalinks->core;
|
23 |
+
|
24 |
+
foreach( $array as $slug => $info ) {
|
25 |
+
if ( um_is_core_page( $slug ) ) {
|
26 |
+
$classes[] = 'um-page-' . $slug;
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
if ( is_user_logged_in() ) {
|
31 |
+
$classes[] = 'um-page-loggedin';
|
32 |
+
} else {
|
33 |
+
$classes[] = 'um-page-loggedout';
|
34 |
+
}
|
35 |
+
|
36 |
+
return $classes;
|
37 |
}
|
38 |
|
39 |
/***
|
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
-
Version: 1.0.
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
3 |
Plugin Name: Ultimate Member
|
4 |
Plugin URI: http://ultimatemember.com/
|
5 |
Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress
|
6 |
+
Version: 1.0.84
|
7 |
Author: Ultimate Member
|
8 |
Author URI: http://ultimatemember.com/
|
9 |
*/
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: access control, author, authors, author profile, comments, community, comm
|
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1.1
|
9 |
|
10 |
-
Stable Tag: 1.0.
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
@@ -202,6 +202,12 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
|
|
202 |
|
203 |
== Changelog ==
|
204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
= 1.0.83: March 12, 2015 =
|
206 |
|
207 |
* New: added a logout template If user is already logged in (customizable)
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 4.1.1
|
9 |
|
10 |
+
Stable Tag: 1.0.84
|
11 |
|
12 |
License: GNU Version 2 or Any Later Version
|
13 |
|
202 |
|
203 |
== Changelog ==
|
204 |
|
205 |
+
= 1.0.84: March 13, 2015 =
|
206 |
+
|
207 |
+
* New: adds automatic body class to UM core pages automatically
|
208 |
+
* Fixed: important jQuery issue
|
209 |
+
* Fixed: upload security issue - extension error was empty
|
210 |
+
|
211 |
= 1.0.83: March 12, 2015 =
|
212 |
|
213 |
* New: added a logout template If user is already logged in (customizable)
|