-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add BranchPrivacyPolicy and remove BranchPaged
Uptate compat with latest WP versions
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,14 @@ | |
* @author Giuseppe Mazzapica <[email protected]> | ||
* @license http://opensource.org/licenses/MIT MIT | ||
*/ | ||
final class BranchPaged implements Branch | ||
final class BranchPrivacyPolicy implements Branch | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function name(): string | ||
{ | ||
return 'paged'; | ||
return 'privacy_policy'; | ||
} | ||
|
||
/** | ||
|
@@ -33,7 +33,7 @@ public function name(): string | |
*/ | ||
public function is(\WP_Query $query): bool | ||
{ | ||
return $query->is_paged(); | ||
return $query->is_privacy_policy(); | ||
} | ||
|
||
/** | ||
|
@@ -42,6 +42,6 @@ public function is(\WP_Query $query): bool | |
*/ | ||
public function leaves(\WP_Query $query): array | ||
{ | ||
return ['paged']; | ||
return ['privacy-policy']; | ||
} | ||
} |
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