Make WordPress Core

Ticket #34521: 34521-text-change-bookmarks.patch

File 34521-text-change-bookmarks.patch, 1.6 KB (added by ramiy, 8 years ago)

Text change: edit links

  • wp-admin/includes/bookmark.php

     
    2929        if ( ! current_user_can( 'manage_links' ) ) {
    3030                wp_die(
    3131                        '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
    32                         '<p>' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '</p>',
     32                        '<p>' . __( 'Sorry, you are not allowed to edit links.' ) . '</p>',
    3333                        403
    3434                );
    3535        }
     
    312312                wp_die( sprintf( __( 'If you are looking to use the link manager, please install the <a href="%s">Link Manager</a> plugin.' ), $link ) );
    313313        }
    314314
    315         wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
     315        wp_die( __( 'Sorry, you are not allowed to edit links.' ) );
    316316}
  • wp-admin/link-manager.php

     
    99/** Load WordPress Administration Bootstrap */
    1010require_once( dirname( __FILE__ ) . '/admin.php' );
    1111if ( ! current_user_can( 'manage_links' ) )
    12         wp_die( __( 'Sorry, you are not allowed to edit the links for this site.' ) );
     12        wp_die( __( 'Sorry, you are not allowed to edit links.' ) );
    1313
    1414$wp_list_table = _get_list_table('WP_Links_List_Table');
    1515
     
    6868include_once( ABSPATH . 'wp-admin/admin-header.php' );
    6969
    7070if ( ! current_user_can('manage_links') )
    71         wp_die(__('Sorry, you are not allowed to edit the links for this site.'));
     71        wp_die(__('Sorry, you are not allowed to edit links.'));
    7272
    7373?>
    7474