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 the "Change License" modal URL #53

Closed
wants to merge 4 commits into from
Closed

Fix the "Change License" modal URL #53

wants to merge 4 commits into from

Conversation

r-a-y
Copy link

@r-a-y r-a-y commented Sep 21, 2018

This pull request fixes issues with how the "Change License" modal URL is generated, particularly with link argument concatenation.

This allows the plugin to use the old, "Partner Interface" chooser interface: https://wiki.creativecommons.org/wiki/Partner_Interface

Which this plugin relies on, instead of the newer one located here: https://creativecommons.org/choose/

This fixes #52, which I also reported.

Also:

  • Commit 6fd11df tidies up how the HTML markup is generated in the CreativeCommons::select_license_html() method.
  • Commit 9071c39 fixes a potential vulnerability with the modal callback.

Let me know if you have any questions.

Fixes issues with link argument concatenation, which allows the plugin to
use the old Partner Interface chooser interface:
https://wiki.creativecommons.org/wiki/Partner_Interface

Instead of the newer one located here:
https://creativecommons.org/choose/

Commit also tidies up how the HTML markup is generated.

See #52.
);

// HTML markup.
$html = <<<CONTENT
Copy link
Contributor

Choose a reason for hiding this comment

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

Here we should stick to the wordpress quote standard
https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/

Copy link
Author

Choose a reason for hiding this comment

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

Feel free to make the change yourself. We created our own plugin as I mention in #54.

@kgodey kgodey added the help wanted Open to participation from the community label Mar 28, 2019
@TimidRobot
Copy link
Member

We have removed the chooser integration from the plugin for the time being. We hope to add a prettier and better working version back in later: Integrate License Chooser · Issue #70.

@TimidRobot TimidRobot closed this Jul 17, 2019
@TimidRobot TimidRobot assigned TimidRobot and unassigned hugosolar Jul 17, 2019
@r-a-y r-a-y deleted the fix-choose-url branch August 23, 2019 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Open to participation from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants