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

Limit validation to AMP theme support #1132

Merged
merged 1 commit into from May 8, 2018

Conversation

Projects
None yet
2 participants
@westonruter
Collaborator

westonruter commented May 7, 2018

  • Fixes problems related to the_content filters being applied in the admin. See #1130.
  • Eliminates validation errors from being displayed when the_content filters apply when creating new posts.
  • Reduces influx of support topics related to warning messages; the debug link is not helpful unless theme support is present.

To test:

git clone --recursive https://github.com/Automattic/amp-wp.git amp
cd amp
git checkout update/warning-notice
npm install
composer install
npm run build

This will create an amp.zip file that you can install on your site. Note you'll have to first deactivate and uninstall the v0.7.0 AMP plugin before you can upload and activate this ZIP on the plugins admin screen. Ideally you could test this on a staging site.

Support tickets:

@westonruter westonruter added this to the v0.7.1 milestone May 7, 2018

@westonruter westonruter requested a review from kienstra May 7, 2018

@kienstra

This comment has been minimized.

Show comment
Hide comment
@kienstra

kienstra May 7, 2018

Collaborator

Thanks, Will Review Soon

Hi @westonruter,
Good idea here. If it's alright, I'll start reviewing in about an hour.

Collaborator

kienstra commented May 7, 2018

Thanks, Will Review Soon

Hi @westonruter,
Good idea here. If it's alright, I'll start reviewing in about an hour.

@kienstra

Approved

Hi @westonruter,
Thanks, this pull request looks good, and works as expected. There are no validation errors when using Legacy Templating. Only in Native AMP or Paired Mode.

It's nice that this also simplifies the repo, using less if blocks.

There's a question here, but it's not a blocker.

Limit validation to AMP theme support
* Fixes problems related to the_content filters being applied in the admin.
* Eliminates validation errors from being displayed when the_content filters apply when creating new posts.
* Reduces influx of support topics related to warning messages; the debug link is not helpful unless theme support is present.

@westonruter westonruter merged commit b5c53be into 0.7 May 8, 2018

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@westonruter westonruter deleted the update/warning-notice branch May 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment