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 | |
| function wpappninja_push_xmlrpc( $post_id ) { | |
| if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { | |
| return; | |
| } | |
| $lang_array = wpappninja_available_lang(); | |
| $post_data = get_post($post_id); |
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 | |
| add_filter( 'the_content', 'wpappninja_custom_php' ); | |
| function wpappninja_custom_php($content) { | |
| $before = "HERE THE CONTENT BEFORE THE POST"; | |
| $after = "HERE THE CONTENT AFTER THE POST"; | |
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
| var detectInjection = function(knownHostsArray) { | |
| var requests = window.performance.getEntriesByType("resource"); | |
| var unknownHosts = []; | |
| var knownHosts = {}; | |
| var foundHosts = {}; | |
| for (var knownHost in knownHostsArray) { | |
| knownHosts[knownHostsArray[knownHost]] = true; | |
| } |