Permalink
Browse files

handle_ajax should use urlresolver instead of resolve so that excepti…

…ons are caught properly
  • Loading branch information...
1 parent bcb1a96 commit 0c9baa312d025054c3b407da1f855f4748e6fa0f Ryan Nagle committed Nov 19, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 wp-plugin.php
View
@@ -67,7 +67,9 @@
// Since we're doing ajax, we've already loaded $registered_apps in
// our init callback and only need to resolve the url
- \mtv\http\resolve(get_default( $_REQUEST, 'path', ''), $ajax_url_patterns);
+ \mtv\http\urlresolver(array(
+ 'url' => get_default( $_REQUEST, 'path', ''),
+ 'url_patterns' => $ajax_url_patterns));
// That's all folks
exit;

0 comments on commit 0c9baa3

Please sign in to comment.