diff --git src/wp-includes/link-template.php src/wp-includes/link-template.php
index 7cd756c4dd..c7b2c01203 100644
|
|
function permalink_anchor( $mode = 'id' ) { |
101 | 101 | * @return bool Whether to use a plain permalink structure. |
102 | 102 | */ |
103 | 103 | function wp_force_plain_post_permalink( $post = null, $sample = null ) { |
| 104 | /** |
| 105 | * Filters whether to disable forced plain post permalinks. |
| 106 | * |
| 107 | * If disabled, wp_force_plain_post_permalink will always return false. |
| 108 | * |
| 109 | * @since 5.7.1 |
| 110 | * |
| 111 | * @param bool $disabled Whether forced plain post parmalinks should be disabled. |
| 112 | */ |
| 113 | if ( apply_filters( 'forced_plain_post_permalinks_disabled', false ) ) { |
| 114 | return false; |
| 115 | } |
104 | 116 | if ( |
105 | 117 | null === $sample && |
106 | 118 | is_object( $post ) && |