Plugin Directory

Changeset 606872


Ignore:
Timestamp:
10/02/2012 08:15:19 AM (14 years ago)
Author:
gerhard
Message:
 
Location:
ninja-embed-plugin/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ninja-embed-plugin/trunk/ninja_embed_plugin.php

    r516048 r606872  
    44Plugin URI: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/
    55Description: This plugin allows you to filter media links from YouTube, Vimeo, Yahoo Video and Soundcloud and also allows for shortcodes in posts e.g. [media width="400" height="225" link="http://www.vimeo.com/12345"]. In the code it can be called like this: media_embed($mediaurl, $width, $height, $container[true/false]). For both methods Width and height is to change player dimentions and is optional. The plugin also comes with a widget to allow you to easily embed media in your sidebar.
    6 Version: 2.0
     6Version: 2.1
    77Author: Ninjas for Hire
    88Author URI: http://www.ninjasforhire.co.za
     
    136136        ), $atts));
    137137       
    138         if (!ereg("[[:digit:]]", $width)) {
     138       
     139       
     140        if (!ctype_digit($width)) {
    139141            $width = '';
    140142        }
    141         if (!ereg("[[:digit:]]", $height)) {
     143        if (!ctype_digit($height)) {
    142144            $height = '';
    143145        }
  • ninja-embed-plugin/trunk/readme.txt

    r516051 r606872  
    77Donate link: http://blog.ninjasforhire.co.za/65/ninja-embed-wordpress-plugin/
    88Requires at least: 3.2.1
    9 Tested up to: 3.3.1
     9Tested up to: 3.4.2
    1010Stable tag: trunk
    1111
     
    3232
    3333== Changelog ==
     34
     35= 2.1 =
     36* Fixed deprecated function.
    3437
    3538= 2.0 =
Note: See TracChangeset for help on using the changeset viewer.