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

Fix theme rewrite removes src attribute when custom plugin directory is used #15965

Merged
merged 1 commit into from May 20, 2020

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented May 19, 2020

Noticed this in Matomo for WordPress which makes use of the ability to define custom plugin directories.

Matomo was supposed to rewrite this img src path

image

to this:

image

but I got this:

image

and as a result the images weren't shown

image

While debugging I noticed it was returning a path ../../plugins/... when it should have returned src="../../plugins/.." see content of $source

image

With the patch things work. Not sure how this worked before and if it actually worked.

…is used

Noticed this in Matomo for WordPress which makes use of the ability to define custom plugin directories.
@tsteur tsteur added the Needs Review PRs that need a code review label May 19, 2020
@tsteur tsteur added this to the 3.13.6 milestone May 19, 2020
@tsteur tsteur merged commit 8951c52 into 3.x-dev May 20, 2020
@tsteur tsteur deleted the themecustomplugindirs branch May 20, 2020 20:51
jonasgrilleres pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 22, 2020
…is used (matomo-org#15965)

Noticed this in Matomo for WordPress which makes use of the ability to define custom plugin directories.
jbuget pushed a commit to 1024pix/pix-analytics that referenced this pull request Sep 26, 2020
…is used (matomo-org#15965)

Noticed this in Matomo for WordPress which makes use of the ability to define custom plugin directories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants