X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/138998bbd8f7a1ac38b2f1eacbdf7cd522be4b13..HEAD:/wp-admin/includes/bookmark.php diff --git a/wp-admin/includes/bookmark.php b/wp-admin/includes/bookmark.php index 0d850265..cd952a7f 100644 --- a/wp-admin/includes/bookmark.php +++ b/wp-admin/includes/bookmark.php @@ -29,7 +29,7 @@ function edit_link( $link_id = 0 ) { if ( ! current_user_can( 'manage_links' ) ) { wp_die( '

' . __( 'Cheatin’ uh?' ) . '

' . - '

' . __( 'You do not have sufficient permissions to edit the links for this site.' ) . '

', + '

' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '

', 403 ); } @@ -131,11 +131,11 @@ function wp_get_link_cats( $link_id = 0 ) { * * @since 2.0.0 * - * @param int $link_id ID of link to retrieve. + * @param int|stdClass $link Link ID or object to retrieve. * @return object Link object for editing. */ -function get_link_to_edit( $link_id ) { - return get_bookmark( $link_id, OBJECT, 'edit' ); +function get_link_to_edit( $link ) { + return get_bookmark( $link, OBJECT, 'edit' ); } /** @@ -312,5 +312,5 @@ function wp_link_manager_disabled_message() { wp_die( sprintf( __( 'If you are looking to use the link manager, please install the Link Manager plugin.' ), $link ) ); } - wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) ); + wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) ); }