WordPress.org

Plugin Directory

Changeset 1806226


Ignore:
Timestamp:
01/20/18 13:12:31 (4 weeks ago)
Author:
hiddenpearls
Message:

1.1.2 - 2018-01-20

  • Compatibility: Compatible with WordPress 4.9.
  • Bugfix: logo sizing
  • Bugfix: Compatibility issue with PHP 5.3
Location:
loginpress/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • loginpress/trunk/css/style-login.php

    r1805750 r1806226  
    5656 * [if for login page background] 
    5757 * @since 1.1.0 
     58 * @version 1.1.2 
    5859 * @return string 
    5960 */ 
    60 if ( ! empty ( loginpress_get_option_key( 'setting_background', $loginpress_array ) ) ) { // Use Custom Background 
    61     $loginpress_background_img = loginpress_get_option_key( 'setting_background', $loginpress_array ); 
    62 } else if ( ! empty ( loginpress_get_option_key( 'gallery_background', $loginpress_array ) ) ) { // Background from Gallery Control. 
    63     if ( LOGINPRESS_DIR_URL . 'img/gallery/img-1.jpg' == loginpress_get_option_key( 'gallery_background', $loginpress_array ) ) { // If user select 1st image from gallery control then show template's default image. 
     61$loginpress_custom_background  = loginpress_get_option_key( 'setting_background', $loginpress_array ); 
     62$loginpress_gallery_background = loginpress_get_option_key( 'gallery_background', $loginpress_array ); 
     63if ( ! empty ( $loginpress_custom_background ) ) { // Use Custom Background 
     64    $loginpress_background_img = $loginpress_custom_background; 
     65} else if ( ! empty ( $loginpress_gallery_background ) ) { // Background from Gallery Control. 
     66    if ( LOGINPRESS_DIR_URL . 'img/gallery/img-1.jpg' == $loginpress_gallery_background ) { // If user select 1st image from gallery control then show template's default image. 
    6467        $loginpress_background_img = ''; 
    6568    } else { // Use selected image from gallery control. 
    66         $loginpress_background_img = loginpress_get_option_key( 'gallery_background', $loginpress_array ); 
     69        $loginpress_background_img = $loginpress_gallery_background; 
    6770    } 
    6871} else { // exceptional case (use default image). 
    6972    $loginpress_background_img = ''; 
     73} 
     74 
     75/** 
     76 * Add !important with property's value. To avoid overriding from theme. 
     77 * @return string 
     78 * @since 1.1.2 
     79 */ 
     80function loginpress_important() { 
     81 
     82    $important = ''; 
     83    if ( ! is_customize_preview() ) { // Avoid !important in customizer previewer. 
     84        $important = ' !important'; 
     85    } 
     86    return $important; 
    7087} 
    7188 
     
    244261.login h1 a { 
    245262    <?php if ( ! empty( $loginpress_logo_img ) ) : ?> 
    246     background-image: url( <?php echo $loginpress_logo_img; ?> ); 
     263    background-image: url( <?php echo $loginpress_logo_img; ?> ) <?php echo loginpress_important(); ?>; 
    247264    <?php endif; ?> 
    248265    <?php if ( ! empty( $loginpress_logo_width ) ) : ?> 
    249     width: <?php echo $loginpress_logo_width; ?>; 
     266    width: <?php echo $loginpress_logo_width . loginpress_important(); ?>; 
    250267    <?php endif; ?> 
    251268    <?php if ( ! empty( $loginpress_logo_height ) ) : ?> 
    252     height: <?php echo $loginpress_logo_height; ?>; 
     269    height: <?php echo $loginpress_logo_height . loginpress_important(); ?>; 
    253270    <?php endif; ?> 
    254271    <?php if ( ! empty( $loginpress_logo_width ) || ! empty( $loginpress_logo_height ) ) : ?> 
    255     background-size: cover; <?php //echo $loginpress_logo_width; ?> <?php //echo $loginpress_logo_height; ?>; 
     272    background-size: cover <?php echo loginpress_important(); ?>; 
    256273    <?php endif; ?> 
    257274    <?php if ( ! empty( $loginpress_logo_padding ) ) : ?> 
    258     padding-bottom: <?php echo $loginpress_logo_padding; ?>; 
     275    padding-bottom: <?php echo $loginpress_logo_padding . loginpress_important(); ?>; 
    259276    <?php endif; ?> 
    260277 
  • loginpress/trunk/loginpress.php

    r1805778 r1806226  
    44* Plugin URI: http://WPBrigade.com/wordpress/plugins/loginpress/ 
    55* Description: LoginPress is the best <code>wp-login</code> Login Page Customizer plugin by <a href="https://wpbrigade.com/">WPBrigade</a> which allows you to completely change the layout of login, register and forgot password forms. 
    6 * Version: 1.1.1 
     6* Version: 1.1.2 
    77* Author: WPBrigade 
    88* Author URI: http://WPBrigade.com/ 
     
    2323    * @var string 
    2424    */ 
    25     public $version = '1.1.1'; 
     25    public $version = '1.1.2'; 
    2626 
    2727    /** 
  • loginpress/trunk/readme.txt

    r1805778 r1806226  
    55Author URI: https://wpbrigade.com 
    66Tags: wp-login, custom wp-login, login customizer, custom login, custom login logo, login customizer, custom login page, login error, login page style, loginpress 
    7 Stable tag: 1.1.1 
     7Stable tag: 1.1.2 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    205205== Changelog == 
    206206 
     207= 1.1.2 - 2018-01-20 = 
     208* Compatibility: Compatible with WordPress 4.9. 
     209* Bugfix: logo sizing 
     210* Bugfix: Compatibility issue with PHP 5.3 
     211 
    207212= 1.1.1 - 2018-01-19 = 
    208213* Compatibility: Compatible with WordPress 4.9. 
     
    344349== Upgrade Notice == 
    345350 
    346 = 1.1.1 = 
    347 * Launched LoginPress addons - (Auto Login, Hide Login, Login Redirects, Social Login, Login Widget, Limit Login Attempts) 
     351= 1.1.2 = 
     352* Launched LoginPress addons - (Auto Login, Hide Login, Login Redirects, Social Login, Login Widget, Limit Login Attempts) + couple of bug fixes. 
Note: See TracChangeset for help on using the changeset viewer.