Blocks 2.14.0

  • Migrated all plugin CSS into new stylesheet, blocks_plugins.css
  • Loaded blocks_plugins.css stylesheet asynchronously with wpc_load_async_styles()
  • Moved all blocks’ and block widgets’ CSS into own stylesheets to optimise style loading
  • Added globals.php file, containing $style_tags global array for inline <style> tag loading
  • Added wpc_insert_tag() loader to all block (and block widget) templates
    • Adds inline <style> tags containing each block’s styles
    • Checks $style_tags global to ensure non-repetitive loading
  • Added wpc_insert_tag() loader to template parts:
    • Gallery
    • Premium – Default
    • Premium – Main
  • Refactored shared block styles for independent styling:
    • Full Width Posts
    • Top Stories With Sections
  • Removed blocks_layouts.css (old blocks styles)
  • Minor CSS migrations and updates

Jira: NP-766; NP-764

WordPress Cluster 9.3.60

  • MU Plugins updated:
    • Optimisation 1.0.2
      • Added wpc_insert_tag() function for <style>/<script> tag insertion in templates (with optional minification)
      • Added wpc_load_async_styles() function for aynschronous stylesheet loading
  • Themes updated:
    • Blocks 2.14.0
      • Migrated all plugin CSS into new stylesheet, blocks_plugins.css
      • Loaded blocks_plugins.css stylesheet asynchronously with wpc_load_async_styles()
      • Moved all blocks’ and block widgets’ CSS into own stylesheets to optimise style loading
      • Added globals.php file, containing $style_tags global array for inline <style> tag loading
      • Added wpc_insert_tag() loader to all block (and block widget) templates
        • Adds inline <style> tags containing each block’s styles
        • Checks $style_tags global to ensure non-repetitive loading
      • Added wpc_insert_tag() loader to template parts:
        • Gallery
        • Premium – Default
        • Premium – Main
      • Refactored shared block styles for independent styling:
        • Full Width Posts
        • Top Stories With Sections
      • Removed blocks_layouts.css (old blocks styles)
      • Minor CSS migrations and updates
    • The Courier 4.3.13
      • Updated styling for refactor
    • Press and Journal 4.3.14
      • Updated styling for refactor
      • Removed old Puzzler application:
        • Files, folders and assets
        • Integration functions in child theme
    • Evening Express 4.4.11
      • Updated styling for refactor
    • Evening Telegraph 4.3.11
      • Updated styling for refactor
    • Sunday Post 4.1.14
      • Updated styling for refactor
      • Removed old Puzzler application:
        • Files, folders and assets
        • Integration functions in child theme
    • Energy Voice 5.1.24
      • Updated styling for refactor

Jira: NP-766; NP-764

WordPress Cluster 9.3.56

  • VVV Changes
    • phpmd is now a supported project again, so we download latest version as part of provision
    • don’t enable es service by default (JVM is quite heavy and not needed for day to day)
    • update VVV scripts to latest plugins needed
    • update local superadmins
    • disable wordfence by default
    • various small updates to bin/ scripts
    • exclude some paths as libraries in phpstorm config
  • Plugins updated:
    • Blaize 1.23.5
      • Added Request a Receipt functionality to active subscriptions:
        • Added new WYSIWYG field to Shortcodes ACF
        • Added shortcode [blaize-request-receipt]
        • CSS fixes

Jira: NP-866

WordPress Cluster 9.3.55

  • Plugins updated:
    • Blaize 1.23.4
      • Removed CSS margin bug
    • Advertising 2.1.8 (Remove prebid functionality)
  • Themes updated:
    • Subscription Manager 1.0.15
      • Prevented MU Plugin advertising.php JS contents from loading via filter
      • PHP ‘beautification’

Jira: CORE-2485

WordPress Cluster 9.3.50

  • MU Plugins updated:
    • Added Theme Features JS directory:
      • Contains reusable copies of globally-used JS files and plugins
        • HTML5 Shiv
        • jQuery Cookie
        • jQuery Cycle2
        • jQuery Cycle2 Carousel
        • jQuery Loading Overlay
        • jQuery Validate
      • Added wpc_js_register_scripts() function for global JS plugin registration
        • Enables easier enqueueing later with wp_enqueue_script()
      • Advertising
        • Added checks around advertising variables to prevent common errors.
      • Template Tags
        • Added wpc functions to display icons and social media profiles
          • wpc_the_icon()
          • wpc_get_icon()
          • wpc_the_social_links()
    • Optimisation 1.0.1
      • Added wpc_load_async_scripts() function:
        • Enables async / defer loading of script tags
        • Enables pre-fetch (e.g. dns-prefetch, dns-preconnect) loading of script tags
    • Moved old theme feature script enqueues into Theme Features JS, and removed old MU Plugin partials:
      • jQuery Cookie (sso.php)
      • jQuery Cycle2 (cycle2.php)
      • jQuery Cycle2 Carousel (cycle2.php)
      • HTML5 Shiv (html5-shiv.php)
  • Plugins updated:
    • Blaize 1.23.3
      • Added defer/dns-prefetch to enqueued script:
        • Braintree Dropin
      • Merged blaize-accordion.js into blaize.js; removed old script
      • Reviewed script enqueues
      • Removed copies of script files from plugin.
    • DCT CTA 1.1.7
      • Added checks around CTA fields.
  • Themes updated:
    • Blocks 2.13.0
      • Added defer/dns-prefetch to enqueued scripts:
        • jQuery Cookie
        • jQuery Cycle2
        • jQuery Cycle2 Carousel

Jira: NP-783, MAG-11