WordPress.org

Plugin Directory

Changeset 171213


Ignore:
Timestamp:
11/07/09 16:32:05 (8 years ago)
Author:
lucascaro
Message:

Integrated patch from Gaël Hanquez ( https://sourceforge.net/users/caribo/ )
This patches just adds a test to replace "%252B" by "+" in the wave id.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wavr/trunk/wavr.php

    r169842 r171213  
    44Plugin URI: https://sourceforge.net/projects/wavr/ 
    55Description: Wavr is an easy way to embed google wave into wordpress. 
    6 Version: 0.2.3 
     6Version: 0.2.4 
    77Author: Lucas Caro 
    88Author URI: http://www.triplesmart.com/ 
     
    6262    $default_height = get_option('wavr_default_height'); 
    6363    $default_server = get_option('wavr_default_server'); 
    64      
     64 
    6565    $a = shortcode_atts(array( 
    6666            'bgcolor' => $default_bgcolor, 
     
    7474        ),$atts); 
    7575    $global_waves++; 
    76      
     76 
    7777    $wScript = ' 
    7878        <div id="waveframe-'.$global_waves.'" style="width:'.$a['width'].';height:'.$a['height'].';" ></div> 
    7979         <script type="text/javascript"> 
    80              
     80 
    8181                add_wave("waveframe-'.$global_waves.'",{'; 
    8282        $wScriptOpts=array(); 
    8383        foreach($a as $k=>$val){ 
     84 
     85            //This test replaces "%252B" string by "+" in the wave id attribute if needed 
     86            if($k=="id") { 
     87                $val = str_replace('%252B', '+', $val); 
     88            } 
     89 
    8490                $wScriptOpts[]=' 
    8591                    '.$k.':"'.$val.'"'; 
     
    95101 
    96102        $wScript .='        }); 
    97              
     103 
    98104        </script> 
    99105        '; 
     
    125131/*Editor Button*/ 
    126132include "mce_plugins/wave_button.php"; 
    127  
Note: See TracChangeset for help on using the changeset viewer.