This commit is contained in:
Alexander Agnarson 2021-07-03 13:23:02 +02:00
parent cf9998ad1b
commit 3896aa0cc0
15 changed files with 60 additions and 34 deletions

View file

@ -62,7 +62,7 @@ class Kirki_Control {
*
* @return string the name of the class that will be used to create this control.
*/
final private function get_control_class_name( $args ) {
private function get_control_class_name( $args ) {
// Set a default class name.
$class_name = 'WP_Customize_Control';
@ -98,7 +98,7 @@ class Kirki_Control {
*
* @access private
*/
final private function set_control_types() {
private function set_control_types() {
// Early exit if this has already run.
if ( ! empty( self::$control_types ) ) {

View file

@ -64,7 +64,7 @@ class Kirki_Settings {
* @access private
* @param array $args The field definition as sanitized in Kirki_Field.
*/
final private function add_settings( $args = array() ) {
private function add_settings( $args = array() ) {
// Get the classname we'll be using to create our setting(s).
$classname = false;
@ -106,7 +106,7 @@ class Kirki_Settings {
* @param string $transport Use refresh|postMessage.
* @param string|array $sanitize_callback A callable sanitization function or method.
*/
final private function add_setting( $classname, $setting, $default, $type, $capability, $transport, $sanitize_callback ) {
private function add_setting( $classname, $setting, $default, $type, $capability, $transport, $sanitize_callback ) {
$this->wp_customize->add_setting(
new $classname(
@ -130,7 +130,7 @@ class Kirki_Settings {
* and that the defined classes actually exist.
* If a defined class does not exist, it is removed.
*/
final private function set_setting_types() {
private function set_setting_types() {
// Apply the kirki_setting_types filter.
$this->setting_types = apply_filters(

View file

@ -43,7 +43,7 @@ class Kirki_Util {
$plugins = get_plugins();
$_plugin = '';
foreach ( $plugins as $plugin => $args ) {
if ( ! $is_plugin && isset( $args['Name'] ) && ( 'Kirki' === $args['Name'] || 'Kirki Toolkit' === $args['Name'] ) ) {
if ( ! $is_plugin && isset( $args['Name'] ) && ( 'Kirki' === $args['Name'] || 'Kirki Toolkit' === $args['Name'] || 'Kirki Customizer Framework' === $args['Name'] ) ) {
$is_plugin = true;
$_plugin = $plugin;
}
@ -139,7 +139,7 @@ class Kirki_Util {
}
$exists = false;
foreach ( $plugins['plugins'] as $plugin ) {
if ( isset( $plugin['Name'] ) && 'Kirki Toolkit' === $plugin['Name'] ) {
if ( isset( $plugin['Name'] ) && ( 'Kirki' === $args['Name'] || 'Kirki Toolkit' === $args['Name'] || 'Kirki Customizer Framework' === $args['Name'] ) ) {
$exists = true;
}
}