Skip to content

Commit

Permalink
Force all shortcode plugins to adjust to AM by firing pre_amp_render_…
Browse files Browse the repository at this point in the history
…post
  • Loading branch information
yurynix authored and westonruter committed May 8, 2018
1 parent b709b73 commit 658377b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/utils/class-amp-validation-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ public static function print_edit_form_validation_status( $post ) {

// If no results from URL are available, validate post content outside frontend context.
if ( empty( $validation_errors ) && post_type_supports( $post->post_type, 'editor' ) ) {
do_action( 'pre_amp_render_post', $post->ID );
self::process_markup( $post->post_content );
$validation_errors = array_merge(
$validation_errors,
Expand Down

0 comments on commit 658377b

Please sign in to comment.