| @@ -171,9 +171,9 @@ | ||
| 171 | 171 | |
| 172 | 172 | // Main query restriction. |
| 173 | 173 | echo '<tr>'; |
| 174 | 174 | echo '<td style="' . esc_attr( $font_style ) . '">Main Query Restriction</td>'; |
| 175 | - echo '<td style="' . esc_attr( $font_style ) . '">' . ( $main_query_restrictions ? '<a href="' . esc_url( $main_query_restrictions->get_edit_link() ) . '" target="_blank">' . esc_html( $main_query_restrictions->title ) . '</a>' : 'None' ) . '</td>'; | |
| 175 | + echo '<td style="' . esc_attr( $font_style ) . '">' . ( $main_query_restrictions ? '<a href="' . esc_url_raw( $main_query_restrictions->get_edit_link() ) . '" target="_blank">' . esc_html( $main_query_restrictions->title ) . '</a>' : 'None' ) . '</td>'; | |
| 176 | 176 | echo '</tr>'; |
| 177 | 177 | |
| 178 | 178 | echo '</tbody>'; |
| 179 | 179 | echo '</table>'; |
| @@ -234,9 +234,9 @@ | ||
| 234 | 234 | |
| 235 | 235 | $restrictions_html = []; |
| 236 | 236 | |
| 237 | 237 | foreach ( $restrictions as $restriction ) { |
| 238 | - $restrictions_html[] = '<a href="' . esc_url( $restriction->get_edit_link() ) . '" target="_blank">' . esc_html( $restriction->title ) . '</a>'; | |
| 238 | + $restrictions_html[] = '<a href="' . esc_url_raw( $restriction->get_edit_link() ) . '" target="_blank">' . esc_html( $restriction->title ) . '</a>'; | |
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | echo '<td>' . wp_kses( join( ', ', $restrictions_html ), [ |
| 242 | 242 | 'a' => [ |