WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/24/2017 10:28:56 PM (3 years ago)
Author:
SergeyBiryukov
Message:

I18N: Replace code fragments in translatable strings for rest_trash_not_supported errors with a placeholder.

Props ramiy.
Fixes #41643.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

    r41162 r41588  
    811811            // If this type doesn't support trashing, error out.
    812812            if ( ! $supports_trash ) {
    813                 return new WP_Error( 'rest_trash_not_supported', __( 'The comment does not support trashing. Set force=true to delete.' ), array( 'status' => 501 ) );
     813                /* translators: %s: force=true */
     814                return new WP_Error( 'rest_trash_not_supported', sprintf( __( "The comment does not support trashing. Set '%s' to delete." ), 'force=true' ), array( 'status' => 501 ) );
    814815            }
    815816
Note: See TracChangeset for help on using the changeset viewer.