From 79da5c32a99ff74b069ebe09c2f01dac3b4193f3 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@8478 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 = '' ) {