~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/bookmark.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        if ( ! current_user_can( 'manage_links' ) ) {
30
30
                wp_die(
31
31
                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
32
 
                        '<p>' . __( 'You do not have sufficient permissions to edit the links for this site.' ) . '</p>',
 
32
                        '<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>',
33
33
                        403
34
34
                );
35
35
        }
131
131
 *
132
132
 * @since 2.0.0
133
133
 *
134
 
 * @param int $link_id ID of link to retrieve.
 
134
 * @param int|stdClass $link Link ID or object to retrieve.
135
135
 * @return object Link object for editing.
136
136
 */
137
 
function get_link_to_edit( $link_id ) {
138
 
        return get_bookmark( $link_id, OBJECT, 'edit' );
 
137
function get_link_to_edit( $link ) {
 
138
        return get_bookmark( $link, OBJECT, 'edit' );
139
139
}
140
140
 
141
141
/**
312
312
                wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) );
313
313
        }
314
314
 
315
 
        wp_die( __( 'You do not have sufficient permissions to edit the links for this site.' ) );
 
315
        wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
316
316
}