← All changes
|
src/integrations/watchers/indexable-permalink-watcher.php
+10
-4
18.0
→
trunk
View file →
| @@ -85,8 +85,10 @@ | ||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * Resets the permalinks for everything that is related to the permalink structure. |
| 89 | + * | |
| 90 | + * @return void | |
| 89 | 91 | */ |
| 90 | 92 | public function reset_permalinks() { |
| 91 | 93 | |
| 92 | 94 | $post_types = $this->get_post_types(); |
| @@ -110,8 +112,10 @@ | ||
| 110 | 112 | /** |
| 111 | 113 | * Resets the permalink for the given post type. |
| 112 | 114 | * |
| 113 | 115 | * @param string $post_type The post type to reset. |
| 116 | + * | |
| 117 | + * @return void | |
| 114 | 118 | */ |
| 115 | 119 | public function reset_permalinks_post_type( $post_type ) { |
| 116 | 120 | $this->indexable_helper->reset_permalink_indexables( 'post', $post_type ); |
| 117 | 121 | $this->indexable_helper->reset_permalink_indexables( 'post-type-archive', $post_type ); |
| @@ -119,13 +123,15 @@ | ||
| 119 | 123 | |
| 120 | 124 | /** |
| 121 | 125 | * Resets the term indexables when the base has been changed. |
| 122 | 126 | * |
| 123 | - * @param string $old Unused. The old option value. | |
| 124 | - * @param string $new Unused. The new option value. | |
| 125 | - * @param string $type The option name. | |
| 127 | + * @param string $old_value Unused. The old option value. | |
| 128 | + * @param string $new_value Unused. The new option value. | |
| 129 | + * @param string $type The option name. | |
| 130 | + * | |
| 131 | + * @return void | |
| 126 | 132 | */ |
| 127 | - public function reset_permalinks_term( $old, $new, $type ) { | |
| 133 | + public function reset_permalinks_term( $old_value, $new_value, $type ) { | |
| 128 | 134 | $subtype = $type; |
| 129 | 135 | |
| 130 | 136 | $reason = Indexing_Reasons::REASON_PERMALINK_SETTINGS; |
| 131 | 137 | |