Changeset 13814
- Timestamp:
- 03/25/2010 10:00:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r13774 r13814 1916 1916 * 1917 1917 * @param string $path Optional path relative to the admin url 1918 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. 1918 1919 * @return string Admin url link with optional path appended 1919 1920 */ 1920 function admin_url( $path = '' ) {1921 return get_admin_url(null, $path );1921 function admin_url( $path = '', $scheme = 'admin' ) { 1922 return get_admin_url(null, $path, $scheme); 1922 1923 } 1923 1924 … … 1930 1931 * @param int $blog_id (optional) Blog ID. Defaults to current blog. 1931 1932 * @param string $path Optional path relative to the admin url 1933 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. 1932 1934 * @return string Admin url link with optional path appended 1933 1935 */ 1934 function get_admin_url( $blog_id = null, $path = '' ) {1935 $url = get_site_url($blog_id, 'wp-admin/', 'admin');1936 function get_admin_url( $blog_id = null, $path = '', $scheme = 'admin' ) { 1937 $url = get_site_url($blog_id, 'wp-admin/', $scheme); 1936 1938 1937 1939 if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
Note: See TracChangeset
for help on using the changeset viewer.