| @@ -21,11 +21,11 @@ | ||
| 21 | 21 | # 2. Set up a cron job to run update-feeds.php locally: |
| 22 | 22 | # |
| 23 | 23 | # cd <your-wordpress>/wp-content ; php update-feeds.php |
| 24 | 24 | # |
| 25 | -# or to send an HTTP GET request to the appropriate URI: | |
| 25 | +# or to send an HTTP POST request to the appropriate URI: | |
| 26 | 26 | # |
| 27 | -# curl http://xyz.com/wp-content/update-feeds.php?shibboleth=foo | |
| 27 | +# curl http://xyz.com/wp-content/update-feeds.php -d shibboleth=foo | |
| 28 | 28 | # |
| 29 | 29 | # 4. If you want to update *one* of the feeds rather than *all* of them, then |
| 30 | 30 | # pass the URI and title as command-line arguments: |
| 31 | 31 | # |
| @@ -30,11 +30,11 @@ | ||
| 30 | 30 | # pass the URI and title as command-line arguments: |
| 31 | 31 | # |
| 32 | 32 | # $ php update-feeds.php http://www.radgeek.com "Geekery Today" |
| 33 | 33 | # |
| 34 | -# or in the GET query: | |
| 34 | +# or in the POST request: | |
| 35 | 35 | # |
| 36 | -# $ curl http://www.xyz.com/wp-content/update-feeds.php?uri=http://www.radgeek.com\&title=Geekery+Today\&shibboleth=yourshibboleth | |
| 36 | +# $ curl http://www.xyz.com/wp-content/update-feeds.php -d uri=http://www.radgeek.com\&title=Geekery+Today\&shibboleth=foo | |
| 37 | 37 | # |
| 38 | 38 | |
| 39 | 39 | require_once ('../wp-config.php'); |
| 40 | 40 | require_once (ABSPATH . WPINC . '/class-IXR.php'); |