Skip to content

Commit 9b23cb7

Browse files
committed
update enqueue script syntax, remove fitlering permalinks function
1 parent 5cf3939 commit 9b23cb7

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

web/app/themes/platformlondon/functions.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@
116116
wp_enqueue_script(
117117
'platformlondon-post',
118118
get_template_directory_uri() . '/script.js',
119-
ver: "1.11",
120-
args: true
119+
array(),
120+
"1.11",
121+
true
121122
);
122123
});
123124

@@ -127,11 +128,6 @@
127128
<?php
128129
});
129130

130-
add_filter("the_permalink", function ($termlink, $term, $taxonomy) {
131-
$taxonomy_param = $taxonomy === "category" ? "category_name" : $taxonomy;
132-
return "/?s=&$taxonomy_param={$term->slug}";
133-
}, 10, 3);
134-
135131
add_filter('post_type_link', function ($post_link, $post) {
136132
if ($post->post_type == 'pl_member') {
137133
$post_link = '/?s=&member=' . $post->ID;

0 commit comments

Comments
 (0)