Make WordPress Core


Ignore:
Timestamp:
09/19/2017 12:45:23 AM (7 years ago)
Author:
westonruter
Message:

Customize: Show notification error with "Your homepage displays" control when homepage and posts page are set to be the same (but not empty).

  • Show global error notiafication when saving is blocked due to client-side setting invalidity.
  • Refactor wp.customize.Notifications#render() to ensure a notification re-renders if its message or data changes but its code does not.

Props MatheusGimenez, sixhours, westonruter, karmatosed, aocean90, zoonini, michelleweber, melchoyce.
See #35210.
Fixes #21492.

File:
1 edited

Legend:

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

    r41376 r41389  
    571571            array( 'singular', 'plural' )
    572572        ),
     573        'pageOnFrontError' => __( 'Homepage and posts page must be different.' ),
     574        'saveBlockedError' => wp_array_slice_assoc(
     575            /* translators: placeholder is error count */
     576            _n_noop( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.' ),
     577            array( 'singular', 'plural' )
     578        ),
    573579    ) );
    574580    $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.