From 4a5f1c5c0e39d980729c02380269a454a92649ff Mon Sep 17 00:00:00 2001 From: Justin Foell <630830+jrfoell@users.noreply.github.com> Date: Tue, 3 Nov 2020 13:38:21 -0600 Subject: [PATCH] Remove static calls from block --- src/WPStrava/Blocks/Activity.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/WPStrava/Blocks/Activity.php b/src/WPStrava/Blocks/Activity.php index f579e41..ceff6b0 100644 --- a/src/WPStrava/Blocks/Activity.php +++ b/src/WPStrava/Blocks/Activity.php @@ -5,11 +5,6 @@ class WPStrava_Blocks_Activity implements WPStrava_Blocks_Interface { - public function __construct() { - WPStrava_ActivityRenderer::register_block_style_translations( 'wp-strava/activity' ); - WPStrava_ActivityRenderer::load_style_translations(); - } - /** * Register the wp-strava/activity block. * @@ -43,7 +38,7 @@ class WPStrava_Blocks_Activity implements WPStrava_Blocks_Interface { } $matches = []; - preg_match( "/\/activities\/([0-9].*)$/", $attributes['url'], $matches ); + preg_match( '/\/activities\/([0-9].*)$/', $attributes['url'], $matches ); if ( $matches[1] ) { // Transform from block attributes to shortcode standard. $attributes = array(