Skip to content

Commit

Permalink
V 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
varunsridharan committed Apr 11, 2021
1 parent d0b750f commit c1bb983
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
7 changes: 1 addition & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## 1.0 - 17/12/2018
### First Release


<!--
## Unreleased
## 1.0 - 01/02/2020
### Added
### Changed
### Deprecated
### Removed
### Fixed
### Security
-->
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function myendpoint_callback($wp){

class VS_CALLBACK_HANDLER{
public static function render($wp){
echo 'Hi'
echo 'Hi';
}
}

Expand All @@ -98,7 +98,6 @@ $vs_wp_endpoint->add_rewrite_rule('mypath/{user_id}/{user_name}','top');
$vs_wp_endpoint->add_rewrite_rule('welcome/{verify_id}','top');
```


---

<!-- START common-footer.mustache -->
Expand Down
5 changes: 1 addition & 4 deletions src/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public function prefix( $prefix = '' ) {
* @param $wp
*
* @uses \call_user_func()
*
* @uses \call_user_func_array()
*/
public function parse_request( $wp ) {
Expand Down Expand Up @@ -136,8 +135,6 @@ public function on_wp_init() {

/**
* Registers Rewrite Rules With WordPress.
*
* @static
*/
protected function register_rewrite_rules() {
if ( ! empty( $this->rewrite_rule ) ) {
Expand Down Expand Up @@ -177,8 +174,8 @@ protected function register_rewrite_endpoints() {
* @param array|string $callback
*
* @return $this
* @example add_endpoint('world/',EP_PAGES,array(&$this,'page_callback'))
*
* @example add_endpoint('world/',EP_PAGES,array(&$this,'page_callback'))
* @example add_endpoint('hello/',EP_PAGES,'my_page_calback')
*/
public function add_endpoint( $endpoint = '', $endpoint_type = \EP_ROOT, $callback = array() ) {
Expand Down

0 comments on commit c1bb983

Please sign in to comment.