diff --git a/classes/class-connector.php b/classes/class-connector.php index 62142f0c..ccedadf1 100644 --- a/classes/class-connector.php +++ b/classes/class-connector.php @@ -110,7 +110,7 @@ public function unregister() { */ public function callback() { $action = current_filter(); - $callback = array( $this, 'callback_' . preg_replace( '/[^a-z0-9_\-]/', '_', $action ) ); + $callback = array( $this, 'callback_' . preg_replace( '/[^a-z0-9_]/', '_', $action ) ); // For the sake of testing, trigger an action with the name of the callback. if ( defined( 'WP_STREAM_TESTS' ) && WP_STREAM_TESTS ) {