Skip to content

Commit

Permalink
Revert "New Page Layout Picker: refresh page pattern cache when site …
Browse files Browse the repository at this point in the history
…lang changes (#51087)" (#51120)

This reverts commit dc7c845.
  • Loading branch information
p-jackson authored Mar 16, 2021
1 parent dc7c845 commit 973e4ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,7 @@ function load_timeline_block() {
function load_common_module() {
require_once __DIR__ . '/common/index.php';
}
// Use a custom priority so that the common code is loaded before any of
// the other modules. This way it can be called very early in the other
// modules (e.g. during `__construct`). The default priority is 10, so
// using 9 to load just before.
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_common_module', 9 );
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_common_module' );

/**
* Load Editor Site Launch.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private function __construct() {
'starter_page_templates',
A8C_ETK_PLUGIN_VERSION,
get_option( 'site_vertical', 'default' ),
$this->get_verticals_locale(),
get_locale(),
)
);

Expand Down

0 comments on commit 973e4ce

Please sign in to comment.