WordPress.org

Plugin Directory

Changeset 455009 for feedwordpress


Ignore:
Timestamp:
10/24/11 11:32:20 (6 years ago)
Author:
radgeek
Message:

UI / Fix add-new box in dashboard widget.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • feedwordpress/trunk/feedwordpresssyndicationpage.class.php

    r453139 r455009  
    341341        endif; 
    342342         
    343         ?> 
    344         <?php 
    345343        $cont = true; 
    346344        $dispatcher = array( 
     
    353351            FWP_RESUB_CHECKED => 'multiundelete_page', 
    354352        ); 
    355         if (isset($_REQUEST['action']) and isset($dispatcher[$_REQUEST['action']])) : 
    356             $method = $dispatcher[$_REQUEST['action']]; 
     353         
     354        $act = FeedWordPress::param('action'); 
     355        if (isset($dispatcher[$act])) : 
     356            $method = $dispatcher[$act]; 
    357357            if (method_exists($this, $method)) : 
    358358                $cont = $this->{$method}(); 
     
    489489         
    490490          <?php FeedWordPressSettingsUI::magic_input_tip_js('add-uri'); ?> 
    491          
    492           <input style="vertical-align: middle;" type="image" src="<?php print WP_PLUGIN_URL.'/'.$fwp_path; ?>/plus.png" alt="<?php print FWP_SYNDICATE_NEW; ?>" name="action" value="<?php print FWP_SYNDICATE_NEW; ?>" /></div> 
     491          <input type="hidden" name="action" value="<?php print FWP_SYNDICATE_NEW; ?>" /> 
     492          <input style="vertical-align: middle;" type="image" src="<?php print WP_PLUGIN_URL.'/'.$fwp_path; ?>/plus.png" alt="<?php print FWP_SYNDICATE_NEW; ?>" /></div> 
    493493          </form> 
    494494        </div> <!-- id="add-single-uri" --> 
Note: See TracChangeset for help on using the changeset viewer.