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

fixes #32 and fixes #51 #59

Closed
wants to merge 12 commits into from
Closed

fixes #32 and fixes #51 #59

wants to merge 12 commits into from

Conversation

scarstens
Copy link

No description provided.

@scarstens scarstens changed the title fixes #32 fixes #32 and fixes #51 Dec 8, 2015
* @param string $path Path relative to the home URL. Blank string if no path is specified.
* @return string Mangled Content URL
*/
function mangle_content_url( $url, $path) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs an extra space after $path

@rmccue
Copy link
Member

rmccue commented Dec 9, 2015

Sorry for the overcommenting here, kind of stream-of-consciousness. Thanks for the PR!

Do we need the mangle_content_url function separately to the existing mangle_url function? Looks like both take the same first two parameters and return the same thing.

@scarstens
Copy link
Author

I swear I tried using that function first, and there was some reason it didn't work with the other filters. I do agree reading it out of context here that it appears they should be able to merge IF we make the 3rd param optional. Oh, that was it, content_url filter only passes 2 params and causes an error when you try to use this function to filter. I can just set it to null by default. I'll try that.

@scarstens
Copy link
Author

Yup, you were right, I removed the function, corrected everything and tested it.

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