Changeset 2764618
- Timestamp:
- 08/01/2022 02:10:49 PM (2 years ago)
- Location:
- full-site-editing/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
full-site-editing/trunk/build_meta.txt
r2764494 r2764618 1 commit_hash= 561bd5f37dfeddb927d19b69b2147fd00a53feea2 commit_url=https://github.com/Automattic/wp-calypso/commit/ 561bd5f37dfeddb927d19b69b2147fd00a53feea3 build_number=3.383 711 commit_hash= 2 commit_url=https://github.com/Automattic/wp-calypso/commit/ 3 build_number=3.383 -
full-site-editing/trunk/full-site-editing-plugin.php
r2764494 r2764618 3 3 * Plugin Name: WordPress.com Editing Toolkit 4 4 * Description: Enhances your page creation workflow within the Block Editor. 5 * Version: 3.383 715 * Version: 3.383 6 6 * Author: Automattic 7 7 * Author URI: https://automattic.com/wordpress-plugins/ … … 43 43 * @var string 44 44 */ 45 define( 'A8C_ETK_PLUGIN_VERSION', '3.383 71' );45 define( 'A8C_ETK_PLUGIN_VERSION', '3.383' ); 46 46 47 47 // Always include these helper files for dotcom FSE. -
full-site-editing/trunk/readme.txt
r2764494 r2764618 4 4 Requires at least: 5.5 5 5 Tested up to: 6.0 6 Stable tag: 3.383 716 Stable tag: 3.383 7 7 Requires PHP: 5.6.20 8 8 License: GPLv2 or later -
full-site-editing/trunk/starter-page-templates/class-starter-page-templates.php
r2718247 r2764618 22 22 /** 23 23 * Cache key for templates array. 24 24 25 * 25 26 * @var string … … 31 32 */ 32 33 private function __construct() { 33 $this->templates_cache_key = implode(34 '_',35 array(36 'starter_page_templates',37 A8C_ETK_PLUGIN_VERSION,38 get_option( 'site_vertical', 'default' ),39 $this->get_verticals_locale(),40 )41 );42 43 34 add_action( 'init', array( $this, 'register_scripts' ) ); 44 35 add_action( 'init', array( $this, 'register_meta_field' ) ); … … 47 38 add_action( 'delete_attachment', array( $this, 'clear_sideloaded_image_cache' ) ); 48 39 add_action( 'switch_theme', array( $this, 'clear_templates_cache' ) ); 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 49 60 } 50 61 … … 201 212 */ 202 213 public function get_page_templates() { 203 $page_template_data = get_transient( $this-> templates_cache_key);214 $page_template_data = get_transient( $this-> ); 204 215 205 216 $override_source_site = apply_filters( 'a8c_override_patterns_source_site', false ); … … 235 246 // Only save to cache if we have not overridden the source site. 236 247 if ( false === $override_source_site ) { 237 set_transient( $this-> templates_cache_key, $page_template_data, DAY_IN_SECONDS );248 set_transient( $this->, $page_template_data, DAY_IN_SECONDS ); 238 249 } 239 250 … … 260 271 */ 261 272 public function clear_templates_cache() { 262 delete_transient( $this-> templates_cache_key);273 delete_transient( $this-> ); 263 274 } 264 275
Note: See TracChangeset
for help on using the changeset viewer.