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
Index: includes/class-change-wp-admin-login.php | |
=================================================================== | |
--- includes/class-change-wp-admin-login.php (revision 2793845) | |
+++ includes/class-change-wp-admin-login.php (working copy) | |
@@ -283,7 +283,8 @@ | |
wp_die( __( 'This feature is not enabled.', 'change-wp-admin-login' ) ); | |
} | |
- $request = parse_url( $_SERVER['REQUEST_URI'] ); | |
+ $request = parse_url( $_SERVER['REQUEST_URI'] ); |
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
<?php | |
/** | |
* Plugin Name: AMP eligible post type test. | |
* Description: Plugin to test eligible post types for AMP | |
* Version: 0.1 | |
* | |
* @wordpress-plugin | |
* @author Dhaval Parekh | |
*/ |
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
<?php | |
/** | |
* This method is an improved version of PHP's filter_input() and | |
* works well on PHP CLI as well which PHP default method does not. | |
* Also Provide support INPUT_REQUEST. | |
* | |
* Reference: | |
* - https://bugs.php.net/bug.php?id=49184 | |
* - https://bugs.php.net/bug.php?id=54672 | |
* |
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
#!/usr/bin/env bash | |
plugin_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | |
function wp() { | |
wp_path=$(which wp) | |
php "$wp_path" $url_flag --allow-root "$@" | |
} | |
wp rewrite flush |