-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
General refactoring #284
Comments
Hi @zymeth25, happy new year! 🎉 That class in particular should be rather easy to test compared to others. Thanks for all the hard work you've been doing for the plugin! |
Yes, I think using static functions in |
Looking at tags and classes now, the code is a bit inconsistent with what's written in the wiki, for instatnce the default tag for |
@picandocodigo I'm working on CatListDisplayer, refactoring and moving tag/class wrapping to a separate class. I noticed something I'd like to discuss with you because it requires a decision to be made to solve inconsistencies. So when we are not using templates everything is fine, but when using templates we have 3 different
Different methods of this class have different behavior, one of those 3. I think this really should be unified. My suggestion is the second option, shortcode params take precedence over function arguments. Once this is decided I'll finish my work and submit a PR. |
Yes, my intention in general was to have divs as default, but I might have missed a few. If there's any specific inconsistency that's too different from the rest, we could fix it and just add a message on the changelog and readme. I agree with the different scenarios for the template too, parameters should take precedence. We should just document it and go that way. Thanks for all your work! |
Hi @picandocodigo , hope all is well in the new year 😉 Following what you said over two weeks ago:
I'd like to focus on refactoring and writing tests before I send any other enhancements I've been thinking about. I'm opening this thread so that we can agree on what to do and how: I know you are refactoring stuff yourself so I don't wont to unnecessarily double your work.
To start, I'm planning to:
LcpCatListDisplayer
so that all the wrapping in[whatever]_tag
and[whatever]_class
is done in a speparate class, write a test suit for thisLcpCategory
LcpCategory
works as intendedget_post_title()
(this list is meant to be edited as things are done or new ideas appear)
The text was updated successfully, but these errors were encountered: