Make WordPress Core


Ignore:
Timestamp:
10/24/2017 07:05:48 PM (8 years ago)
Author:
westonruter
Message:

Customize: Prevent theme installation and deletion in Customizer while SFTP credentials need to be requested.

This is a temporary measure while we wait for credentials to be able to be supplied in the Customizer.

Amends [41788].
See #42184, #37661, #42126.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r41977 r41997  
    594594        'scheduleDescription' => __( 'Schedule your customization changes to publish ("go live") at a future date.' ),
    595595        'themePreviewUnavailable' => __( 'Sorry, you can’t preview new themes when you have changes scheduled or saved as a draft. Please publish your changes, or wait until they publish to preview new themes.' ),
     596        'themeInstallUnavailable' => sprintf(
     597            /* translators: %s is URL to Add Themes admin screen */
     598            __( 'You won&#8217;t be able to install new themes from here yet since your install requires SFTP credentials. For now, please <a href="%s">add themes in the admin</a>.' ),
     599            esc_url( admin_url( 'theme-install.php' ) )
     600        ),
    596601    ) );
    597602    $scripts->add( 'customize-selective-refresh', "/wp-includes/js/customize-selective-refresh$suffix.js", array( 'jquery', 'wp-util', 'customize-preview' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.