Custom Login Page Customizer | LoginPress - Version 1.1.23

Version Description

  • 2019-04-29 =
  • Bugfix: PHP callout error in LoginPress settings page.
Download this release

Release Info

Developer hiddenpearls
Plugin Icon 128x128 Custom Login Page Customizer | LoginPress
Version 1.1.23
Comparing to
See all releases

Code changes from version 1.1.22 to 1.1.23

classes/class-loginpress-addons.php CHANGED
@@ -4,6 +4,7 @@
4
  *
5
  * @package LoginPress
6
  * @since 1.0.19
 
7
  *
8
  */
9
 
4
  *
5
  * @package LoginPress
6
  * @since 1.0.19
7
+ * @since 1.1.22
8
  *
9
  */
10
 
classes/class-loginpress-ajax.php CHANGED
@@ -8,7 +8,7 @@ if ( ! defined( 'ABSPATH' ) ) {
8
  * Handling all the AJAX calls in LoginPress.
9
  *
10
  * @since 1.0.19
11
- * @version 1.1.14
12
  * @class LoginPress_AJAX
13
  */
14
 
@@ -304,13 +304,19 @@ if ( ! class_exists( 'LoginPress_AJAX' ) ) :
304
  wp_die();
305
  }
306
 
 
 
 
 
 
 
307
  static function video_url(){
308
 
309
- // check_ajax_referer( 'loginpress-attachment-nonce', $_POST['security'] );
310
- //
311
- // if ( ! current_user_can( 'manage_options' ) ) {
312
- // wp_die( 'No cheating, huh!' );
313
- // }
314
 
315
  echo wp_get_attachment_url( $_POST['src'] );
316
 
8
  * Handling all the AJAX calls in LoginPress.
9
  *
10
  * @since 1.0.19
11
+ * @version 1.1.23
12
  * @class LoginPress_AJAX
13
  */
14
 
304
  wp_die();
305
  }
306
 
