diff --git a/src/wp-content/themes/twentynineteen/style.css b/src/wp-content/themes/twentynineteen/style.css
index 9d68322d74..0e498df162 100644
a
|
b
|
svg { |
6615 | 6615 | .gallery-item > div > a:focus { |
6616 | 6616 | box-shadow: 0 0 0 2px #0073aa; |
6617 | 6617 | } |
| 6618 | .testing { |
| 6619 | color: blue; |
| 6620 | } |
| 6621 | No newline at end of file |
diff --git a/src/wp-includes/class-wp-embed.php b/src/wp-includes/class-wp-embed.php
index 677a5944c4..55b8e49e5b 100644
a
|
b
|
class WP_Embed { |
34 | 34 | add_filter( 'widget_block_content', array( $this, 'run_shortcode' ), 8 ); |
35 | 35 | |
36 | 36 | // Shortcode placeholder for strip_shortcodes(). |
37 | | add_shortcode( 'embed', '__return_false' ); |
| 37 | add_shortcode( 'embed', array( $this, 'shortcode' ) ); |
38 | 38 | |
39 | 39 | // Attempts to embed all URLs in a post. |
40 | 40 | add_filter( 'the_content', array( $this, 'autoembed' ), 8 ); |
diff --git a/tests/phpunit/tests/oembed/WpEmbed.php b/tests/phpunit/tests/oembed/WpEmbed.php
index 239ea24d56..1be7900e83 100644
a
|
b
|
class Tests_WP_Embed extends WP_UnitTestCase { |
377 | 377 | $this->wp_embed->linkifunknown = false; |
378 | 378 | $this->assertSame( $url, $this->wp_embed->maybe_make_link( $url ) ); |
379 | 379 | } |
| 380 | |
| 381 | /** |
| 382 | * @ticket 23431 |
| 383 | */ |
| 384 | public function test_embed_shortcode() { |
| 385 | $content = '[embed]https://example.org/path/to/video[/embed]'; |
| 386 | $this->assertNotEmpty( do_shortcode( $content ) ); |
| 387 | } |
380 | 388 | } |