WordPress.org

Plugin Directory

Changeset 1700645


Ignore:
Timestamp:
07/22/17 06:33:08 (4 months ago)
Author:
gn_themes
Message:

4.10.2

Location:
shortcodes-ultimate
Files:
211 added
3 edited

Legend:

Unmodified
Added
Removed
  • shortcodes-ultimate/trunk/inc/core/shortcodes.php

    r1684377 r1700645  
    848848        // Prepare link text 
    849849        $text = ( $content ) ? $content : get_the_title( $atts['id'] ); 
    850         if (current_user_can('read',$atts['id'])) { 
    851             return '<a href="' . get_permalink( $atts['id'] ) . '" class="' . su_ecssc( $atts ) . '" title="' . $text . '" target="_' . $atts['target'] . '">' . $text . '</a>'; 
    852         } else { 
    853             return $text; 
    854         } 
     850        return '<a href="' . get_permalink( $atts['id'] ) . '" class="' . su_ecssc( $atts ) . '" title="' . $text . '" target="_' . $atts['target'] . '">' . $text . '</a>'; 
    855851    } 
    856852 
     
    10261022                $return .= '<div class="su-slider-slide">'; 
    10271023                // Slide content with link 
    1028                 if ( $slide['link'] ) $return .= '<a href="' . $slide['link'] . '"' . $target . 'title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" />' . $title . '</a>'; 
     1024                if ( $slide['link'] ) $return .= '<a href="' . $slide['link'] . '" ' . $target . ' title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" />' . $title . '</a>'; 
    10291025                // Slide content without link 
    10301026                else $return .= '<a><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" />' . $title . '</a>'; 
     
    11731169                $return .= '<div class="su-custom-gallery-slide">'; 
    11741170                // Slide content with link 
    1175                 if ( $slide['link'] ) $return .= '<a href="' . $slide['link'] . '"' . $atts['target'] . 'title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>'; 
     1171                if ( $slide['link'] ) $return .= '<a href="' . $slide['link'] . '"' . $atts['target'] . ' title="' . esc_attr( $slide['title'] ) . '"><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>'; 
    11761172                // Slide content without link 
    11771173                else $return .= '<a><img src="' . $image['url'] . '" alt="' . esc_attr( $slide['title'] ) . '" width="' . $atts['width'] . '" height="' . $atts['height'] . '" />' . $title . '</a>'; 
     
    14321428        $user = get_user_by( 'id', $atts['user_id'] ); 
    14331429        // Get user data if user was found 
    1434         $user = ( $user && isset( $user->data->$atts['field'] ) ) ? $user->data->$atts['field'] : $atts['default']; 
     1430        $user = ( $user && isset( $user->data->{$atts['field']} ) ) ? $user->data->{$atts['field']} : $atts['default']; 
    14351431        // Apply cutom filter 
    14361432        if ( $atts['filter'] && function_exists( $atts['filter'] ) ) $user = call_user_func( $atts['filter'], $user ); 
     
    14551451        $post = get_post( $atts['post_id'] ); 
    14561452        // Set default value if meta is empty 
    1457         $post = ( empty( $post ) || empty( $post->$atts['field'] ) ) ? $atts['default'] : $post->$atts['field']; 
     1453        $post = ( empty( $post ) || empty( $post->{$atts['field']} ) ) ? $atts['default'] : $post->{$atts['field']}; 
    14581454        // Apply cutom filter 
    14591455        if ( $atts['filter'] && function_exists( $atts['filter'] ) ) $post = call_user_func( $atts['filter'], $post ); 
  • shortcodes-ultimate/trunk/readme.txt

    r1684624 r1700645  
    110110 
    111111== Changelog == 
     112 
     113= 4.10.2 = 
     114* Improved: compatibility with PHP7 ([user] and [post] shortcodes) 
     115* Fixed: [slider] and [custom_gallery] markup (skipped whitespaces among link attributes) 
     116* Removed: user capability check in [permalink] 
    112117 
    113118= 4.10.1 = 
  • shortcodes-ultimate/trunk/shortcodes-ultimate.php

    r1684624 r1700645  
    33  Plugin Name: Shortcodes Ultimate 
    44  Plugin URI: http://gndev.info/shortcodes-ultimate/ 
    5   Version: 4.10.1 
     5  Version: 4.10.2 
    66  Author: Vladimir Anokhin 
    77  Author URI: http://gndev.info/ 
     
    1414// Define plugin constants 
    1515define( 'SU_PLUGIN_FILE', __FILE__ ); 
    16 define( 'SU_PLUGIN_VERSION', '4.10.1' ); 
     16define( 'SU_PLUGIN_VERSION', '4.10.2' ); 
    1717define( 'SU_ENABLE_CACHE', true ); 
    1818 
Note: See TracChangeset for help on using the changeset viewer.