307
+ /**
308
+ * [video_url description]
309
+ * @since 1.1.22
310
+ * @version 1.1.23
311
+ * @return string attachment URL.
312
+ */
313
  static function video_url(){
314
 
315
+ check_ajax_referer( 'loginpress-attachment-nonce', 'security' );
316
+
317
+ if ( ! current_user_can( 'manage_options' ) ) {
318
+ wp_die( 'No cheating, huh!' );
319
+ }
320
 
321
  echo wp_get_attachment_url( $_POST['src'] );
322
 
classes/class-loginpress-setup.php CHANGED
@@ -3,7 +3,7 @@
3
  * LoginPress Settings
4
  *
5
  * @since 1.0.9
6
- * @version 1.1.9
7
  */
8
  if ( ! class_exists( 'LoginPress_Settings' ) ):
9
 
@@ -83,18 +83,19 @@ class LoginPress_Settings {
83
 
84
  if ( ! has_action( 'loginpress_pro_add_template' ) ) {
85
 
 
86
  if ( ! class_exists( 'LoginPress_Addons' ) ) :
87
  include LOGINPRESS_DIR_PATH . 'classes/class-loginpress-addons.php';
88
  endif;
89
 
90
  $loginpress_addon = new LoginPress_Addons;
91
- foreach( $loginpress_addon->_get_addons() as $addon ) {
92
 
93
- if ( ! is_null( $loginpress_addon->_addon_promotion( $addon ) ) ) {
94
-
95
- array_push( $loginpress_general_tab , $loginpress_addon->_addon_promotion( $addon ) );
 
 
96
  }
97
-
98
  }
99
 
100
  $loginpress_premium = array(
3
  * LoginPress Settings
4
  *
5
  * @since 1.0.9
6
+ * @version 1.1.23
7
  */
8
  if ( ! class_exists( 'LoginPress_Settings' ) ):
9
 
83
 
84
  if ( ! has_action( 'loginpress_pro_add_template' ) ) {
85
 
86
+ // Add Add-Ons Promotion tabs in version 1.1.22
87
  if ( ! class_exists( 'LoginPress_Addons' ) ) :
88
  include LOGINPRESS_DIR_PATH . 'classes/class-loginpress-addons.php';
89
  endif;
90
 
91
  $loginpress_addon = new LoginPress_Addons;
 
92
 
93
+ if( is_array( $loginpress_addon->_get_addons() ) ) {
94
+ foreach( $loginpress_addon->_get_addons() as $addon ) {
95
+ if ( ! is_null( $loginpress_addon->_addon_promotion( $addon ) ) ) {
96
+ array_push( $loginpress_general_tab , $loginpress_addon->_addon_promotion( $addon ) );
97
+ }
98
  }
 
99
  }
100
 
101
  $loginpress_premium = array(
css/themes/default-1.php CHANGED
@@ -1,5 +1,10 @@
1
  <?php
2
-
 
 
 
 
 
3
  function first_presets() {
4
  ob_start();
5
  ?>
1
  <?php
2
+ /**
3
+ * Default template stylesheet.
4
+ * @since 1.0.0
5
+ * @version 1.1.22
6
+ * @return string style.
7
+ */
8
  function first_presets() {
9
  ob_start();
10
  ?>
include/customizer-strings.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Customizer strings for the logo control.
4
  * @since 1.1.3
5
- * @version 1.1.10
6
  */
7
  $logo_range_control = array( 'customize_logo_width', 'customize_logo_height', 'customize_logo_padding' );
8
  $logo_range_default = array( '84', '84', '0' );
2
  /**
3
  * Customizer strings for the logo control.
4
  * @since 1.1.3
5
+ * @version 1.1.22
6
  */
7
  $logo_range_control = array( 'customize_logo_width', 'customize_logo_height', 'customize_logo_padding' );
8
  $logo_range_default = array( '84', '84', '0' );
js/customize-controls.js CHANGED
@@ -182,7 +182,7 @@ jQuery(document).ready(function($) {
182
  } );
183
  } );
184
 
185
- // controls for add and remove background video
186
  wp.customize( 'loginpress_customization[background_video]', function( value ) {
187
  value.bind( function( loginPressVal ) {
188
 
182
  } );
183
  } );
184
 
185
+ // controls for add and remove background video in version 1.1.22
186
  wp.customize( 'loginpress_customization[background_video]', function( value ) {
187
  value.bind( function( loginPressVal ) {
188
 
loginpress.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: LoginPress - Customizing the WordPress Login
4
  * Plugin URI: https://WPBrigade.com/wordpress/plugins/loginpress/
5
  * 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.22
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/
9
  * Text Domain: loginpress
@@ -22,7 +22,7 @@ if ( ! class_exists( 'LoginPress' ) ) :
22
  /**
23
  * @var string
24
  */
25
- public $version = '1.1.22';
26
 
27
  /**
28
  * @var The single instance of the class
3
  * Plugin Name: LoginPress - Customizing the WordPress Login
4
  * Plugin URI: https://WPBrigade.com/wordpress/plugins/loginpress/
5
  * 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.23
7
  * Author: WPBrigade
8
  * Author URI: https://WPBrigade.com/
9
  * Text Domain: loginpress
22
  /**
23
  * @var string
24
  */
25
+ public $version = '1.1.23';
26
 
27
  /**
28
  * @var The single instance of the class
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tested up to: 5.1
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com
6
  Tags: wp-login, login, login customizer, custom login, wordpress login, login customizer, custom login page, login error, login page style, loginpress
7
- Stable tag: 1.1.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -205,6 +205,9 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
205
 
206
  == Changelog ==
207
 
 
 
 
208
  = 1.1.22 - 2019-04-25 =
209
  * New Feature: Play Background Video at login page.
210
  * Bugfix: Styling session expired popup.
@@ -463,5 +466,5 @@ Please visit <a target="_blank" rel="friend" href="https://WPBrigade.com/wordpre
463
 
464
  == Upgrade Notice ==
465
 
466
- = 1.1.22 =
467
  * Important Release, upgrade immediately - Introducing Background video feature.
4
  Contributors: WPBrigade, hiddenpearls, AbdulWahab610
5
  Author URI: https://wpbrigade.com
6
  Tags: wp-login, login, login customizer, custom login, wordpress login, login customizer, custom login page, login error, login page style, loginpress
7
+ Stable tag: 1.1.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
205
 
206
  == Changelog ==
207
 
208
+ = 1.1.23 - 2019-04-29 =
209
+ * Bugfix: PHP callout error in LoginPress settings page.
210
+
211
  = 1.1.22 - 2019-04-25 =
212
  * New Feature: Play Background Video at login page.
213
  * Bugfix: Styling session expired popup.
466
 
467
  == Upgrade Notice ==
468
 
469
+ = 1.1.23 =
470
  * Important Release, upgrade immediately - Introducing Background video feature.