Skip to content

Conversation

@annda
Copy link
Contributor

@annda annda commented Oct 21, 2024

No description provided.

@annda annda requested a review from splitbrain October 21, 2024 11:26
@splitbrain
Copy link
Member

Well, I guess this works, but I am a bit surprised that you implemented it in PHP. Couldn't you continue to return an absolute ID in the AJAX call and pass it to LinkWizard.createRelativeLink in the JavaScript that handles the returned data?

@annda
Copy link
Contributor Author

annda commented Oct 21, 2024

I could use the Javascript function as soon as it is merged into core and available in the next release, or leave this PR hanging here until the next release.

Which way do you prefer?

@splitbrain
Copy link
Member

I think I would prefer a simple check for the existence of the LinkWizard class. When available use the method, if not use the absolute ID.

@annda
Copy link
Contributor Author

annda commented Oct 21, 2024

I have removed the PHP implementation and we just call the LinkWizard function if it is available.

@splitbrain splitbrain merged commit 3d46600 into master Oct 21, 2024
@splitbrain splitbrain deleted the relative branch October 21, 2024 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants