-
Notifications
You must be signed in to change notification settings - Fork 138
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
Adds namespacing and makes function naming more consistent. #773
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like where this is going! I think we need to discuss the actual namespace prefix(es) but that can be a group discussion 😎
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can neither approve or reject this, I think either way we go Namespacing is super helpful here. I also like the nested namespacing e.g. for wd_s\functions
and wd_s\template_tags
vs. just piling them all in a single wd_s
namespace.
Please see my advise though, as I think we can format this a little better...
@batesweb – it looks like this branch is a bit out of date now, and I'm not sure the full status of these updates. When you get a chance, can you review this branch, bring it up to date, and set it R4R if it's ready for final testing & review? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Liking these latest changes using print_
and get_
from the BEE feedback.
…use the custom function (get_post_content) to get content instead of wordpress default get_the_content
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Closes #769
DESCRIPTION
Removes the function prefixes (
_s
) and adds theWD_S
namespace throughout the theme.Updates function names to be more consistent. Functions that render markup start with
display_
and functions that return data start withreturn_
.SCREENSHOTS
Doesn't change anything visual in the theme. Just refactors the existing code.
OTHER
STEPS TO VERIFY
Test all theme functionality to make sure there are no namespacing issues.
DOCUMENTATION
Will this pull request require updating the wd_s wiki?