WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/25/2020 03:59:01 PM (3 months ago)
Author:
SergeyBiryukov
Message:

I18N: Move code out of a translatable string in WP_Customize_Manager::customize_preview_init().

Props ramiy.
Fixes #50760.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r48590 r48609  
    19081908         */
    19091909        if ( $this->messenger_channel && ! current_user_can( 'customize' ) ) {
    1910             $this->wp_die( -1, __( 'Unauthorized. You may remove the customize_messenger_channel param to preview as frontend.' ) );
     1910            $this->wp_die(
     1911                -1,
     1912                sprintf(
     1913                    /* translators: %s: customize_messenger_channel */
     1914                    __( 'Unauthorized. You may remove the %s param to preview as frontend.' ),
     1915                    '<code>customize_messenger_channel<code>'
     1916                )
     1917            );
    19111918            return;
    19121919        }
     
    39013908                __( 'Removing %1$s manually will cause PHP warnings. Use the %2$s filter instead.' ),
    39023909                $id,
    3903                 '<a href="' . esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ) . '"><code>customize_loaded_components</code></a>'
     3910                sprintf(
     3911                    '<a href="%1$s">%2$s</a>',
     3912                    esc_url( 'https://developer.wordpress.org/reference/hooks/customize_loaded_components/' ),
     3913                    '<code>customize_loaded_components</code>'
     3914                )
    39043915            );
    39053916
Note: See TracChangeset for help on using the changeset viewer.