WordPress.org

Plugin Directory

Changeset 567865


Ignore:
Timestamp:
07/05/12 15:50:01 (22 months ago)
Author:
jbrinley
Message:

get_url() shouldn't require arguments

Location:
wp-router/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-router/trunk/WP_Router.class.php

    r393086 r567865  
    9191    } 
    9292 
    93     public function get_url( $route_id, $arguments ) { 
     93    /** 
     94     * Get the URL to access the given route with the given arguments 
     95     *  
     96     * @param string $route_id 
     97     * @param array $arguments 
     98     * @return string The url to the route, or the home URL if the route doesn't exist 
     99     */ 
     100    public function get_url( $route_id, $arguments = array() ) { 
    94101        $route = $this->get_route($route_id); 
    95102        if ( !$route ) { 
  • wp-router/trunk/wp-router.php

    r393086 r567865  
    66Author: Adelie Design 
    77Author URI: http://www.adeliedesign.com/ 
    8 Version: 0.3.1 
     8Version: 0.3.2 
    99*/ 
    1010/* 
Note: See TracChangeset for help on using the changeset viewer.