Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Feb 4, 2025
1 parent 0620fcb commit 1e057f4
Show file tree
Hide file tree
Showing 16 changed files with 68 additions and 73 deletions.
1 change: 1 addition & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
.jshintrc
Gruntfile.js
phpcs.xml
phpcs.export.xml
phpstan.neon
.eslintrc
.gitattributes
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/create-build-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and publish the ZIP build file

on:
pull_request:
types: [ opened, synchronize, ready_for_review ]
types: [opened, synchronize, ready_for_review]
branches-ignore:
- "update_dependencies"
jobs:
Expand Down Expand Up @@ -31,6 +31,8 @@ jobs:
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: Install npm deps
run: npm ci
- name: Set version to Stable Tag
run: npm run grunt:version
- name: Build files
run: npm run build
- name: Create zip
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-stagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: Install npm deps
run: npm ci
- name: Set version to Stable Tag
run: npm run grunt:version
- name: Build files
run: npm run build
- name: Zip files
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: Install npm deps
run: npm ci
- name: Set version to Stable Tag
run: npm run grunt:version
- name: Build files
run: npm run build
- name: Build zip
Expand Down
13 changes: 12 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,18 @@ module.exports = function( grunt ) {
flags: ''
},
src: [ 'plugins/otter-pro/otter-pro.php' ]
}
},
readmetxt: {
options: {
prefix: 'Stable tag:\\s*'
},
src: [
'readme.txt',
'plugins/blocks-animation/readme.txt',
'plugins/blocks-css/readme.txt',
'plugins/blocks-export-import/readme.txt',
]
},
},
wp_readme_to_markdown: {
plugin: {
Expand Down
5 changes: 4 additions & 1 deletion bin/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ else
DIST_FOLDER=$BUILD_NAME
fi


# Take all the files, filter the dev ones (e.g. node_modules, src), and save the result to './dist'
rsync -rc --exclude-from ".distignore" "./" "dist/$DIST_FOLDER"

# Change the individual sub-text-domain for the included sub-plugins in the main one.
composer run format-dist -- "dist/$DIST_FOLDER"
composer install --prefer-dist --no-progress --no-suggest
composer run format-dist -- "./dist/$DIST_FOLDER"
composer install --no-dev --prefer-dist --no-progress --no-suggest

cd dist

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"format": "phpcbf",
"phpunit": "phpunit",
"phpstan": "phpstan analyse --memory-limit 2G",
"format-dist": "phpcbf --standard=phpcs.export.xml $1"
"format-dist": "phpcbf --standard=phpcs.export.xml"
},
"prefer-stable": true,
"config": {
Expand Down
31 changes: 10 additions & 21 deletions inc/class-blocks-animation.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function init() {
if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
define( 'BLOCKS_ANIMATION_URL', OTTER_BLOCKS_URL );
define( 'BLOCKS_ANIMATION_PATH', OTTER_BLOCKS_PATH );
define( 'BLOCKS_ANIMATION_OTTER', true );
}

add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_editor_assets' ) );
Expand All @@ -63,7 +64,8 @@ public function init() {
* @access public
*/
public function enqueue_editor_assets() {
$asset_file = include BLOCKS_ANIMATION_PATH . '/build/animation/index.asset.php';
$asset_file = include BLOCKS_ANIMATION_PATH . '/build/animation/index.asset.php';
$is_using_otter_files = defined( 'BLOCKS_ANIMATION_OTTER' );

wp_enqueue_style(
'otter-animation',
Expand Down Expand Up @@ -92,11 +94,7 @@ public function enqueue_editor_assets() {
)
);

if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
wp_set_script_translations( 'otter-animation', 'otter-blocks' );
} else {
wp_set_script_translations( 'otter-animation', 'blocks-animation' );
}
wp_set_script_translations( 'otter-animation', $is_using_otter_files ? 'otter-blocks' : 'blocks-animation' );

$asset_file = include BLOCKS_ANIMATION_PATH . '/build/animation/anim-count.asset.php';
wp_enqueue_script(
Expand All @@ -109,11 +107,7 @@ public function enqueue_editor_assets() {

wp_script_add_data( 'otter-count', 'defer', true );

if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
wp_set_script_translations( 'otter-count', 'otter-blocks' );
} else {
wp_set_script_translations( 'otter-count', 'blocks-animation' );
}
wp_set_script_translations( 'otter-count', $is_using_otter_files ? 'otter-blocks' : 'blocks-animation' );

wp_enqueue_script(
'otter-typing',
Expand All @@ -125,11 +119,7 @@ public function enqueue_editor_assets() {

wp_script_add_data( 'otter-typing', 'defer', true );

if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
wp_set_script_translations( 'otter-typing', 'otter-blocks' );
} else {
wp_set_script_translations( 'otter-typing', 'blocks-animation' );
}
wp_set_script_translations( 'otter-typing', $is_using_otter_files ? 'otter-blocks' : 'blocks-animation' );
}

/**
Expand Down Expand Up @@ -267,11 +257,10 @@ public function render_welcome_notice() {
true
);

if ( ! defined( 'BLOCKS_ANIMATION_URL' ) ) {
wp_set_script_translations( 'otter-animation-welcome-notice-scripts', 'otter-blocks' );
} else {
wp_set_script_translations( 'otter-animation-welcome-notice-scripts', 'blocks-animation' );
}
wp_set_script_translations(
'otter-animation-welcome-notice-scripts',
defined( 'BLOCKS_ANIMATION_OTTER' ) ? 'otter-blocks' : 'blocks-animation'
);

wp_localize_script(
'otter-animation-welcome-notice-scripts',
Expand Down
7 changes: 2 additions & 5 deletions inc/class-blocks-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function init() {
if ( ! defined( 'BLOCKS_CSS_URL' ) ) {
define( 'BLOCKS_CSS_URL', OTTER_BLOCKS_URL );
define( 'BLOCKS_CSS_PATH', OTTER_BLOCKS_PATH );
define( 'BLOCKS_CSS_OTTER', true );
}

add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_editor_assets' ), 1 );
Expand Down Expand Up @@ -86,11 +87,7 @@ public function enqueue_editor_assets() {
)
);

if ( ! defined( 'BLOCKS_CSS_URL' ) ) {
wp_set_script_translations( 'otter-css', 'otter-blocks' );
} else {
wp_set_script_translations( 'otter-css', 'blocks-css' );
}
wp_set_script_translations( 'otter-css', defined( 'BLOCKS_CSS_OTTER' ) ? 'otter-blocks' : 'blocks-css' );

wp_enqueue_style(
'otter-css',
Expand Down
7 changes: 2 additions & 5 deletions inc/class-blocks-export-import.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function init() {
if ( ! defined( 'BLOCKS_EXPORT_IMPORT_URL' ) ) {
define( 'BLOCKS_EXPORT_IMPORT_URL', OTTER_BLOCKS_URL );
define( 'BLOCKS_EXPORT_IMPORT_PATH', OTTER_BLOCKS_PATH );
define( 'BLOCKS_EXPORT_OTTER', true );
}

add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_editor_assets' ), 1 );
Expand All @@ -48,11 +49,7 @@ public function enqueue_editor_assets() {
true
);

if ( ! defined( 'BLOCKS_EXPORT_IMPORT_URL' ) ) {
wp_set_script_translations( 'blocks-export-import', 'otter-blocks' );
} else {
wp_set_script_translations( 'blocks-export-import', 'blocks-export-import' );
}
wp_set_script_translations( 'blocks-export-import', defined( 'BLOCKS_EXPORT_OTTER' ) ? 'otter-blocks' : 'blocks-export-import' );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public function about_page() {
'logo' => esc_url_raw( OTTER_BLOCKS_URL . 'assets/images/logo-alt.png' ),
'has_upgrade_menu' => ! DEFINED( 'OTTER_PRO_VERSION' ),
'upgrade_link' => tsdk_translate_link( tsdk_utmify( Pro::get_url(), 'editor', Pro::get_reference() ) ),
'upgrade_text' => __( 'Get Otter Pro', 'blocks-animation' ),
'upgrade_text' => __( 'Get Otter Pro', 'otter-blocks' ),
);
}

Expand Down
32 changes: 16 additions & 16 deletions inc/class-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function should_show_dashboard_upsell() {
public function register_metabox( $post_type ) {
add_meta_box(
'otter_woo_builder',
__( 'WooCommerce Builder by Otter', 'otter-pro' ),
__( 'WooCommerce Builder by Otter', 'otter-blocks' ),
array( $this, 'render_metabox_upsell' ),
'product',
'side',
Expand Down Expand Up @@ -241,17 +241,17 @@ public function render_metabox_upsell( $post_type ) {
}
</style>
<div class="clear o-upsell">
<p><?php _e( 'Unlock the full power of WooCommerce Builder with Otter Pro:', 'otter-pro' ); ?></p>
<p><?php _e( 'Unlock the full power of WooCommerce Builder with Otter Pro:', 'otter-blocks' ); ?></p>

<ul>
<li><?php _e( 'WooCommerce Block Builder', 'otter-pro' ); ?></li>
<li><?php _e( 'Add to Cart Block', 'otter-pro' ); ?></li>
<li><?php _e( 'Review Comparison Block', 'otter-pro' ); ?></li>
<li><?php _e( 'Priority Support', 'otter-pro' ); ?></li>
<li><?php _e( 'WooCommerce Block Builder', 'otter-blocks' ); ?></li>
<li><?php _e( 'Add to Cart Block', 'otter-blocks' ); ?></li>
<li><?php _e( 'Review Comparison Block', 'otter-blocks' ); ?></li>
<li><?php _e( 'Priority Support', 'otter-blocks' ); ?></li>
</ul>

<a href="<?php echo esc_url_raw( tsdk_translate_link( tsdk_utmify( self::get_url(), 'woobuilder', 'wooproducteditor' ) ) ); ?>" target="_blank" class="button button-primary">
<?php _e( 'Discover Otter Pro', 'otter-pro' ); ?>
<?php _e( 'Discover Otter Pro', 'otter-blocks' ); ?>
</a>
</div>
<?php
Expand All @@ -260,10 +260,10 @@ public function render_metabox_upsell( $post_type ) {

?>
<div class="clear">
<p><?php _e( 'Unlock the full power of WooCommerce Builder by activating Otter Pro license.', 'otter-pro' ); ?></p>
<p><?php _e( 'Unlock the full power of WooCommerce Builder by activating Otter Pro license.', 'otter-blocks' ); ?></p>

<a href="<?php echo esc_url( admin_url( 'admin.php?page=otter' ) ); ?>" target="_blank" class="button button-primary">
<?php _e( 'Activate License', 'otter-pro' ); ?>
<?php _e( 'Activate License', 'otter-blocks' ); ?>
</a>
</div>
<?php
Expand All @@ -276,15 +276,15 @@ public function render_metabox_upsell( $post_type ) {
* @access public
*/
public function old_neve_notice() {
$plugin_name = __( 'Block Editor Booster', 'otter-pro' );
$message = __( 'You need to make sure Neve & Neve Pro Addons are updated to the latest version to continue using Block Editor Booster.', 'otter-pro' );
$plugin_name = __( 'Block Editor Booster', 'otter-blocks' );
$message = __( 'You need to make sure Neve & Neve Pro Addons are updated to the latest version to continue using Block Editor Booster.', 'otter-blocks' );

printf(
'<div class="error"><p><b>%1$s</b> %2$s <a href="%3$s">%4$s</a></p></div>',
esc_html( $plugin_name ),
esc_html( $message ),
esc_url( admin_url( 'update-core.php' ) ),
esc_html__( 'Update', 'otter-pro' )
esc_html__( 'Update', 'otter-blocks' )
);
}

Expand Down Expand Up @@ -320,8 +320,8 @@ public function dashboard_upsell_notice() {
jQuery( document ).ready( () => disableNotice( jQuery ) );
</script>
<?php
$prefix = __( 'You\'re using Otter!', 'otter-pro' );
$message = __( 'Enhance your WordPress site building with Otter Pro.', 'otter-pro' );
$prefix = __( 'You\'re using Otter!', 'otter-blocks' );
$message = __( 'Enhance your WordPress site building with Otter Pro.', 'otter-blocks' );
$notice = printf(
'<div class="o-notice notice notice-info is-dismissible">
<svg style="float: left; margin: .5em 0; padding: 2px; padding-right: 10px;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 32" width="20" height="20" class"otter-icon"><path d="M19.831 7.877c0.001-0.003 0.001-0.005 0.001-0.009s-0-0.006-0.001-0.009l0 0c-0.047-0.081-0.092-0.164-0.132-0.247l-0.057-0.115c-0.277-0.498-0.381-0.99-1.033-1.064h-0.045c-0.001 0-0.002 0-0.003 0-0.486 0-0.883 0.382-0.908 0.862l-0 0.002c0.674 0.126 1.252 0.278 1.813 0.468l-0.092-0.027 0.283 0.096 0.147 0.053s0.028 0 0.028-0.011z" /><path d="M23.982 13.574c-0.008-2.41-0.14-4.778-0.39-7.112l0.026 0.299 0.070-0.019c0.459-0.139 0.787-0.558 0.787-1.053 0-0.479-0.307-0.887-0.735-1.037l-0.008-0.002h-0.026c-0.479-0.164-0.874-0.468-1.149-0.861l-0.005-0.007c-2.7-3.96-8.252-3.781-8.252-3.781s-5.55-0.179-8.25 3.781c-0.28 0.401-0.676 0.704-1.14 0.862l-0.016 0.005c-0.441 0.148-0.754 0.557-0.754 1.040 0 0.009 0 0.017 0 0.026l-0-0.001c-0 0.010-0.001 0.022-0.001 0.034 0 0.493 0.335 0.907 0.789 1.029l0.007 0.002 0.045 0.011c-0.224 2.034-0.356 4.403-0.364 6.801l-0 0.012s-9.493 13.012-1.277 17.515c4.733 2.431 6.881-0.769 6.881-0.769s1.397-1.661-1.784-3.355v-4.609c0.006-0.344 0.282-0.621 0.625-0.628h1.212v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.274 0.001 0.496 0.224 0.496 0.498 0 0 0 0 0 0v0 0.59h2.721v-0.59c0-0.275 0.223-0.498 0.498-0.498v0h1.665c0.271 0.005 0.49 0.226 0.49 0.498 0 0 0 0 0 0v0 0.59h1.209c0 0 0 0 0 0 0.349 0 0.633 0.28 0.639 0.627v4.584c-3.193 1.703-1.784 3.355-1.784 3.355s2.148 3.193 6.879 0.769c8.222-4.503-1.269-17.515-1.269-17.515zM22.586 10.261c-0.097 1.461-0.67 2.772-1.563 3.797l0.007-0.008c-1.703 2.010-4.407 3.249-6.721 4.432v0c-2.325-1.177-5.026-2.416-6.736-4.432-0.883-1.019-1.455-2.329-1.555-3.769l-0.001-0.020c-0.126-2.22 0.583-5.929 3.044-6.74 2.416-0.788 3.947 1.288 4.494 2.227 0.152 0.258 0.429 0.428 0.745 0.428s0.593-0.17 0.743-0.424l0.002-0.004c0.551-0.932 2.080-3.008 4.494-2.22 2.474 0.805 3.174 4.513 3.046 6.734z" /><path d="M19.463 10.087h-0.028c-0.192 0.026-0.121 0.251-0.047 0.356 0.254 0.349 0.407 0.787 0.407 1.26 0 0.006-0 0.012-0 0.018v-0.001c-0.001 0.469-0.255 0.878-0.633 1.1l-0.006 0.003c-0.739 0.426-1.377-0.145-2.054-0.398-0.72-0.269-1.552-0.434-2.42-0.455l-0.009-0v-1.033c1.020-0.233 1.894-0.76 2.551-1.486l0.004-0.004c0.151-0.163 0.244-0.383 0.244-0.623 0-0.316-0.159-0.595-0.402-0.76l-0.003-0.002c-0.768-0.551-1.728-0.881-2.764-0.881-1.054 0-2.029 0.341-2.819 0.92l0.013-0.009c-0.224 0.166-0.367 0.429-0.367 0.726 0 0.226 0.083 0.433 0.221 0.591l-0.001-0.001c0.665 0.751 1.55 1.295 2.553 1.53l0.033 0.007v1.050c-0.742 0.021-1.448 0.14-2.118 0.343l0.057-0.015c-0.341 0.103-0.631 0.219-0.908 0.358l0.033-0.015c-0.519 0.26-1.037 0.436-1.58 0.121-0.371-0.213-0.617-0.607-0.617-1.058 0-0.002 0-0.004 0-0.007v0c0-0.002 0-0.004 0-0.007 0-0.47 0.153-0.905 0.411-1.257l-0.004 0.006c0.047-0.068 0.089-0.17 0.026-0.241s-0.189 0-0.27 0.030c-0.189 0.099-0.348 0.227-0.479 0.381l-0.002 0.002c-0.245 0.296-0.394 0.679-0.394 1.097 0 0.004 0 0.007 0 0.011v-0.001c0.008 0.706 0.393 1.321 0.964 1.651l0.009 0.005c0.296 0.178 0.654 0.283 1.036 0.283 0.364 0 0.706-0.095 1.001-0.263l-0.010 0.005c0.877-0.461 1.917-0.731 3.019-0.731 0.069 0 0.137 0.001 0.206 0.003l-0.010-0h0.030c1.277 0 2.382 0.266 3.266 0.775 0.27 0.159 0.594 0.253 0.94 0.253 0.001 0 0.002 0 0.003 0h-0c0.355-0.002 0.688-0.098 0.974-0.265l-0.009 0.005c0.606-0.357 1.007-1.007 1.007-1.75 0-0.001 0-0.003 0-0.004v0c0.001-0.026 0.002-0.056 0.002-0.086 0-0.625-0.34-1.171-0.846-1.462l-0.008-0.004c-0.056-0.040-0.125-0.065-0.199-0.070l-0.001-0zM13.101 8.831c-0.238 0.213-0.468 0.581-0.832 0.345-0.061-0.041-0.114-0.086-0.161-0.136l-0-0c-0.063-0.063-0.101-0.15-0.101-0.247 0-0.133 0.074-0.248 0.182-0.308l0.002-0.001c0.594-0.309 1.203-0.543 1.884-0.49-0.324 0.281-0.649 0.56-0.973 0.837z" /><path d="M15.89 13.578c-0.367 0.483-0.941 0.792-1.588 0.792s-1.221-0.309-1.585-0.787l-0.004-0.005c-0.064-0.103-0.177-0.171-0.306-0.171-0.199 0-0.36 0.161-0.36 0.36 0 0.091 0.034 0.174 0.090 0.238l-0-0c0.499 0.659 1.283 1.080 2.164 1.080s1.665-0.421 2.159-1.073l0.005-0.007c0.043-0.059 0.068-0.132 0.068-0.212 0-0.116-0.055-0.22-0.14-0.286l-0.001-0.001c-0.059-0.045-0.134-0.072-0.215-0.072-0.117 0-0.221 0.056-0.286 0.143l-0.001 0.001z" /><path d="M18.507 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z" /><path d="M17.389 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z" /><path d="M10.798 11.707c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z" /><path d="M11.918 11.049c0 0.194-0.157 0.351-0.351 0.351s-0.351-0.157-0.351-0.351c0-0.194 0.157-0.351 0.351-0.351s0.351 0.157 0.351 0.351z" /><path d="M8.773 7.877c-0.001-0.003-0.002-0.005-0.002-0.009s0.001-0.006 0.002-0.009l-0 0c0.047-0.081 0.089-0.164 0.132-0.247 0.019-0.038 0.036-0.079 0.057-0.115 0.275-0.498 0.379-0.99 1.033-1.064h0.045c0 0 0.001 0 0.001 0 0.487 0 0.884 0.382 0.91 0.862l0 0.002c-0.678 0.124-1.261 0.277-1.827 0.468l0.092-0.027-0.275 0.096-0.1 0.036-0.045 0.017s-0.023 0-0.023-0.011z" /></svg>
Expand Down Expand Up @@ -369,7 +369,7 @@ public function dismiss_dashboard_notice() {
public function add_cron_schedules( $schedules = array() ) {
// Adds once monthly to the existing schedules.
$schedules['monthly'] = array(
'display' => __( 'Monthly', 'otter-pro' ),
'display' => __( 'Monthly', 'otter-blocks' ),
'interval' => 2635200,
);

Expand Down Expand Up @@ -420,7 +420,7 @@ public function add_pro_link( $links ) {
$links[] = sprintf(
'<a href="%s" target="_blank" style="color:#ed6f57;font-weight:bold;">%s</a>',
esc_url_raw( tsdk_utmify( self::get_url(), 'pluginspage', 'action' ) ),
__( 'Get Otter Pro', 'otter-pro' )
__( 'Get Otter Pro', 'otter-blocks' )
);

return $links;
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"prod:lite": "wp-scripts build --config webpack.config.js",
"prod:pro": "wp-scripts build --config webpack.config.pro.js",
"prod:grunt": "grunt build",
"grunt:version": "grunt version",
"start": "rm -rf build && npm-run-all --parallel dev:*",
"dev:lite": "wp-scripts start --config webpack.config.js",
"dev:pro": "wp-scripts start --config webpack.config.pro.js",
Expand Down
21 changes: 4 additions & 17 deletions phpcs.export.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0"?>
<ruleset name="">
<description>ThemeIsle ruleset</description>

<rule ref="WordPress-VIP-Go" />

<rule ref="WordPress-Core" />
Expand All @@ -16,6 +17,7 @@
<config name="testVersion" value="5.6-" />

<rule ref="PHPCompatibility" />

<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
Expand All @@ -26,27 +28,12 @@

<rule ref="WordPress.Utils.I18nTextDomainFixer">
<properties>
<property name="old_text_domain" type="array">
<element value="blocks-animation" />
<element value="blocks-import-export" />
<element value="otter-pro" />
<element value="blocks-css" />
</property>
<property name="old_text_domain"
value="blocks-animation,blocks-import-export,otter-pro,blocks-css" />
<property name="new_text_domain" value="otter-blocks" />
</properties>
</rule>


<arg name="extensions" value="php" />
<arg value="s" />

<file>.</file>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>build/*</exclude-pattern>
<exclude-pattern>tests/*</exclude-pattern>
<exclude-pattern>Gruntfile.js</exclude-pattern>
<exclude-pattern>cypress</exclude-pattern>
<exclude-pattern>artifact/*</exclude-pattern>
<exclude-pattern>assets/*</exclude-pattern>
</ruleset>
4 changes: 2 additions & 2 deletions src/animation/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ function AnimationControls({
>
<img
src={ typingPlaceholder }
alt={ _( 'Using Count Animation in the Block Editor', 'blocks-animation' ) }
alt={ __( 'Using Count Animation in the Block Editor', 'blocks-animation' ) }
className="otter-animations-count-image"
/>

Expand All @@ -470,7 +470,7 @@ function AnimationControls({
>
<img
src={ countPlaceholder }
alt={ _( 'Using Typing Animation in the Block Editor', 'blocks-animation' ) }
alt={ __( 'Using Typing Animation in the Block Editor', 'blocks-animation' ) }
className="otter-animations-count-image"
/>

Expand Down
7 changes: 5 additions & 2 deletions src/pro/blocks/review-comparison/placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ const BlockPlaceholder = ({

<Button

/* translators: %s Label */
label={ sprintf( __( 'Remove %s', 'otter-pro' ), label ) }
label={ sprintf(
// translators: %s label.
__( 'Remove %s', 'otter-pro' ),
label
) }
icon="dismiss"
onClick={ () => toggleReview( value ) }
/>
Expand Down

0 comments on commit 1e057f4

Please sign in to comment.