From 7339da643f75bf18a0e786f9c8b2d97cb30cc897 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 28 Jul 2008 23:39:15 +0000 Subject: [PATCH] Pass context to get_edit_post_link filter. Props mdawaffe. fixes #7424 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@8478 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 76012ce2a7..a1286a9cd0 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -479,7 +479,7 @@ function get_edit_post_link( $id = 0, $context = 'display' ) { break; endswitch; - return apply_filters( 'get_edit_post_link', admin_url("$file.php?{$action}$var=$post->ID"), $post->ID ); + return apply_filters( 'get_edit_post_link', admin_url("$file.php?{$action}$var=$post->ID"), $post->ID, $context ); } function edit_post_link( $link = 'Edit This', $before = '', $after = '' ) {