Skip to content

Commit

Permalink
update blocks annotations versions (#20714)
Browse files Browse the repository at this point in the history
  • Loading branch information
leogermani authored Aug 21, 2021
1 parent 79ddec4 commit 121f2bb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions projects/packages/blocks/changelog/update-blocks-annotations
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

update annotations versions
24 changes: 12 additions & 12 deletions projects/packages/blocks/src/class-blocks.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/** Blocks package.
*
* @since 9.0.0
* @since 1.1.0
*
* This package lifts elements from Jetpack's Jetpack_Gutenberg class.
* It is now an standalone package reusable outside Jetpack.
Expand All @@ -16,7 +16,7 @@
/**
* Register and manage blocks within a plugin. Used to manage block registration, enqueues, and more.
*
* @since 9.0.0
* @since 1.1.0
*/
class Blocks {
/**
Expand All @@ -25,7 +25,7 @@ class Blocks {
* @see register_block_type
* @see Automattic\Jetpack\Blocks::is_gutenberg_version_available
*
* @since 9.0.0
* @since 1.1.0
*
* @param string $slug Slug of the block.
* @param array $args {
Expand Down Expand Up @@ -105,7 +105,7 @@ function () use ( $feature_name, $method_name ) {
/**
* Check if an extension/block is already registered
*
* @since 9.0.0
* @since 1.1.0
*
* @param string $slug Name of extension/block to check.
*
Expand All @@ -118,7 +118,7 @@ public static function is_registered( $slug ) {
/**
* Remove the 'jetpack/' or jetpack-' prefix from an extension name
*
* @since 9.0.0
* @since 1.1.0
*
* @param string $extension_name The extension name.
*
Expand All @@ -136,7 +136,7 @@ public static function remove_extension_prefix( $extension_name ) {
* php if the Gutenberg plugin is not installed, if we know which minimum WP release has the required version we can
* optionally fall back to that.
*
* @since 9.0.0
* @since 1.1.0
*
* @param array $version_requirements {
* An array containing the required Gutenberg version and, if known, the WordPress version that was released with this minimum version.
Expand Down Expand Up @@ -195,7 +195,7 @@ public static function is_gutenberg_version_available( $version_requirements, $s
/**
* Get CSS classes for a block.
*
* @since 9.0.0
* @since 1.1.0
*
* @param string $slug Block slug.
* @param array $attr Block attributes.
Expand Down Expand Up @@ -237,7 +237,7 @@ public static function classes( $slug, $attr, $extra = array() ) {
/**
* Does the page return AMP content.
*
* @since 9.0.0
* @since 1.1.0
*
* @return bool $is_amp_request Are we on an AMP view.
*/
Expand All @@ -251,7 +251,7 @@ public static function is_amp_request() {
/**
* Is the current theme an FSE/Site Editor theme.
*
* @since 9.8.0
* @since 1.4.0
*
* @return bool True if the current theme is an FSE/Site Editor theme.
*/
Expand All @@ -261,7 +261,7 @@ public static function is_fse_theme() {
/**
* Returns true if the current theme is an FSE/Site Editor theme.
*
* @since 9.8.0
* @since 1.4.0
*
* @param boolean $is_fse_theme Is the theme an FSE theme.
*/
Expand All @@ -272,7 +272,7 @@ public static function is_fse_theme() {
* Check whether or the block being registered is a standalone block,
* running in a context outside of the Jetpack plugin.
*
* @since 9.6.0
* @since 1.3.0
*
* @return bool
*/
Expand All @@ -282,7 +282,7 @@ public static function is_standalone_block() {
/**
* Returns true if the block is not being registered within a Jetpack plugin context.
*
* @since 9.6.0
* @since 1.3.0
*
* @param boolean $is_standalone_block Is the block running standalone versus as part of the Jetpack plugin.
*/
Expand Down

0 comments on commit 121f2bb

Please sign in to comment.