Skip to content

Commit 5f5a2be

Browse files
authored
Merge pull request #261 from wpengine/previews-remove-uri-tag
fix: remove URI parameter
2 parents af2b4ea + 4d60ae9 commit 5f5a2be

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

plugins/hwp-previews/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ With HWP Previews, you can define dynamic URL templates, enforce unique slugs fo
3636
* `{slug}` – Post slug
3737
* `{parent_ID}` – Parent post ID (hierarchical types)
3838
* `{type}` – Post type slug
39-
* `{uri}` – Page URI/path
4039
* `{template}` – Template filename
4140

4241
* **Unique Post Slugs**: Force unique slugs for all post statuses in the post status config.

plugins/hwp-previews/src/Preview/Parameter/Preview_Parameter_Registry.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ public static function add_initial_parameters( self $instance ): self {
6161
new Preview_Parameter( 'parent_ID', static fn( WP_Post $post ) => (string) $post->post_parent, 'ID of a post parent post.' )
6262
)->register(
6363
new Preview_Parameter( 'type', static fn( WP_Post $post ) => $post->post_type, 'The post type, like post or page.' )
64-
)->register(
65-
new Preview_Parameter( 'uri', static fn( WP_Post $post ) => (string) get_page_uri( $post ), 'The URI path for a page.' )
6664
)->register(
6765
new Preview_Parameter( 'template', static fn( WP_Post $post ) => (string) get_page_template_slug( $post ), 'Specific template filename for a given post.' )
6866
);

0 commit comments

Comments
 (0)