Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Introduce amp-story support via Gutenberg blocks #1215

Closed
wants to merge 280 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
280 commits
Select commit Hold shift + click to select a range
e5c84d0
Extend blocks to allow configuring the position in thirds template.
miina Aug 23, 2018
88a05df
Merge develop & resolve conflicts.
miina Aug 29, 2018
912439d
Merge branch 'amp-stories' into amp-story/layouts
miina Aug 29, 2018
6ff0bf6
Add a partly working workaround for selectBlock issue.
miina Aug 29, 2018
ea4c776
Add background color for amp-story-page block.
miina Aug 29, 2018
0929292
Adjust texts.
miina Aug 29, 2018
d6d3f69
Adjust texts.
miina Aug 29, 2018
b6f696a
Merge pull request #1380 from Automattic/amp-story/page-background
westonruter Aug 29, 2018
b486847
Merge amp-stories and resolve conflicts.
miina Aug 29, 2018
5e9a535
Add animation controls for AMP Story layer blocks.
miina Aug 29, 2018
b7afb23
Ensure a singular AMP story always is_amp_endpoint
westonruter Aug 29, 2018
dc87187
Ensure amp-runtime and Gutenberg block styles are included on story t…
westonruter Aug 29, 2018
6eca68b
Merge pull request #1347 from Automattic/amp-story/layouts
westonruter Aug 29, 2018
8518dae
Merge amp-stories and resolve conflicts.
miina Aug 30, 2018
10826df
Start adding animation for core blocks.
miina Aug 30, 2018
6c569c8
Add animation to core blocks. Whitelist animation attributes.
miina Aug 30, 2018
32b7524
Enable animations for CTA layer, too.
miina Aug 30, 2018
4923569
Change animation settings source to attribute.
miina Aug 31, 2018
15718e2
UI updates.
miina Aug 31, 2018
224ef00
Revert "Whitelist animation attributes."
westonruter Sep 2, 2018
def0ce0
Merge branch 'develop' of https://github.com/Automattic/amp-wp into a…
westonruter Sep 2, 2018
e04df38
Merge pull request #1385 from Automattic/amp-story/layout-block
westonruter Sep 2, 2018
9d3a103
Merge branch 'amp-stories' of https://github.com/Automattic/amp-wp in…
westonruter Sep 2, 2018
f70669b
Merge pull request #1388 from Automattic/amp-story/style_fixes
westonruter Sep 2, 2018
ce78023
Add icons to layer selection.
miina Sep 3, 2018
924c22b
Fix jscs.
miina Sep 3, 2018
4234619
Merge pull request #1391 from Automattic/amp-story/layout-icons
westonruter Sep 3, 2018
d056828
Add placeholder for animation duration according to the type.
miina Sep 4, 2018
73d6b80
Merge pull request #1395 from Automattic/amp-story/animation-fix
westonruter Sep 4, 2018
1ef3f8e
Merge remote-tracking branch 'origin/develop' into amp-stories
miina Sep 10, 2018
6304f37
Merge branch 'amp-stories' of github.com:Automattic/amp-wp into amp-s…
miina Sep 10, 2018
75feec6
Fix layer selection.
miina Sep 10, 2018
2decbde
Merge pull request #1417 from Automattic/amp-story/layout-selection-fix
miina Sep 10, 2018
e69e44e
Disable amp-story post type when Gutenberg is not active.
miina Sep 12, 2018
87c731a
Style fixes.
miina Sep 12, 2018
ed6393c
Increase z-index of a selected block.
miina Sep 12, 2018
b2df5c5
Hide resizer for amp-story images.
miina Sep 12, 2018
25685d4
Add limits to resizing images.
miina Sep 12, 2018
5884d6c
Merge pull request #1425 from Automattic/amp-story/fixes-vol1
westonruter Sep 12, 2018
434282d
Use dotted outline instead of dotted border for selected blocks
westonruter Sep 12, 2018
cfd8e8d
Add opacity and background color controls for grid layer block.
miina Sep 14, 2018
8ce58ce
Fix eslint issues.
miina Sep 14, 2018
4b0606f
Merge pull request #1434 from Automattic/amp-story/grid-layer-background
westonruter Sep 14, 2018
9a8158e
Change Opacity label to Layer Opacity.
miina Sep 17, 2018
6415f6b
Style fix.
miina Sep 18, 2018
a865553
Improve image background styling.
miina Oct 10, 2018
7690310
Modify importing 'uuid'.
miina Oct 11, 2018
9dd04c9
Merge pull request #1504 from Automattic/fix/fix-uuid-package
miina Oct 11, 2018
6bde3e2
Merge develop
miina Oct 11, 2018
a3c6c59
Change back uuid version.
miina Oct 11, 2018
d7788bf
Merge branch 'develop' into amp-stories
mehigh Nov 2, 2018
7de1d76
Split Grid Layer block into 4 blocks based on template.
miina Nov 6, 2018
ca0f4ba
Add background fill layers.
miina Nov 7, 2018
0a1b84c
Add background fill layers.
miina Nov 7, 2018
a285622
Fix margin for fill template.
miina Nov 7, 2018
fd654b9
Fix layer inserter.
miina Nov 7, 2018
36e1f99
Remove AMP Story prefix from block names
jacobschweitzer Nov 8, 2018
3910502
Add text domain to AMP stories block titles
jacobschweitzer Nov 8, 2018
747be0d
Merge pull request #1595 from Automattic/amp-stories-remove-prefix
miina Nov 8, 2018
95e14aa
Merge amp-stories & resolve conflicts.
miina Nov 8, 2018
ef637a6
Add text domains where missing.
miina Nov 8, 2018
01a663d
Refactor code.
miina Nov 8, 2018
10f334b
Refactor templating.
miina Nov 8, 2018
9f4c5d0
Fix eslint.
miina Nov 8, 2018
482676e
Merge remote-tracking branch 'origin/develop' into amp-stories
miina Nov 8, 2018
6cd5978
Merge remote-tracking branch 'origin/amp-stories' into 1530-split_gri…
miina Nov 8, 2018
a9b25e8
Fix jshint. Again.
miina Nov 8, 2018
3a458c3
Add placeholder SVG files for icons.
miina Nov 8, 2018
69c47ea
Prepopulate new page with background image and vertical layer.
miina Nov 8, 2018
e9dcf0d
Fix eslint.
miina Nov 8, 2018
05d1fd2
Merge remote-tracking branch 'origin/1530-split_grid_layer_block' int…
miina Nov 8, 2018
b5e0be4
Add correct SVG files.
miina Nov 9, 2018
1456512
Merge pull request #1594 from Automattic/1530-split_grid_layer_block
miina Nov 9, 2018
90f662a
Update creating warning notice.
miina Nov 12, 2018
6f05668
Remove unused code.
miina Nov 12, 2018
c1e5f80
Merge remote-tracking branch 'origin/fix/displaying-validation-warnin…
miina Nov 12, 2018
017b9cc
Add check for featured image in case of AMP Stories.
miina Nov 12, 2018
8801bbd
1531 - Make ‘fill-image’ gray edit area full height
mehigh Nov 13, 2018
786a0f3
Implement allowed_descendant_tags
miina Nov 13, 2018
0758d00
Add check for existing child nodes.
miina Nov 13, 2018
8ac21e1
1531 - Keep this full height when the contextual toolbar is present
mehigh Nov 13, 2018
369d1ab
1531 - Avoid zooming the layers in on large screens
mehigh Nov 13, 2018
fa78eb9
1531 - Make image fill cover the layer entirely
mehigh Nov 13, 2018
0502874
1531 - Limit max-height of the fill video to the size of the layer.
mehigh Nov 13, 2018
89943fc
Add child_tags tags spec.
miina Nov 13, 2018
9435205
Use remove_invalid_child instead of just removing the node.
miina Nov 14, 2018
f224c63
First try with reverting the amp-fit-text.
miina Nov 14, 2018
c5c9594
Add is-selected-parent class.
miina Nov 14, 2018
be0320a
Test commit.
miina Nov 16, 2018
ddd02d3
Merge remote-tracking branch 'origin/develop' into amp-stories
miina Nov 16, 2018
b8bc64a
Merge remote-tracking branch 'origin/amp-stories' into 1565-paragraph…
miina Nov 16, 2018
1d7044b
Remove 'type' from attributes where source is set.
miina Nov 16, 2018
6fe2a3f
Merge branch 'fix/block-attributes' into 1565-paragraph-font-adjustments
miina Nov 16, 2018
c42a1b2
Merge fixes for attributes.
miina Nov 16, 2018
927bb57
1531 - Add animated opacity & blur change on selecting one of the layers
mehigh Nov 19, 2018
7ec0969
Remove Layer cards.
miina Nov 20, 2018
71cbcad
Adjust parsing ints.
miina Nov 20, 2018
f60ded5
Add custom block navigator.
miina Nov 20, 2018
60e6543
1531 - Avoid zooming out the story on small height screens
mehigh Nov 20, 2018
a5fd75f
1531 - Removed unused variable
mehigh Nov 20, 2018
1097760
1531 - Avoid overlap of blocks outlines inside of vertical
mehigh Nov 20, 2018
c46aa64
1531 - spaced out the blocks even more
mehigh Nov 20, 2018
aa3fcf0
1531 - Avoid images from shrinking on small height screens
mehigh Nov 20, 2018
77949e3
1531 - Add 30% opacity + blur when selecting a layer with other layer…
mehigh Nov 20, 2018
b3c437b
1524 - Added blue border around rich text entries + white shadow
mehigh Nov 20, 2018
97428ec
Add back is-selected-parent class.
miina Nov 20, 2018
3b8c596
Merge branch '1531-prepopulate_page' of github.com:Automattic/amp-wp …
miina Nov 20, 2018
086a9b3
Use data-amp-selected=parent istead of overwriting default classes.
miina Nov 20, 2018
ff909fa
Fix spacing.
miina Nov 20, 2018
0debd1a
Merge branch 'amp-stories' into 1531-prepopulate_page
mehigh Nov 20, 2018
63b4a0b
Merge pull request #1600 from Automattic/1531-prepopulate_page
mehigh Nov 20, 2018
57fa077
Create custom block navigator to display nex to each page.
miina Nov 20, 2018
34d7510
Replace custom layer inerter with default Inserter.
miina Nov 20, 2018
7c095c2
Merge amp-stories and resolve conflicts.
miina Nov 20, 2018
fbee984
Styles for inserter to become ghosted page
Nov 21, 2018
5c9d8f1
Add new svg page icon
Nov 21, 2018
25aeacb
Add post type class to keep inserter styles siloed
Nov 21, 2018
b585484
Remove top margin from inserter
Nov 21, 2018
2caa417
Merge branch 'amp-stories' into 1524-improve-outline
mehigh Nov 21, 2018
df52684
1524 - Maintain blue outline of the currently selected layer (vertica…
mehigh Nov 21, 2018
7f293bf
1524 - Maintain blue border when selecting the story page
mehigh Nov 21, 2018
58ad519
1524 - Add white shadow to placeholder text
mehigh Nov 21, 2018
ec5d2c8
Merge pull request #1625 from Automattic/1565-paragraph-font-adjustments
mehigh Nov 21, 2018
0d2f643
Merge branch 'amp-stories' into 1524-improve-outline
mehigh Nov 21, 2018
ce31892
1524 - Fix issue with warning block not being clickable
mehigh Nov 21, 2018
4fa9923
1562: Block insertion of cta layer in first amp story page
jacobschweitzer Nov 21, 2018
4d7fabb
Include wp-editor and fix custom blocks in Gutenberg 4.5.1
miina Nov 21, 2018
a2bab22
Merge amp-stories.
miina Nov 21, 2018
c0ac4f3
Merge pull request #1635 from Automattic/amp-story/enqeueue-wp-editor
miina Nov 21, 2018
f966c72
Merge branch 'amp-stories' into amp-story/1562
jacobschweitzer Nov 21, 2018
26776a7
Fix blurred element issue when selecting AMP CTA child
jacobschweitzer Nov 21, 2018
3e90bd1
Do not try to add class if no element exists
jacobschweitzer Nov 21, 2018
3e1aac7
Add RichText template with placeholder
jacobschweitzer Nov 21, 2018
86c8209
Remove template as it gives error on new CTA creation
jacobschweitzer Nov 21, 2018
ac6d42a
Add breadcrumb to selected layer blocks.
miina Nov 22, 2018
25bdbcb
Add missing key.
miina Nov 22, 2018
1788538
1532 - Optimised SVG
mehigh Nov 22, 2018
fdd938e
1532 - Optimize page inserter SVG
mehigh Nov 22, 2018
065284c
Merge branch 'amp-stories' into 1532-improve-page-block-flow
mehigh Nov 22, 2018
3722fb2
Fix not needed blocks being displayed in Inserter.
miina Nov 22, 2018
eac4334
1532 - Apply the ghosted page only to the last added on the page
mehigh Nov 22, 2018
6815d2a
1562: Use core/button as template
jacobschweitzer Nov 22, 2018
5718f0b
1532 - Updated page icon in side navigator
mehigh Nov 22, 2018
befd00e
1562: Use else if to prevent error when trying to remove block twice
jacobschweitzer Nov 22, 2018
399adad
1532 - Add shadow hover animation on the ghosted page
mehigh Nov 22, 2018
33384da
1532 - Missed turning the text into shapes in the vector.
mehigh Nov 22, 2018
0e40c83
Merge pull request #1632 from Automattic/1532-improve-page-block-flow
mehigh Nov 22, 2018
b1ec0e7
Merge branch 'amp-stories' into 1524-improve-outline
mehigh Nov 22, 2018
9a19ab9
1524 - Added border around the stories to match the ghost page
mehigh Nov 22, 2018
c690bd8
1524 - Removed some old outlines.
mehigh Nov 22, 2018
3f84e61
1524 - Made CTA layer not overflow when too much text is entered
mehigh Nov 22, 2018
c9805e7
1524 - Removing important width on block list layout. (was causing CT…
mehigh Nov 22, 2018
5211097
Use data-amp-selected attribute to identify parent CTA layer
jacobschweitzer Nov 22, 2018
540e921
1522 - Update the border & background of the page
mehigh Nov 22, 2018
5765b9a
Merge pull request #1629 from Automattic/1524-improve-outline
mehigh Nov 22, 2018
ead8800
Merge pull request #1644 from Automattic/amp-story/1559-improve_addin…
mehigh Nov 22, 2018
96aa5c6
1562: Update props instead of using block selector for AMP story cta …
jacobschweitzer Nov 22, 2018
16bf325
Merge remote-tracking branch 'origin/amp-stories' into amp-story/1562
miina Nov 22, 2018
4e2f114
1532 - Added support for the older G block-list-apender for ghost page
mehigh Nov 22, 2018
68161de
Merge pull request #1648 from Automattic/amp-story/1532-page-add
mehigh Nov 22, 2018
453441d
Add missing text domain.
miina Nov 22, 2018
3d8c915
Merge branch 'amp-stories' into amp-story/1563-improve_selecting_layers
mehigh Nov 22, 2018
22002eb
Merge branch 'amp-stories' into amp-story/1564-layer_manipulation
mehigh Nov 22, 2018
703c0e5
1562: Only add data-amp-selected to CTA layer
jacobschweitzer Nov 22, 2018
b37d430
Merge branch 'amp-story/1562' of https://github.com/Automattic/amp-wp…
jacobschweitzer Nov 22, 2018
4bb91d4
Merge branch 'amp-story/1563-improve_selecting_layers' into amp-story…
mehigh Nov 22, 2018
dae0bcb
Improve CTA style.
miina Nov 22, 2018
81a7459
Add outline for CTA layer blocks, too.
miina Nov 22, 2018
2349c4f
Merge pull request #1636 from Automattic/amp-story/1562
miina Nov 22, 2018
331239f
Merge branch 'amp-stories' into amp-story/1563-improve_selecting_layers
mehigh Nov 23, 2018
e65d501
Merge branch 'amp-story/1563-improve_selecting_layers' into amp-story…
mehigh Nov 23, 2018
627837c
AMP Story - CSS comments + Table of Contents
mehigh Nov 23, 2018
48d11d1
1564 - Make the label stay visible while the layer is selected
mehigh Nov 23, 2018
4e646a2
Merge amp-stories.
miina Nov 23, 2018
e7aca95
Remove importing lodash.
miina Nov 23, 2018
f562534
1563 - Hide the always visible block navigator on smaller screens
mehigh Nov 23, 2018
756f969
Resolve conflicts.
miina Nov 23, 2018
ddd6c00
Merge branch 'amp-story/1563-improve_selecting_layers' into amp-story…
mehigh Nov 23, 2018
9ceef5f
Merge develop & resolve conflicts.
miina Nov 23, 2018
418ad0c
1563 - Allow the cta layer to grow vertically
mehigh Nov 23, 2018
b9225d2
Revert "1563 - Allow the cta layer to grow vertically"
mehigh Nov 25, 2018
f8efb5d
1563 - Avoid Block Navigation from overlapping content
mehigh Nov 25, 2018
47db39d
1563 - Comment
mehigh Nov 25, 2018
c18aecb
1563 - Add Layer text next to block navigation
mehigh Nov 25, 2018
6139b63
Merge branch 'amp-stories' into amp-story/1564-layer_manipulation
mehigh Nov 25, 2018
69a9c63
Rework Block Navigation
miina Nov 26, 2018
9593a59
1563 - Update selectors to match reworked model
mehigh Nov 26, 2018
bc9c96b
1563 - Yeah
mehigh Nov 26, 2018
9a0daf6
1563 - Fix the positioning of the add overlay to not overlap sidebar
mehigh Nov 26, 2018
8e8dfe5
Merge pull request #1642 from Automattic/amp-story/1564-layer_manipul…
mehigh Nov 26, 2018
7710a4e
Merge amp-stories & resolve conflicts.
miina Nov 26, 2018
ccb1edf
1532 - Hide the CTA element button when adding on first page
mehigh Nov 26, 2018
0292335
Merge pull request #1655 from Automattic/amp-story/1532-add-cta
miina Nov 26, 2018
48f08b2
Merge remote-tracking branch 'origin/amp-stories' into 1569-compatibi…
miina Nov 27, 2018
859d0b8
Update python script.
miina Nov 27, 2018
36c806e
1567: Add Image Caption Toggle script and CSS
jacobschweitzer Nov 27, 2018
9e0fc03
Merge remote-tracking branch 'origin/amp-stories' into amp-story/1567
jacobschweitzer Nov 27, 2018
f513190
1567: Remove comma to fix ESLint issue
jacobschweitzer Nov 27, 2018
a3fc484
Update logic to match the new generated tags structure.
miina Nov 28, 2018
a15f5c1
Do not add postre portrait if it was not found, to cause AMP Validati…
miina Nov 28, 2018
53a6363
Remove todo note.
miina Nov 28, 2018
762f534
1567: Merge caption toggle with story editor blocks and add updates f…
jacobschweitzer Nov 28, 2018
e0518f1
1567: Remove value since we don’t use it
jacobschweitzer Nov 28, 2018
50f2b10
1567: Remove trailing comma
jacobschweitzer Nov 28, 2018
9cb077d
1567: Do not show toggle setting for fill image
jacobschweitzer Nov 28, 2018
3ad171d
1567: Move image caption setting to AMP story settings section
jacobschweitzer Nov 28, 2018
cd133a5
Merge remote-tracking branch 'origin/develop' into amp-stories
miina Nov 29, 2018
0d6ef21
Merge remote-tracking branch 'origin/develop' into 1569-compatibility…
miina Nov 29, 2018
3258a8b
Remove type from animation settings.
miina Nov 29, 2018
7c5f450
Merge pull request #1671 from Automattic/fix/animation-settings
miina Nov 29, 2018
bad703e
Hide adder inside story page when block navigation is visible
mehigh Nov 29, 2018
5b33f35
block navigation doesn’t move up & down depending on the presence of …
mehigh Nov 29, 2018
a51d395
1567: Move image caption to renamed getAmpStorySettings function
jacobschweitzer Nov 29, 2018
f6e4b6a
Merge pull request #1663 from Automattic/amp-story/1567
miina Nov 29, 2018
48f66cc
1673 - Implement mover arrows staying visible on the selected element
mehigh Nov 29, 2018
bef5822
Merge pull request #1675 from Automattic/amp-story/1673-polish
mehigh Nov 29, 2018
f44f7ad
Fix setting types again.
miina Nov 30, 2018
db1b45a
Merge branch '1.0' into amp-stories
miina Nov 30, 2018
4dae11a
Merge remote-tracking branch 'origin/amp-stories' into amp-story/refi…
miina Nov 30, 2018
c31f2e4
Merge remote-tracking branch 'origin/amp-stories' into 1569-compatibi…
miina Nov 30, 2018
c3a304a
Fix amp-accordion tests.
miina Nov 30, 2018
6f9845d
Only test up to WP 5.0; omit trunk since in flux
westonruter Nov 30, 2018
8c35525
Revert "Only test up to WP 5.0; omit trunk since in flux"
westonruter Nov 30, 2018
21669e1
Fix tests which broke with Gutenberg 4.6
westonruter Nov 30, 2018
6348fdd
Merge pull request #1678 from Automattic/amp-story/refix_setting_types
westonruter Nov 30, 2018
5f34291
Merge remote-tracking branch 'origin/develop' into amp-stories
miina Dec 3, 2018
f9da69f
Merge remote-tracking branch 'origin/amp-stories' into 1569-compatibi…
miina Dec 3, 2018
8bda373
Update selector for image block.
miina Dec 3, 2018
117c70a
Merge pull request #1690 from Automattic/1688-issues_with_animation
miina Dec 3, 2018
56b6a96
Rework filtering wrapper properties.
miina Dec 4, 2018
4b32fa7
Add temporary fix for displaying Add Layer inserter.
miina Dec 4, 2018
b3d1b50
Merge pull request #1702 from Automattic/amp-story/1696-fix_blurring_…
miina Dec 4, 2018
8189af2
Fix wrapper filter.
miina Dec 4, 2018
b965172
Merge pull request #1706 from Automattic/amp-story/fix-wrapper-filter
miina Dec 4, 2018
2adac6f
1643: Add font family option and frontend CSS
jacobschweitzer Dec 6, 2018
1f04ada
1643: Enqueue CSS in admin to show font changes
jacobschweitzer Dec 7, 2018
6d6668d
Merge remote-tracking branch 'AMPProject/develop' into amp-story/1643
jacobschweitzer Dec 7, 2018
2397f02
1643: Add data-font-family attribute in editor
jacobschweitzer Dec 8, 2018
813f4f9
1643: Fix translation function call for WP 5.0
jacobschweitzer Dec 8, 2018
bd24ab8
1643: Make function static
jacobschweitzer Dec 8, 2018
844dab2
Fix CS issues.
miina Dec 12, 2018
f49b41b
Merge remote-tracking branch 'origin/develop' into amp-stories
miina Dec 13, 2018
32de042
Merge remote-tracking branch 'origin/amp-stories' into amp-story/1643
miina Dec 13, 2018
f9e5fd8
Add fonts only to text blocks.
miina Dec 13, 2018
70f0d83
Merge pull request #1713 from ampproject/amp-story/1643
miina Dec 13, 2018
9fb5e20
Merge branch 'develop' of github.com:ampproject/amp-wp into amp-stories
westonruter Feb 11, 2019
0dc42bd
Fix phpcs complaints re: NotInFooter and MultipleArguments
westonruter Feb 11, 2019
28f4cef
Merge branch 'amp-stories' into 1569-compatibility_issues
westonruter Feb 11, 2019
e7ee234
Merge pull request #1614 from ampproject/1569-compatibility_issues
westonruter Feb 11, 2019
95507fa
Merge branch 'develop' of github.com:ampproject/amp-wp into amp-stories
westonruter Feb 20, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ function amp_init() {
AMP_HTTP::handle_xhr_request();
AMP_Theme_Support::init();
AMP_Validation_Manager::init();
AMP_Post_Type_Support::add_post_type_support();
AMP_Story_Post_Type::register();
add_action( 'init', array( 'AMP_Post_Type_Support', 'add_post_type_support' ), 1000 ); // After post types have been defined.

if ( defined( 'WP_CLI' ) && WP_CLI ) {
Expand Down Expand Up @@ -332,6 +334,10 @@ function amp_maybe_add_actions() {
return;
}

if ( is_singular( AMP_Story_Post_Type::POST_TYPE_SLUG ) ) {
return;
}

$is_amp_endpoint = is_amp_endpoint();

/**
Expand Down
Loading