Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 0b9a588

Browse files
committed
Fix deprecated jQuery
Signed-off-by: Kevin Provance <[email protected]>
1 parent cba81ef commit 0b9a588

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

redux-core/inc/extensions/customizer/class-redux-extension-customizer.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ class Redux_Extension_Customizer extends Redux_Extension_Abstract {
3333
*
3434
* @var string
3535
*/
36-
public $field_name = 'customizer';
36+
public string $field_name = 'customizer';
3737

3838
/**
3939
* Set the friendly name of the extension. This is for display purposes. No underscores or dashes are required.
4040
*
4141
* @var string
4242
*/
43-
public $extension_name = 'Customizer';
43+
public string $extension_name = 'Customizer';
4444

4545
/**
4646
* Set the minumum required version of Redux here (optional).
@@ -50,28 +50,28 @@ class Redux_Extension_Customizer extends Redux_Extension_Abstract {
5050
*
5151
* @var string
5252
*/
53-
private $minimum_redux_version = '4.0.0';
53+
private string $minimum_redux_version = '4.0.0';
5454

5555
/**
5656
* Original options.
5757
*
5858
* @var array
5959
*/
60-
private $orig_options = array();
60+
private array $orig_options = array();
6161

6262
/**
6363
* Post values.
6464
*
6565
* @var array
6666
*/
67-
private static $post_values = array();
67+
private static array $post_values = array();
6868

6969
/**
7070
* Options array.
7171
*
7272
* @var array
7373
*/
74-
public $options = array();
74+
public array $options = array();
7575

7676
/**
7777
* Redux_Extension_my_extension constructor.

redux-core/inc/extensions/import_export/class-redux-extension-import-export.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Redux_Extension_Import_Export extends Redux_Extension_Abstract {
3131
*
3232
* @var bool
3333
*/
34-
public $is_field = false;
34+
public bool $is_field = false;
3535

3636
/**
3737
* Class Constructor. Defines the args for the extions class

redux-core/inc/extensions/options_object/class-redux-extension-options-object.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ class Redux_Extension_Options_Object extends Redux_Extension_Abstract {
3333
*
3434
* @var string
3535
*/
36-
private $field_name = 'options_object';
36+
private string $field_name = 'options_object';
3737

3838
/**
3939
* Is field bit.
4040
*
4141
* @var bool
4242
*/
43-
public $is_field = false;
43+
public bool $is_field = false;
4444

4545
/**
4646
* Class Constructor. Defines the args for the extions class

redux-core/inc/fields/slides/redux-slides.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*global redux_change, redux*/
1+
/*global redux_change, redux, jQuery */
22

33
(function( $ ) {
44
'use strict';
@@ -75,7 +75,7 @@
7575

7676
$( newSlide ).find( 'input[type="text"], input[type="hidden"], textarea' ).each(
7777
function() {
78-
$( this ).attr( 'name', jQuery( this ).attr( 'name' ).replace( /[0-9]+(?!.*[0-9])/, slideCount1 ) ).attr( 'id', $( this ).attr( 'id' ).replace( /[0-9]+(?!.*[0-9])/, slideCount1 ) );
78+
$( this ).attr( 'name', $( this ).attr( 'name' ).replace( /[0-9]+(?!.*[0-9])/, slideCount1 ) ).attr( 'id', $( this ).attr( 'id' ).replace( /[0-9]+(?!.*[0-9])/, slideCount1 ) );
7979

8080
$( this ).val( '' );
8181

redux-core/inc/fields/slides/redux-slides.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redux-core/inc/fields/typography/class-redux-typography.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ public function enqueue() {
751751

752752
$dep_array = array( 'jquery', 'wp-color-picker', 'select2-js', 'redux-js', 'redux-webfont-js' );
753753

754-
wp_enqueue_script( 'redux-field-typography-js', Redux_Core::$url . "inc/fields/typography/redux-typography$min.js", $dep_array, $this->timestamp, true );
754+
wp_enqueue_script( 'redux-field-typography-js', Redux_Core::$url . "inc/fields/typography/redux-typography$min.js", $dep_array, Redux_Core::$version, true );
755755

756756
wp_localize_script(
757757
'redux-field-typography-js',

redux-core/inc/fields/typography/redux-typography.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
$( this ).hasClass( 'redux-typography-transform' ) ||
215215
$( this ).hasClass( 'redux-typography-font-variant' ) ||
216216
$( this ).hasClass( 'redux-typography-decoration' ) ) {
217-
that.find( 'option[selected="selected"]' ).removeAttr( 'selected' );
217+
that.find( 'option[selected="selected"]' ).attr( 'selected', false );
218218
that.find( 'option[value="' + val + '"]' ).attr( 'selected', 'selected' );
219219
}
220220

0 commit comments

Comments
 (0)