Plugin Directory

Changeset 188207


Ignore:
Timestamp:
12/30/2009 04:58:10 PM (16 years ago)
Author:
divinenephron
Message:

URLs with queries in are now supported (the query is just ignored).

Location:
picasa-picture-embed
Files:
2 edited
7 copied

Legend:

Unmodified
Added
Removed
  • picasa-picture-embed/tags/1.1.0/picasaweb-embed.php

    r188114 r188207  
    33 * @package Picasaweb_Embed
    44 * @author Devon Buchanan
    5  * @version 1.0
     5 * @version 1.1
    66 */
    77/*
     
    1010Description: A plugin that allows you to embed picasa photos with the Wordpress 2.9 embedding feature. Include the url of the photo on a line of its own or between [embed] tags and the photo will be embedded.
    1111Author: Devon Buchanan
    12 Version: 1.0
     12Version: 1.1
    1313Author URI: http://www.srcf.ucam.org/~db505/
    1414*/
     
    4848        // After a post is saved, invalidate the oEmbed cache
    4949        add_action( 'save_post', array(&$this, 'delete_picasaweb_caches') );
    50     wp_embed_register_handler( 'picasaweb', '|http://picasaweb\.google\.(?P<tld>[A-Za-z.]{2,5})/(?P<username>\w+?)/(?P<albumname>\w+?)#(?P<photoid>\d+)|i', array(&$this, 'handler'));
     50    wp_embed_register_handler( 'picasaweb', '|http://picasaweb\.google\.(?P<tld>[A-Za-z.]{2,5})/(?P<username>\w+?)/(?P<albumname>\w+?)(\?[^#]*)?#(?P<photoid>\d+)|i', array(&$this, 'handler'));
    5151    $this->picasaweb = new Zend_Gdata_Photos();
    5252        // handler() is dependant on the array being in ascending order
  • picasa-picture-embed/tags/1.1.0/readme.txt

    r188114 r188207  
    44Requires at least: 2.9
    55Tested up to: 2.9
    6 Stable tag: 1.0.1
     6Stable tag: 1.1.0
    77
    88A plugin that allows you to embed picasa photos into your posts with the Wordpress 2.9 embedding feature.
     
    37371. Are you using Wordpress > 2.9?
    38382. Have you enabled auto embeds in the `Settings -> Media` page?
    39 3. Have you used the right url -- only urls in the form `http://picasaweb.google.com/{user}/{album}#{photo}` are supported (e.g. `http://picasaweb.google.com/linmep/PicAutumn09#5410318127990876210`)?
    40393. Is the image you're trying to embed visible to the public?
     404. Have you used the right url -- only urls in the form `http://picasaweb.google.com/{user}/{album}#{photo}` are supported (e.g. `http://picasaweb.google.com/linmep/PicAutumn09#5410318127990876210`). Search URLs (e.g. `http://picasaweb.google.com/lh/view?q=leaf&psc=G&filter=1#5325823428363864770`) don't work.
    4141
    4242If you can answer "yes" to the above the plugin may indeed be broken.
     
    5757* Automatically chooses the largest necessary size for the photo based on the `width` and `height` attributes
    5858
     59= 1.1 =
     60* Added support for urls with queries (e.g. `http://picasaweb.google.com/missyann63/PicAutumn09?feat=featured#5409726203440714818`). Note the `?feat=featured`.
     61
    5962== Upgrade Notice ==
    6063
  • picasa-picture-embed/trunk/picasaweb-embed.php

    r188114 r188207  
    33 * @package Picasaweb_Embed
    44 * @author Devon Buchanan
    5  * @version 1.0
     5 * @version 1.1
    66 */
    77/*
     
    1010Description: A plugin that allows you to embed picasa photos with the Wordpress 2.9 embedding feature. Include the url of the photo on a line of its own or between [embed] tags and the photo will be embedded.
    1111Author: Devon Buchanan
    12 Version: 1.0
     12Version: 1.1
    1313Author URI: http://www.srcf.ucam.org/~db505/
    1414*/
     
    4848        // After a post is saved, invalidate the oEmbed cache
    4949        add_action( 'save_post', array(&$this, 'delete_picasaweb_caches') );
    50     wp_embed_register_handler( 'picasaweb', '|http://picasaweb\.google\.(?P<tld>[A-Za-z.]{2,5})/(?P<username>\w+?)/(?P<albumname>\w+?)#(?P<photoid>\d+)|i', array(&$this, 'handler'));
     50    wp_embed_register_handler( 'picasaweb', '|http://picasaweb\.google\.(?P<tld>[A-Za-z.]{2,5})/(?P<username>\w+?)/(?P<albumname>\w+?)(\?[^#]*)?#(?P<photoid>\d+)|i', array(&$this, 'handler'));
    5151    $this->picasaweb = new Zend_Gdata_Photos();
    5252        // handler() is dependant on the array being in ascending order
  • picasa-picture-embed/trunk/readme.txt

    r188114 r188207  
    44Requires at least: 2.9
    55Tested up to: 2.9
    6 Stable tag: 1.0.1
     6Stable tag: 1.1.0
    77
    88A plugin that allows you to embed picasa photos into your posts with the Wordpress 2.9 embedding feature.
     
    37371. Are you using Wordpress > 2.9?
    38382. Have you enabled auto embeds in the `Settings -> Media` page?
    39 3. Have you used the right url -- only urls in the form `http://picasaweb.google.com/{user}/{album}#{photo}` are supported (e.g. `http://picasaweb.google.com/linmep/PicAutumn09#5410318127990876210`)?
    40393. Is the image you're trying to embed visible to the public?
     404. Have you used the right url -- only urls in the form `http://picasaweb.google.com/{user}/{album}#{photo}` are supported (e.g. `http://picasaweb.google.com/linmep/PicAutumn09#5410318127990876210`). Search URLs (e.g. `http://picasaweb.google.com/lh/view?q=leaf&psc=G&filter=1#5325823428363864770`) don't work.
    4141
    4242If you can answer "yes" to the above the plugin may indeed be broken.
     
    5757* Automatically chooses the largest necessary size for the photo based on the `width` and `height` attributes
    5858
     59= 1.1 =
     60* Added support for urls with queries (e.g. `http://picasaweb.google.com/missyann63/PicAutumn09?feat=featured#5409726203440714818`). Note the `?feat=featured`.
     61
    5962== Upgrade Notice ==
    6063
Note: See TracChangeset for help on using the changeset viewer.