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

Blocks 2.13.5

  • Add header and context to search bar section
  • Add header to filter by author section
  • Header for search listings
  • Add header to pagination
  • styling to account for new elements

JIRA: FE-2673