WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/20/2008 06:01:43 PM (14 years ago)
Author:
ryan
Message:

Some URL cleaning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r7911 r7962  
    217217            $sidebar_widget_name = $wp_registered_widget_controls[$widget_id]['name'];
    218218            $params[1] = 'wp_dashboard_trigger_widget_control';
    219             $sidebar_before_widget .= '<form action="' . remove_query_arg( 'edit' )  . '" method="post">';
     219            $sidebar_before_widget .= '<form action="' . clean_url(remove_query_arg( 'edit' ))  . '" method="post">';
    220220            $sidebar_after_widget   = "<div class='dashboard-widget-submit'><input type='hidden' name='sidebar' value='wp_dashboard' /><input type='hidden' name='widget_id' value='$widget_id' /><input type='submit' value='" . __( 'Save' ) . "' /></div></form>$sidebar_after_widget";
    221             $links[] = '<a href="' . remove_query_arg( 'edit' ) . '">' . __( 'Cancel' ) . '</a>';
     221            $links[] = '<a href="' . clean_url(remove_query_arg( 'edit' )) . '">' . __( 'Cancel' ) . '</a>';
    222222        } else {
    223             $links[] = '<a href="' . add_query_arg( 'edit', $widget_id ) . "#$widget_id" . '">' . __( 'Edit' ) . '</a>';
     223            $links[] = '<a href="' . clean_url(add_query_arg( 'edit', $widget_id )) . "#$widget_id" . '">' . __( 'Edit' ) . '</a>';
    224224        }
    225225    }
Note: See TracChangeset for help on using the changeset viewer.