This file contains hidden or 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
<?php | |
/** | |
* Plugin Name: Custom AMP endpoint | |
* Description: Replaces ?amp=1 with /amp/ for posts and pages | |
* Author: Pierre Gordon | |
* Version: 0.1.0 | |
* License: GPLv2 or later | |
*/ | |
namespace Custom_AMP_Endpoint; |
This file contains hidden or 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
<?php | |
/** | |
* Plugin Name: Bad plugin with fatal errors | |
* Description: For testing purposes only. | |
* Author: Pierre Gordon | |
* Version: 0.1.0 | |
* License: GPLv2 or later | |
*/ | |
// All credit goes to Weston Ruter <https://github.com/westonruter> |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{ | |
"results": [ | |
{ | |
"error": { | |
"code": "DISALLOWED_PROCESSING_INSTRUCTION", | |
"node_name": "php", | |
"parent_name": "div", | |
"text": "<!--/amp-source-stack {\"block_name\":\"core\\/html\",\"post_id\":1641}--", | |
"node_type": 7, | |
"sources": [ |