Plugin Directory

Changeset 643553


Ignore:
Timestamp:
12/22/2012 11:21:17 PM (13 years ago)
Author:
codeblab
Message:

Replaced depriciated calls to get_settings() with get_option() to prevent problems with newer version of wordpress.

Location:
glass/tags/1.3.1
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • glass/tags/1.3.1/Makefile

    r480791 r643553  
    1 ZIP=glass_v0_9.zip
     1ZIP=glass_v131.zip
    22PACK=glass.js glass.php readme.txt rim/rim* spy/spy*
    33
  • glass/tags/1.3.1/glass.js

    r612443 r643553  
    2323// Description: Yet an other magnifying glass implementation.
    2424// Author: Jan-Mark Wams (jms@cs.vu.nl)
    25 // Version: 1.3
     25// Version: 1.3.1
    2626// Author URI: http://www.codeblab.com/
    2727// License: GPL3
  • glass/tags/1.3.1/glass.php

    r612275 r643553  
    55Description: Glass adds a magnifying glass to your images.
    66Author: Jan-Mark Wams
    7 Version: 1.3
     7Version: 1.3.1
    88Author URI: http://codeblab.com/
    99License: GPL3
     
    8383    function addScript()
    8484    {     
    85       $file = get_settings('home')
     85      $file = get_option('home')
    8686    .'/wp-content/plugins/'
    8787    .dirname(plugin_basename(__FILE__))
    8888    .'/glass.js';
    89       wp_enqueue_script('glass', $file, false, '1.3');
     89      wp_enqueue_script('glass', $file, false, '1.3.1');
    9090    }
    9191   
     
    105105        echo "  document.$key='$value';\n";
    106106    /* Add basename for image URLs. */
    107     $url = get_settings('home')
     107    $url = get_option('home')
    108108      .'/wp-content/plugins/'.dirname(plugin_basename(__FILE__)) ."/";
    109109    echo "  document.myrtheGlassImgURL='$url';\n";
     
    188188    if ($path != '') {
    189189      if (!strstr($path, '/'))
    190         $path = get_settings('home')."/wp-content/plugins/glass/".$path;
     190        $path = get_option('home')."/wp-content/plugins/glass/".$path;
    191191      if (substr($path, -1) != '/')
    192192        $path .= '/';
     
    249249
    250250      /* Glass Rim Image Path. */
    251       $eg      = get_settings('home')."/wp-content/plugins/glass/spy/";
     251      $eg      = get_option('home')."/wp-content/plugins/glass/spy/";
    252252      $key     = "myrtheGlassRimPath";
    253253      $val     = $myrtheGlassOptions[$key];
  • glass/tags/1.3.1/readme.txt

    r612450 r643553  
    44Tags: loupe, magnifying glass, spyglass, looking glass, glass, zoom, enlarge, image, images, gallery, galleries, photo, photos, picture, pictures, simple microscope, hand glass, light microscope, jeweler's loupe
    55Requires at least: 3.0.0
    6 Tested up to: 3.3
    7 Stable tag: 1.3
     6Tested up to: 3.5
     7Stable tag: 1.3.1
    88License: GPL3
    99
     
    5353== Installation ==
    5454
    55 1. Upload glass.1.3.zip to the `/wp-content/plugins/` directory.
    56 1. Unpack glass.1.3.zip, optionally remove it after unpacking.
     551. Upload glass.1.3.1.zip to the `/wp-content/plugins/` directory.
     561. Unpack glass.1.3.1.zip, optionally remove it after unpacking.
    57571. Activate the plugin through the 'Plugins' menu in WordPress
    5858
     
    210210== Changelog ==
    211211
     212= 1.3.1 =
     213* Replaced depreciated get_settings('home') calls with get_option('home').
     214
    212215= 1.3 =
    213216* Fixed displaced glass image with some browsers and some themes.
     
    233236== Upgrade Notice ==
    234237
     238= 1.3.1 =
     239Fixed possible error when using a non default home location. If glass is
     240working it is only advised to use this version. First timers and if glass
     241stops working after moving the home location, do update.
     242
    235243= 1.3 =
    236244Fixed displaced (or gray) glass image. Works with all tested browsers and all
Note: See TracChangeset for help on using the changeset viewer.