﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
19248	menu_page_url() should return unencoded URL, and echo encoded URL	nathanrice		"See #18274

`menu_page_url()` should use `esc_url_raw()` when returning, and use `esc_url` when echoing.

Use case:
Let's say you created a custom post type (with its own menu) called `restaurant`, and you want to put a settings submenu under the top level `restaurant` menu.

{{{
$menu = menu_page_url( 'restaurant-settings', 0 );
// Unencoded http://example.com/wp-admin/edit.php?post_type=restaurant&page=restaurant-settings
// Encoded http://example.com/wp-admin/edit.php?post_type=restaurant&#038;page=restaurant-settings

add_query_arg( 'reset', 'true', $menu );
}}}

If `$menu` is encoded, it can't be passed to `add_query_arg()`, see #18274."	defect (bug)	closed	normal		Plugins	3.0	normal	invalid	has-patch	
