Plugin Directory

Changeset 643546


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

Replaced get_settings() with get_option(). The former was depriciated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • glass/trunk/glass.php

    r612967 r643546  
    8989    function addScript()
    9090    {     
    91       $file = get_settings('home')
     91      $file = get_option('home')
    9292    .'/wp-content/plugins/'
    9393    .dirname(plugin_basename(__FILE__))
     
    126126    }
    127127    /* Add basename for image URLs. */
    128     $url = get_settings('home')
     128    $url = get_option('home')
    129129      .'/wp-content/plugins/'.dirname(plugin_basename(__FILE__)) ."/";
    130130    echo "  document.myrtheGlassImgURL='$url';\n";
     
    211211    if ($path != '') {
    212212      if (!strstr($path, '/'))
    213         $path = get_settings('home')."/wp-content/plugins/glass/".$path;
     213        $path = get_option('home')."/wp-content/plugins/glass/".$path;
    214214      if (substr($path, -1) != '/')
    215215        $path .= '/';
     
    272272
    273273      /* Glass Rim Image Path. */
    274       $eg      = get_settings('home')."/wp-content/plugins/glass/spy/";
     274      $eg      = get_option('home')."/wp-content/plugins/glass/spy/";
    275275      $key     = "myrtheGlassRimPath";
    276276      $val     = $myrtheGlassOptions[$key];
Note: See TracChangeset for help on using the changeset viewer.