Skip to main content

4 posts tagged with "Content Protection"

Content Protection improvements

View All Tags

1.14.0 - Local Time Block, Bug Fixes

· One min read
Konstantin Brazhnik
Senior Full Stack Engineer @ Yoko Co
Léo Muniz
Senior Full Stack Engineer @ Yoko Co

Adds Local Time Gutenberg block. Adds allowed-role-[ROLE SLUG] classes to gated posts' body classes. Multisite site admins can add SVGs. Local Time Gutenberg block based on the [local_time] shortcode.

ADDS

  • [Local Time Block] Adds the native Gutenberg block "Local Time" to allow times to be converted from one timezone to another and/or to the browser's timezone. Uses the Local Time shortcode to render the block.
  • [Local Time Shortcode Docs] Flushes out the local time shortcode attribute documentation.
  • [Content Gating Role Classes] Adds allowed-role-[ROLE SLUG] classes to gated posts' body classes for personalization.

FIXES

  • **[Multisite] Multisite site admins (not super admins) can now add SVGs. This was added to make it possible for site admins to use The Icon Block Gutenberg block. Without this code, adding SVG icons fails because admins on multisites are not allowed to add unfiltered HTML by default in WordPress.

CHANGES

  • Updates Guzzler composer package to 6.5.8 for compatibility reasons.

1.13.1 - Content Protection Enhancements

· One min read
Sarah Lewis
Senior Full Stack Engineer @ Yoko Co
Konstantin Brazhnik
Senior Full Stack Engineer @ Yoko Co

Adds filters to control the inclusion of the Content Protection metabox on different post types and adjust the list of available roles. Adds event URL support in the Add to Calendar Gutenberg block. Fixes [yoko_content] shortcodes bugs that prevented shortcode values from working in blocks. eldest_parent_ types fallback to current post value if it has no parent.

ADDS

  • [Content Protection] Adds the yoko_sso_content_restriction_metabox_object_types filter to allow modification of the list of post types that will have the Content Protection metabox.
  • [Content Protection] Adds the yoko_sso_content_restriction_metabox_roles filter to allow modification of the list of roles available for selection in the Content Protection metabox.
  • [GUTENBERG] Adds support for eventUrl in the Add to Calendar Gutenberg block.

CHANGES

  • [Content Protection] Excludes media files from showing the Content Protection metabox by default; the client experience team reported this was causing confusion.

FIXES

  • [GUTENBERG] Fixes bug with shortcodes not working in the Add to Calendar block.
  • [SHORTCODES] eldest_parent_ types in the yoko_content fallback to the current post if parent is 0.

1.12.0 - Search With Typesense Integration

· One min read
Konstantin Brazhnik
Senior Full Stack Engineer @ Yoko Co
Sarah Lewis
Senior Full Stack Engineer @ Yoko Co

Search With Typesense integration including InstantSearch compatibility, full public CPT index, and Typesense server dashboard. Content protection login redirect uses wp_get_referer() to redirect user post login if available. Otherwise falls back to the COOKIE.

ADDS

  • [ADMIN] Search With Typesense integration including InstantSearch compatibility, full public CPT index, and Typesense server dashboard.

CHANGES

  • [CONTENT PROTECTION] Uses wp_get_referer() to redirect user post login if available. Otherwise falls back to the COOKIE.