WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 18 months ago

#42269 closed enhancement (fixed)

i18n: Unify permission error messages for content import/export

Reported by: ramiy Owned by: SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Text Changes Keywords: has-patch has-screenshots
Focuses: Cc:

Description

This patch fixes the error message displayed when we check whether the current_user_can( 'import' ) or current_user_can( 'export' ).

Attachments (2)

42269.png (83.4 KB) - added by ramiy 3 years ago.
42269.patch (601 bytes) - added by ramiy 3 years ago.

Download all attachments as: .zip

Change History (8)

@ramiy
3 years ago

@ramiy
3 years ago

#1 @ramiy
3 years ago

  • Keywords has-patch has-screenshots added

#2 @ramiy
3 years ago

Should be:

  • Sorry, you are not allowed to export content.
  • Sorry, you are not allowed to import content.

#3 @ocean90
3 years ago

  • Component changed from I18N to Text Changes
  • Type changed from defect (bug) to enhancement

#4 @ramiy
3 years ago

Good catch!
What text do you suggest to use in this case?

#5 @SergeyBiryukov
18 months ago

  • Milestone changed from Awaiting Review to 5.3

#6 @SergeyBiryukov
18 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 45440:

I18N: Use consistent error messages when importing or exporting content.

Props ramiy.
Fixes #42269.

Note: See TracTickets for help on using tickets.