@@ -404,7 +404,7 @@ public static function create_redux() {
404
404
foreach ( self ::$ sections as $ opt_name => $ the_sections ) {
405
405
if ( ! empty ( $ the_sections ) ) {
406
406
if ( ! self ::$ init [ $ opt_name ] ) {
407
- self ::loadRedux ( $ opt_name );
407
+ self ::load_redux ( $ opt_name );
408
408
}
409
409
}
410
410
}
@@ -905,7 +905,6 @@ public static function set_field( string $opt_name = '', $section_id = '', array
905
905
// Shim for the old method!
906
906
if ( is_array ( $ section_id ) ) {
907
907
$ field = $ section_id ;
908
-
909
908
if ( isset ( $ field ['section_id ' ] ) ) {
910
909
$ section_id = $ field ['section_id ' ];
911
910
}
@@ -1123,7 +1122,7 @@ public static function set_developer( string $opt_name = '', $arg = '' ) {
1123
1122
}
1124
1123
1125
1124
/**
1126
- * Deprecated Retrieves option panel global argument array.
1125
+ * Deprecated Retries option panel global argument array.
1127
1126
*
1128
1127
* @param string $opt_name Panel opt_name.
1129
1128
*
@@ -1135,7 +1134,7 @@ public static function getArgs( string $opt_name = '' ) { // phpcs:ignore WordPr
1135
1134
}
1136
1135
1137
1136
/**
1138
- * Retrieves option panel global argument array.
1137
+ * Retries option panel global argument array.
1139
1138
*
1140
1139
* @param string $opt_name Panel opt_name.
1141
1140
* @param string $key Argument key name to be returned.
@@ -1224,6 +1223,8 @@ public static function get_post_meta( string $opt_name = '', $the_post = array()
1224
1223
1225
1224
$ redux = ReduxFrameworkInstances::get_instance ( $ opt_name );
1226
1225
1226
+ // We don't ever need to specify advanced_metaboxes here as all function for metaboxes are core,
1227
+ // and thus, metabox_lite. The extension handles its own functions and is handled by this condition. - kp.
1227
1228
$ metaboxes = $ redux ->extensions ['metaboxes ' ];
1228
1229
1229
1230
if ( null === $ default || '' === $ default ) {
@@ -1690,8 +1691,7 @@ public static function get_extensions( string $opt_name = '', string $key = '' )
1690
1691
1691
1692
/**
1692
1693
* Method to disables Redux demo mode popup.
1693
- *
1694
- * @noinspection PhpUnused*/
1694
+ */
1695
1695
public static function disable_demo () {
1696
1696
add_action ( 'ReduxFrameworkPlugin_admin_notice ' , 'Redux::remove_demo ' );
1697
1697
add_action ( 'redux_framework_plugin_admin_notice ' , 'Redux::remove_demo ' );
@@ -1707,7 +1707,7 @@ public static function remove_demo() {
1707
1707
/**
1708
1708
* Function which forces a panel/page to render.
1709
1709
*
1710
- * @param string/ReduxFramework $redux Panel opt_name or Redux object.
1710
+ * @param string|object $redux Panel opt_name or Redux object.
1711
1711
*/
1712
1712
public static function render ( $ redux = '' ) {
1713
1713
if ( is_string ( $ redux ) ) {
@@ -1716,7 +1716,6 @@ public static function render( $redux = '' ) {
1716
1716
return ;
1717
1717
}
1718
1718
}
1719
-
1720
1719
$ enqueue = new Redux_Enqueue ( $ redux );
1721
1720
$ enqueue ->init ();
1722
1721
$ panel = new Redux_Panel ( $ redux );
0 commit comments