Skip to content

Commit

Permalink
Remove needless SHORTCODE_TAG constants
Browse files Browse the repository at this point in the history
These were added in this PR,
but the logic that used them has been removed.
  • Loading branch information
kienstra committed Nov 19, 2019
1 parent 00b2e2c commit ec5257e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions includes/embeds/class-amp-soundcloud-embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
*/
class AMP_SoundCloud_Embed_Handler extends AMP_Base_Embed_Handler {

/**
* The tag (name) of the shortcode.
*
* @var string
*/
const SHORTCODE_TAG = 'soundcloud';

/**
* Default height.
*
Expand Down
7 changes: 0 additions & 7 deletions includes/embeds/class-amp-twitter-embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class AMP_Twitter_Embed_Handler extends AMP_Base_Embed_Handler {
*/
const URL_PATTERN_TIMELINE = '#https?:\/\/twitter\.com(?:\/\#\!\/|\/)(?P<username>[a-zA-Z0-9_]{1,20})(?:$|\/(?P<type>likes|lists)(\/(?P<id>[a-zA-Z0-9_-]+))?)#i';

/**
* The tag (name) of the shortcode.
*
* @var string
*/
const SHORTCODE_TAG = 'vimeo';

/**
* Tag.
*
Expand Down

0 comments on commit ec5257e

Please sign in to comment.