Permalink
Browse files

Typo fixes

  • Loading branch information...
lesterchan committed Feb 20, 2018
1 parent 2a14c75 commit d3e1e0a997c2a475ed8fd286d44b7a8aa6f86503
Showing with 7 additions and 7 deletions.
  1. +4 −4 README.md
  2. +1 −1 class-api.php
  3. +2 −2 wp-sweep.php
View
@@ -50,9 +50,9 @@ Following delete functions are used:
* delete_site_transient()
WP-Sweep WP REST API Endpoints
* `/wp-json/sweep/v1/count/<Name>`. Get the number of items that we will be sweeping.
* `/wp-json/sweep/v1/details/<Name>`. Get the details of the items that we will be sweeping.
* `/wp-json/sweep/v1/sweep/<Name>`. Runs sweep for that particular item.
* `GET /wp-json/sweep/v1/count/<Name>`. Get the number of items that we will be sweeping.
* `GET /wp-json/sweep/v1/details/<Name>`. Get the details of the items that we will be sweeping.
* `DELETE /wp-json/sweep/v1/sweep/<Name>`. Runs sweep for that particular item.
WP-Sweep WP-CLI Commands
* `wp sweep --all`. Runs sweep for all items.
@@ -98,7 +98,7 @@ I spent most of my free time creating, updating, maintaining and supporting thes
## Changelog
### 1.1.0
* NEW: Added WP Rest API Endpoint support, sweep/v1/count/<name>, sweep/v1/details/<name>, and sweep/v1/sweep/<name>
* NEW: Added WP Rest API Endpoint support, `sweep/v1/count/<Name>`, `sweep/v1/details/<Name>`, and `sweep/v1/sweep/<Name>`
* FIXED: Follow as close as possible to WordPress Coding Standards
### 1.0.12
View
@@ -76,7 +76,7 @@ public function __construct() {
),
));
register_rest_route( $this->namespace, 'sweep/(?P<name>\w+)', array(
'methods' => WP_REST_Server::READABLE,
'methods' => WP_REST_Server::DELETABLE,
'callback' => array( $this, 'sweep' ),
'permission_callback' => array( $this, 'permission_check' ),
'args' => array(
View
@@ -44,7 +44,7 @@
* WP Rest API
*/
require __DIR__ . '/class-api.php';
#59
/**
* WP-Sweep class
*
@@ -439,7 +439,7 @@ public function count( $name ) {
*
* @access public
* @param string $name Sweep name.
* @return int Number of items belonging to each sweep
* @return array Details of items belonging to each sweep
*/
public function details( $name ) {
global $wpdb;

0 comments on commit d3e1e0a

Please sign in to comment.