Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MERL-1270: Do not rewrite links in the post editor #1625

Merged
merged 8 commits into from
Nov 15, 2023

Commits on Oct 27, 2023

  1. fix: do not rewrite links in the post editor

    When Faust’s “Enable Post and Category URL rewrites” is enabled, this has been causing URLs to be rewritten in the editor to contain the front-end URL instead of the WP URL, which causes them to be saved to the database this way. Instead, we want the WP URL saved to the database.
    mindctrl committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    ac1b0e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b28506 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f2f4249 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2023

  1. test: confirm post_link filtering behavior.

    Confirms links are not rewritten on post-new.php pages when $_POST is empty. Also confirms Ajax requests to generate sample permalinks are not rewritten. These checks prevent the incorrect guid from being written to the database.
    
    Confirms `wp-link-ajax` Ajax requests are not rewritten. This is used by the Classic Editor when linking content.
    
    chore: update `enable_rewrites` values in tests to be `1` instead of `true`, for consistency.
    mindctrl committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    f86c9a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    592f6b6 View commit details
    Browse the repository at this point in the history
  3. add changeset

    mindctrl committed Oct 31, 2023
    Configuration menu
    Copy the full SHA
    5ed2451 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2023

  1. Configuration menu
    Copy the full SHA
    ca09f06 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2023

  1. Configuration menu
    Copy the full SHA
    14d8384 View commit details
    Browse the repository at this point in the history