-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add Purge for AMP URL when a Post or Page is Published. #353
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
914dccf
feat: add purging for amp urls.
Vedant-Gandhi c2a1416
refactor: fix indentation.
Vedant-Gandhi 6048861
refactor: added sprintf instead of concatenating string when generati…
Vedant-Gandhi b34d004
Merge branch 'develop' into feat/add-amp-url-purge
Vedant-Gandhi 13973c5
feat: add proper indentation.
Vedant-Gandhi e9424e3
feat: add proper indentation.
Vedant-Gandhi 3671fc9
Merge branch 'feat/add-amp-url-purge' of https://github.com/rtCamp/ng…
Vedant-Gandhi 4a9a801
feat: add proper indentation.
Vedant-Gandhi cbfc429
Merge branch 'develop' into feat/add-amp-url-purge
Vedant-Gandhi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,7 @@ | |
'purge_page_on_deleted_comment', | ||
'purge_feeds', | ||
'smart_http_expire_form_nonce', | ||
'purge_amp_urls', | ||
'preload_cache', | ||
); | ||
|
||
|
@@ -641,6 +642,38 @@ | |
</td> | ||
</tr> | ||
</table> | ||
<table class="form-table rtnginx-table"> | ||
<tr valign="top"> | ||
<th scope="row"> | ||
<h4> | ||
<?php esc_html_e( 'Purge AMP URL:', 'nginx-helper' ); ?> | ||
</h4> | ||
</th> | ||
<td> | ||
<fieldset> | ||
<legend class="screen-reader-text"> | ||
<span> | ||
| ||
<?php | ||
esc_html_e( 'purge amp urls', 'nginx-helper' ); | ||
?> | ||
</span> | ||
</legend> | ||
<label for="purge_amp_urls"> | ||
<input type="checkbox" value="1" id="purge_amp_urls" name="purge_amp_urls" <?php checked( $nginx_helper_settings['purge_amp_urls'], 1 ); ?> /> | ||
| ||
<?php | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the indentation in the HTML markup |
||
echo wp_kses( | ||
__( 'purge <strong>amp urls</strong> along with <strong>posts</strong> & <strong>pages</strong>.', 'nginx-helper' ), | ||
array( 'strong' => array() ) | ||
); | ||
?> | ||
</label> | ||
<br /> | ||
</fieldset> | ||
</td> | ||
</tr> | ||
</table> | ||
<table class="form-table rtnginx-table"> | ||
<tr valign="top"> | ||
<th scope="row"> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the indentation