Plugin Directory

Changeset 1654015


Ignore:
Timestamp:
05/10/2017 05:04:26 AM (9 years ago)
Author:
Cimmo
Message:

Fixed https warning when switching from http and a registration logo has been uploded previously (thanks to Pascal)

Location:
cimy-user-extra-fields/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cimy-user-extra-fields/trunk/README_OFFICIAL.txt

    r1653979 r1654015  
    632632
    633633CHANGELOG:
     634v2.7.3 - /05/2017
     635- Fixed https warning when switching from http and a registration logo has been uploded previously (thanks to Pascal)
     636
    634637v2.7.2 - 10/05/2017
    635638- Fixed registration rules were applied on profile update when certain plug-ins are installed, like bbpress (thanks to Vane R.)
  • cimy-user-extra-fields/trunk/cimy_uef_register.php

    r1354953 r1654015  
    13681368    if (!empty($options["registration-logo"])) {
    13691369        global $cuef_upload_webpath;
    1370         list($logo_width, $logo_height, $logo_type, $logo_attr) = getimagesize($options["registration-logo"]);
     1370        $bg_url = $cuef_upload_webpath.basename($options["registration-logo"]);
     1371        list($logo_width, $logo_height, $logo_type, $logo_attr) = getimagesize($bg_url);
    13711372        ?>
    13721373        <style type="text/css">
    13731374        #login h1:first-child a:first-child {
    1374             background: url(<?php echo esc_url($cuef_upload_webpath.basename($options["registration-logo"])); ?>) no-repeat top center;
     1375            background: url(<?php echo esc_url($bg_url); ?>) no-repeat top center;
    13751376            background-position: center top;
    13761377            background-size: <?php echo $logo_width; ?>px <?php echo $logo_height; ?>px;
Note: See TracChangeset for help on using the changeset viewer.