Plugin Directory

Changeset 3094708


Ignore:
Timestamp:
05/29/2024 03:54:55 PM (21 months ago)
Author:
luuptek
Message:

version 0.5.1

Location:
responsive-video-embed
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • responsive-video-embed/tags/0.5.1/readme.txt

    r3004562 r3094708  
    44Tags: video, embed, responsive, youtube, vimeo, shortcode
    55Requires at least: 3.0.1
    6 Tested up to: 6.4
    7 Stable tag: 0.5
     6Tested up to: 6.5
     7Stable tag: 0.5.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212
    1313== Description ==
    14 
    15 = Non-gutenberg =
    1614
    1715Responsive video embed plugin is a lightweight and simple video embedding plugin that will create responsive video embeds to your site.
     
    31293) Using the shortcode automatically by clicking on Embed video button and typing in video embed URL and selecting aspect ratio.
    3230
    33 = Gutenberg =
    34 
    35 When Guterbeg is in use, you can use the shortcode-block to insert the shortcode.
    36 
    3731== Installation ==
    3832
     
    4943
    5044== Changelog ==
     45
     46= 0.5.1 =
     47* Escape shortcode attributes
    5148
    5249= 0.5 =
  • responsive-video-embed/tags/0.5.1/wrve.php

    r1939885 r3094708  
    33 * Plugin Name: Responsive video embed
    44 * Description: Embed videos to your content responsively.
    5  * Version: 0.5
     5 * Version: 0.5.1
    66 * Author: Luuptek
    77 * Author URI: https://www.luuptek.fi
     
    7373     */
    7474    public function embed_shortcode( $atts, $content = null ) {
    75         $src    = isset( $atts['src'] ) ? $atts['src'] : '';
    76         $ratio  = isset( $atts['ratio'] ) && ( $atts['ratio'] == '16by9' || $atts['ratio'] == '4by3' || $atts['ratio'] == '21by9' || $atts['ratio'] == '1by1' ) ? $atts['ratio'] : '16by9';
     75        $src    = isset( $atts['src'] ) ? esc_url( $atts['src'] ) : '';
     76        $ratio  = isset( $atts['ratio'] ) && ( $atts['ratio'] == '16by9' || $atts['ratio'] == '4by3' || $atts['ratio'] == '21by9' || $atts['ratio'] == '1by1' ) ? esc_attr( $atts['ratio'] ) : '16by9';
    7777        $markUp = '';
    7878
  • responsive-video-embed/trunk/readme.txt

    r3004562 r3094708  
    44Tags: video, embed, responsive, youtube, vimeo, shortcode
    55Requires at least: 3.0.1
    6 Tested up to: 6.4
    7 Stable tag: 0.5
     6Tested up to: 6.5
     7Stable tag: 0.5.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212
    1313== Description ==
    14 
    15 = Non-gutenberg =
    1614
    1715Responsive video embed plugin is a lightweight and simple video embedding plugin that will create responsive video embeds to your site.
     
    31293) Using the shortcode automatically by clicking on Embed video button and typing in video embed URL and selecting aspect ratio.
    3230
    33 = Gutenberg =
    34 
    35 When Guterbeg is in use, you can use the shortcode-block to insert the shortcode.
    36 
    3731== Installation ==
    3832
     
    4943
    5044== Changelog ==
     45
     46= 0.5.1 =
     47* Escape shortcode attributes
    5148
    5249= 0.5 =
  • responsive-video-embed/trunk/wrve.php

    r1939885 r3094708  
    33 * Plugin Name: Responsive video embed
    44 * Description: Embed videos to your content responsively.
    5  * Version: 0.5
     5 * Version: 0.5.1
    66 * Author: Luuptek
    77 * Author URI: https://www.luuptek.fi
     
    7373     */
    7474    public function embed_shortcode( $atts, $content = null ) {
    75         $src    = isset( $atts['src'] ) ? $atts['src'] : '';
    76         $ratio  = isset( $atts['ratio'] ) && ( $atts['ratio'] == '16by9' || $atts['ratio'] == '4by3' || $atts['ratio'] == '21by9' || $atts['ratio'] == '1by1' ) ? $atts['ratio'] : '16by9';
     75        $src    = isset( $atts['src'] ) ? esc_url( $atts['src'] ) : '';
     76        $ratio  = isset( $atts['ratio'] ) && ( $atts['ratio'] == '16by9' || $atts['ratio'] == '4by3' || $atts['ratio'] == '21by9' || $atts['ratio'] == '1by1' ) ? esc_attr( $atts['ratio'] ) : '16by9';
    7777        $markUp = '';
    7878
Note: See TracChangeset for help on using the changeset viewer.