Plugin Directory

Changeset 1922018


Ignore:
Timestamp:
08/09/2018 07:26:19 AM (8 years ago)
Author:
Sh14
Message:

arrays definition has been fixed, setted 'array()' instead of '[]'

Location:
oi-yamaps/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • oi-yamaps/trunk/Readme.md

    r1921678 r1922018  
    4747## Changelog
    4848
     49###  3.2.0 (09.08.2018)
     50* fix: arrays definition has been fixed, setted 'array()' instead of '[]';
    4951###  3.1.9 (08.08.2018)
    5052* fix: plugin header correction;
  • oi-yamaps/trunk/include/oi-nput.php

    r1921678 r1922018  
    713713 */
    714714function get_html( $atts, $base_class = '' ) {
    715     $atts = shortcode_atts( [
     715    $atts = shortcode_atts( array(
    716716        'tag'     => 'div',
    717         'atts'    => [
     717        'atts'    => array(
    718718            'class' => '&',
    719         ],
     719        ),
    720720        'content' => '',
    721     ], $atts );
    722 
    723     $mono   = [
     721    ), $atts );
     722
     723    $mono   = array(
    724724        'br',
    725725        'hr',
     
    728728        'link',
    729729        'img',
    730     ];
     730    );
    731731    $out    = '';
    732     $object = [];
     732    $object = array();
    733733
    734734    // перебор содержимого массива
     
    760760                    // если значение является массивом
    761761                    if ( is_array( $value ) ) {
    762                         $attributes = [];
     762                        $attributes = array();
    763763
    764764                        // атрибуты выстраиваются в строку
     
    803803
    804804    if ( empty( $atts['atts'] ) ) {
    805         $atts['atts'] = [];
     805        $atts['atts'] = array();
    806806    }
    807807    // перебор элементов и дописывание закрывающих частей
     
    827827
    828828    // порядок составления элементов
    829     $order = [
     829    $order = array(
    830830        'tag',
    831831        'atts',
    832832        'content',
    833833        'end_tag',
    834     ];
     834    );
    835835    foreach ( $order as $key ) {
    836836        if ( ! empty( $object[ $key ] ) ) {
  • oi-yamaps/trunk/oi-yamaps.php

    r1921678 r1922018  
    55 * Description: The plugin allows you to use Yandex.Maps on your site pages and put the placemarks on the map. Without an API key. <strong>Don't forget to reactivate the plugin!</strong>
    66 * Author: Alexei Isaenko
    7  * Version: 3.1.9
     7 * Version: 3.2.0
    88 * Author URI: https://oiplug.com/members/isaenkoalexei
    99 * Text Domain: oi-yamaps
  • oi-yamaps/trunk/readme.txt

    r1921678 r1922018  
    5858
    5959== Changelog ==
    60 
     60= 3.2.0 (09.08.2018) =
     61* fix: arrays definition has been fixed, setted 'array()' instead of '[]';
    6162= 3.1.9 (08.08.2018) =
    6263* fix: plugin header correction;
Note: See TracChangeset for help on using the changeset viewer.