diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index c1a7896589..a8ca1d527b 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -758,7 +758,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); check_admin_referer( 'custom-header-upload', '_wpnonce-custom-header-upload' ); if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_die( - '
' . __( 'The current theme does not support uploading a custom header image.' ) . '
', 403 ); @@ -922,7 +922,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) { wp_die( - '' . __( 'The current theme does not support uploading a custom header image.' ) . '
', 403 ); @@ -930,7 +930,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); if ( ! empty( $_POST['skip-cropping'] ) && ! ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) { wp_die( - '' . __( 'The current theme does not support a flexible sized header image.' ) . '
', 403 ); diff --git a/wp-admin/customize.php b/wp-admin/customize.php index e54e2170bb..0101ee25a7 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -14,7 +14,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'customize' ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to customize this site.' ) . '
', 403 ); @@ -31,7 +31,7 @@ if ( $wp_customize->changeset_post_id() ) { if ( ! current_user_can( get_post_type_object( 'customize_changeset' )->cap->edit_post, $changeset_post->ID ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to edit this changeset.' ) . '
', 403 ); @@ -76,7 +76,7 @@ if ( $wp_customize->changeset_post_id() ) { if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) { wp_die( - '' . __( 'This changeset cannot be further modified.' ) . '
' . '' . __( 'Customize New Changes' ) . '
', 403 diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 85c04ead57..6b2d4af1be 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -10,7 +10,7 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'edit_posts' ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to edit comments.' ) . '
', 403 ); diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index c49b61b2cb..41e63abd43 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -25,7 +25,7 @@ if ( ! in_array( $tax->name, get_taxonomies( array( 'show_ui' => true ) ) ) ) { if ( ! current_user_can( $tax->cap->manage_terms ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to manage terms in this taxonomy.' ) . '
', 403 ); @@ -81,7 +81,7 @@ switch ( $wp_list_table->current_action() ) { if ( ! current_user_can( $tax->cap->edit_terms ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to create terms in this taxonomy.' ) . '
', 403 ); @@ -111,7 +111,7 @@ switch ( $wp_list_table->current_action() ) { if ( ! current_user_can( 'delete_term', $tag_ID ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to delete this item.' ) . '
', 403 ); @@ -131,7 +131,7 @@ switch ( $wp_list_table->current_action() ) { if ( ! current_user_can( $tax->cap->delete_terms ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to delete these items.' ) . '
', 403 ); @@ -167,7 +167,7 @@ switch ( $wp_list_table->current_action() ) { if ( ! current_user_can( 'edit_term', $tag_ID ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to edit this item.' ) . '
', 403 ); diff --git a/wp-admin/edit.php b/wp-admin/edit.php index f629734c18..a05d369e1d 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -38,7 +38,7 @@ if ( ! $post_type_object ) { if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to edit posts in this post type.' ) . '
', 403 ); diff --git a/wp-admin/includes/bookmark.php b/wp-admin/includes/bookmark.php index 285d716c2a..571dff3c3b 100644 --- a/wp-admin/includes/bookmark.php +++ b/wp-admin/includes/bookmark.php @@ -28,7 +28,7 @@ function add_link() { function edit_link( $link_id = 0 ) { if ( ! current_user_can( 'manage_links' ) ) { wp_die( - '' . __( 'Sorry, you are not allowed to edit the links for this site.' ) . '
', 403 ); diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index fe05085dd8..2b1c5b1864 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -591,7 +591,7 @@ function wp_edit_theme_plugin_file( $args ) { } if ( ! isset( $result['message'] ) ) { - $message = __( 'An unidentified error has occurred.' ); + $message = __( 'An error has occurred.' ); } else { $message = $result['message']; unset( $result['message'] ); diff --git a/wp-admin/js/customize-controls.js b/wp-admin/js/customize-controls.js index 785fc7f895..4e3da867a7 100644 --- a/wp-admin/js/customize-controls.js +++ b/wp-admin/js/customize-controls.js @@ -6836,7 +6836,7 @@ cheatin: function() { $( document.body ).empty().addClass( 'cheatin' ).append( - '' + api.l10n.notAllowed + '
' ); }, diff --git a/wp-admin/js/customize-controls.min.js b/wp-admin/js/customize-controls.min.js index d42ad4d4c1..b943480534 100644 --- a/wp-admin/js/customize-controls.min.js +++ b/wp-admin/js/customize-controls.min.js @@ -1,4 +1,4 @@ !function(a,b){var c,d,e,f=wp.customize;f.OverlayNotification=f.Notification.extend({loading:!1,initialize:function(a,b){var c=this;f.Notification.prototype.initialize.call(c,a,b),c.containerClasses+=" notification-overlay",c.loading&&(c.containerClasses+=" notification-loading")},render:function(){var a=f.Notification.prototype.render.call(this);return a.on("keydown",_.bind(this.handleEscape,this)),a},handleEscape:function(a){var b=this;27===a.which&&(a.stopPropagation(),b.dismissible&&b.parent&&b.parent.remove(b.code))}}),f.Notifications=f.Values.extend({alt:!1,defaultConstructor:f.Notification,initialize:function(a){var b=this;f.Values.prototype.initialize.call(b,a),_.bindAll(b,"constrainFocus"),b._addedIncrement=0,b._addedOrder={},b.bind("add",function(a){b.trigger("change",a)}),b.bind("removed",function(a){b.trigger("change",a)})},count:function(){return _.size(this._value)},add:function(a,b){var c,d,e=this;return"string"==typeof a?(c=a,d=b):(c=a.code,d=a),e.has(c)||(e._addedIncrement+=1,e._addedOrder[c]=e._addedIncrement),f.Values.prototype.add.call(e,c,d)},remove:function(a){var b=this;return delete b._addedOrder[a],f.Values.prototype.remove.call(this,a)},get:function(a){var b,c,d,e=this;return b=_.values(e._value),d=_.extend({sort:!1},a),d.sort&&(c={error:4,warning:3,success:2,info:1},b.sort(function(a,b){var d=0,f=0;return _.isUndefined(c[a.type])||(d=c[a.type]),_.isUndefined(c[b.type])||(f=c[b.type]),d!==f?f-d:e._addedOrder[b.code]-e._addedOrder[a.code]})),b},render:function(){var a,c,d,e,g=this,h=!1,i=[],j={};g.container&&g.container.length&&(a=g.get({sort:!0}),g.container.toggle(0!==a.length),g.container.is(g.previousContainer)&&_.isEqual(a,g.previousNotifications)||(d=g.container.children("ul").first(),d.length||(d=b("