Version 1.0.35

This commit is contained in:
ultimatemember
2015-02-01 01:30:04 +02:00
parent df37a3164f
commit 539ebf10d7
41 changed files with 938 additions and 226 deletions
+15 -2
View File
@@ -15,9 +15,9 @@ class UM_Admin_Notices {
***/
function main_notices(){
$hide_notice = get_option('um_can_register_notice');
$hide_register_notice = get_option('um_can_register_notice');
if ( !get_option('users_can_register') && !$hide_notice ) {
if ( !get_option('users_can_register') && !$hide_register_notice ) {
echo '<div class="updated" style="border-color: #3ba1da;"><p>';
@@ -26,6 +26,19 @@ class UM_Admin_Notices {
echo '</p></div>';
}
$hide_exif_notice = get_option('um_show_exif_notice');
if ( !extension_loaded('exif') && !$hide_exif_notice ) {
echo '<div class="updated" style="border-color: #3ba1da;"><p>';
echo sprintf(__( 'Exif is not enabled on your server. Mobile photo uploads will not be rotated correctly until you enable the exif extension. <a href="%s">Hide this notice</a>', 'ultimatemember' ), add_query_arg('um_adm_action', 'um_show_exif_notice') );
echo '</p></div>';
}
}
/***