-
Notifications
You must be signed in to change notification settings - Fork 798
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate the [tweet] shortcode AMP handling to Jetpack (#14054)
* Migrate [tweet] shortcode AMP conversion to AMP This mainly copies the logic in the AMP plugin into Jetpack. * Add a test case for width=0 In that case, the width should simply be the $default_width. * Remove extra variable $initial_width There's probably no need to run absint() first, so simply set the $width. * Commit Jeremy's suggestion to possibly markTestSkipped() Co-Authored-By: Jeremy Herve <jeremy@tagada.hu> * Move the 'wp_footer' hook to an else block As Jeremy mentioned, this should not run for AMP endpoints.
- Loading branch information
Showing
2 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters