Plugin Directory

Changeset 586988


Ignore:
Timestamp:
08/17/2012 08:39:14 PM (14 years ago)
Author:
itsalaska
Message:
  • Page URL now works as absolute or relative link, to support multiple domains
File:
1 edited

Legend:

Unmodified
Added
Removed
  • facebook-wall-widget/trunk/facebook-wall.php

    r585489 r586988  
    44Plugin URI: http://plugins.svn.wordpress.org/facebook-wall-widget/
    55Description: Provides a widget to insert Facebook wall iFrames in any widget area.
    6 Version: 1.0
     6Version: 1.1
    77Author: ITS Alaska
    88Author URI: http://www.itscanfixthat.com/
     
    4343        $data = get_option('its_facebook_wall');
    4444        $page = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    45         if($page==$data['page']){
     45        // Patched by daniel@itsalaska.com
     46        // Allows user to specify relative link to support multiple domain names
     47        if($page==$data['page'] || $_SERVER['REQUEST_URI']==$data['page']){
    4648            echo $args['before_widget'];
    4749            ?>
Note: See TracChangeset for help on using the changeset viewer.