Plugin Directory

Changeset 3468534


Ignore:
Timestamp:
02/24/2026 10:21:21 AM (5 weeks ago)
Author:
babbardel
Message:

PHP 8.x compatibility and updated requirements - fixes #253

Location:
customify/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • customify/trunk/customify.php

    r3468425 r3468534  
    1212 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
    1313 * Domain Path: /languages/
    14  * Requires at least: 4.9.14
    15  * Tested up to: 5.9.5
    16  * Requires PHP: 5.6.40
     14 * Requires at least: 5.9.0
     15 * Tested up to: 6.9
     16 * Requires PHP: 7.4
    1717 */
    1818
  • customify/trunk/includes/class-customify-block-editor.php

    r2391633 r3468534  
    518518
    519519        public static function to_kebab_case( $string ) {
    520             return implode( '-', array_map( '\strtolower', preg_split( "/[\n\r\t -_]+/", preg_replace( "/['\x{2019}]/u", '', $string ), - 1, PREG_SPLIT_NO_EMPTY ) ) );
     520            $parts = preg_split( "/[\n\r\t -_]+/", preg_replace( "/['\x{2019}]/u", '', $string ), - 1, PREG_SPLIT_NO_EMPTY );
     521            if ( ! is_array( $parts ) ) {
     522                return '';
     523            }
     524            return implode( '-', array_map( '\strtolower', $parts ) );
    521525        }
    522526
  • customify/trunk/includes/class-customify-color-palettes.php

    r2420074 r3468534  
    510510        $current_palette .= '<div class="sm-color-palette__colors">';
    511511        $color_classes = apply_filters( 'customify_style_manager_color_palettes_colors_classes', array( 'sm-color-palette__color' ) );
     512        if ( ! is_array( $color_classes ) ) {
     513            $color_classes = array( 'sm-color-palette__color' );
     514        }
    512515        foreach ( $master_color_controls_ids as $setting_id ) {
    513516            $current_palette .=
  • customify/trunk/includes/class-pixcustomify.php

    r2325845 r3468534  
    115115     * @since   1.5.0
    116116     */
    117     private $minimalRequiredPhpVersion = '5.4';
     117    private $minimalRequiredPhpVersion = '7.4';
    118118
    119119    protected function __construct( $file, $version = '1.0.0' ) {
  • customify/trunk/includes/extras.php

    r2561153 r3468534  
    455455        'pixcare_install_notice_dismissed',
    456456    ];
    457     foreach ( $excluded as $exclude ) {
    458         unset( $parent_theme_mods[ $exclude ] );
     457    if ( is_array( $parent_theme_mods ) ) {
     458        foreach ( $excluded as $exclude ) {
     459            unset( $parent_theme_mods[ $exclude ] );
     460        }
    459461    }
    460462    // Finally, write the new theme mods for the active child theme.
  • customify/trunk/readme.txt

    r3468425 r3468534  
    22Contributors: pixelgrade, vlad.olaru, babbardel, razvanonofrei, gorby31
    33Tags: design, customizer, fonts, colors, gutenberg, font palettes, color palettes
    4 Requires at least: 4.9.14
    5 Tested up to: 5.9.5
     4Requires at least: 5.9.0
     5Tested up to: 6.9
    66Stable tag: 2.10.6
    7 Requires PHP: 5.6.40
     7Requires PHP: 7.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.