Plugin Directory

Changeset 2576478


Ignore:
Timestamp:
08/02/2021 01:08:02 PM (4 years ago)
Author:
dudaster
Message:

v3.1.2

Location:
ele-custom-skin/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ele-custom-skin/trunk/ele-custom-skin.php

    r2549594 r2576478  
    22/*
    33 * Plugin Name: Ele Custom Skin
    4  * Version: 3.1.1
     4 * Version: 3.1.2
    55 * Description: Elementor Custom Skin for Posts and Archive Posts. You can create a skin as you want.
    66 * Plugin URI: https://dudaster.com
     
    1111 * License: GPLv3
    1212 * License URI: http://www.gnu.org/licenses/gpl-3.0
    13  * Elementor tested up to: 3.3.0
    14  * Elementor Pro tested up to: 3.3.0
     13 * Elementor tested up to: 3.4.0
     14 * Elementor Pro tested up to: 3.4.0
    1515*/
    1616
     
    2121define( 'ELECS_NAME', plugin_basename( __FILE__ ));
    2222define( 'ELECS_URL', plugin_dir_url( __FILE__ ));
    23 define ('ELECS_VER','3.1.1');
     23define ('ELECS_VER','3.1.2');
    2424
    2525include_once ELECS_DIR.'includes/ecs-notices.php';
  • ele-custom-skin/trunk/includes/dynamic-style.php

    r2316646 r2576478  
    11<?php
    22if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
     3
     4
     5function ECS_find_url_type($values){
     6  $interest=["url"];
     7  $keys=[];
     8  if(is_array($values)){
     9    foreach ($values as $key => $value){
     10      if (isset($value["type"]) && $value["type"] == "url") $keys[]=  $key;
     11    }
     12  }
     13  return $keys;
     14}
     15/* peopele keep getting errors from url types */
     16function ECS_remove_url_type(&$array){
     17  $keys=ECS_find_url_type($array);
     18  foreach($keys as $key){
     19    ECS_recursive_unset($array, $key);
     20  }
     21}
    322
    423function ECS_clean_selector_value($values){
     
    2140    foreach ($array as &$value) {
    2241        if (is_array($value)) {
    23             recursive_unset($value, $unwanted_key);
     42            ECS_recursive_unset($value, $unwanted_key);
    2443        }
    2544    }
     
    3756  $all_controls = isset($all_controls) ? $all_controls : []; $dynamic_settings = isset($dynamic_settings) ? $dynamic_settings : [];
    3857  $controls = array_intersect_key( $all_controls, $dynamic_settings );
    39   ECS_recursive_unset($dynamic_settings, 'link');//we don't need the link options
     58  ECS_remove_url_type($controls);//we don't need the link options
    4059  $settings = $element->parse_dynamic_settings( $dynamic_settings, $controls); // @ <- dirty fix for that fugly controls-stack.php  Illegal string offset 'url' error
    4160
  • ele-custom-skin/trunk/readme.txt

    r2549594 r2576478  
    55Requires at least: 5.0
    66Tested up to: 5.7.2
    7 Stable tag: 3.1.1
     7Stable tag: 3.1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6464
    6565== Changelog ==
     66
     67= 3.1.2 =
     68* Fixed the url error message issues.
    6669
    6770= 3.1.1 =
Note: See TracChangeset for help on using the changeset viewer.