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

Make sure customer cookie value is url decoded prior to use #1787

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JeffPyeBrook
Copy link
Contributor

addresses issue #1786

Make sure customer cookie value is decoded prior to breaking it into components, in php and js/wp-e-commerce

Much console output is being generated in the WPeC javascript, this output is useful when examining cases, but the rest of the time it is a distraction and makes it more difficult to notice problems, so...

Wrapped output to console in test to see if we are in debug mode
Added debug mode indicator to localized javascript data when debug mode is enabled at the server
Added utility routine to check for debug mode to core

Utility routine that checks for debug mode enabled implemented.

Debug mode determined to be enabled when WordPress debug mode is enabled via constant definition
Debug mode determined to be enabled when WPeC debug mode is enabled via constant definition
Debug mode can be enabled/disabled persistently at runtime by a logged in administrative user putting a parameter onto a store url. This will enable WPeC support to enable debug mode via the internet without having to access source code.

Also: added check to wpsc_element_is_visible so it doesn't error when called with an undefined element. That call happens when non-standard checkout form field configurations are used.

…nto components, in php and js/wp-e-commerce

Wrapped output to console in test to see if we are in debug mode
Added debug mode indicator to localized javascript data when debug mode is enabled at the server
Added utility routine to check for debug mode to core

Utility routine that checks for debug mode enabled implemented.

Debug mode determined to be enabled when WordPress debug mode is enabled via constant definition
Debug mode determined to be enabled when WPeC debug mode is enabled via constant definition
Debug mode can be enabled/disabled persistently at runtime by a logged in administrative user putting a parameter onto a store url. This will enable WPeC support to enable debug mode via the internet without having to access source code.

Conflicts:
	wpsc-core/js/wp-e-commerce.js
found one more bug, a $ prefixed variable name
@JeffPyeBrook
Copy link
Contributor Author

@JustinSainton jshint driven cleanup of changed areas, found and fixed another type/defect

@JustinSainton
Copy link
Member

@JeffPyeBrook Can we rebase and get this in 4.0?

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.

2 participants