Plugin Directory

Changeset 3031461


Ignore:
Timestamp:
02/05/2024 09:23:23 AM (2 years ago)
Author:
morunas
Message:

Fixed two compatibility issues for PHP7.x regarding scroll attr and pageext

Location:
dot-embed/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dot-embed/trunk/dot-embed.php

    r2722774 r3031461  
    113113     }
    114114
    115     // fix broken values
    116     /*
    117     $args['width']  = preg_replace('/[^0-9%px]/', '', $args['width']);
    118     if ($args['height'] != 'auto') {
    119       $args['height'] = preg_replace('/[^0-9%px]/', '', $args['height']);
    120     }
    121     */
    122     if (!in_array($args['scroll'], array('auto', 'yes', 'no'))) $args['scroll'] = 'no';
     115    if (!isset($args['scroll']) || !in_array($args['scroll'], ['auto', 'yes', 'no'])) $args['scroll'] = 'no';
    123116    // extract variables from args
    124117    extract($args);
     
    178171          pageId: '<?php echo esc_attr($pageid); ?>',
    179172          dotExt: '<?php echo esc_attr($dotext); ?>',
    180           pageExt: '<?php echo esc_attr($pageExt); ?>',
     173          pageExt: '<?php echo esc_attr($pageext); ?>',
    181174          customdomainlink: '<?php echo  html_entity_decode(esc_url($customdomainlink)); ?>',
    182175          height: '<?php echo esc_attr($height); ?>',
  • dot-embed/trunk/readme.txt

    r2722774 r3031461  
    55Tested up to: 5.3.2
    66Requires PHP: 5.6
    7 Stable tag: 3.2.16
     7Stable tag: 3.2.17
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    134134* Added support for url_data_* shortcode parameters (keys support lowercase letters, numbers and underscores)
    135135
     136= 3.2.17 =
     137* Fixed two compatibility issues for PHP7.x
     138
    136139== Upgrade Notice ==
    137140
Note: See TracChangeset for help on using the changeset viewer.