So...
I was writing a java gamefor about 2 weeks before a freind of mine called me up and gave me some details of website work. Now, I like money, and I also like programming. And with my previous experiences with wordpress and etc I figured not that big of a deal.
However, I've never gone that in depth into wordpess, always finding workarounds and essentially using php with wordpress and a derp admin system.
Since I've been working so hard on my java stuff I figured I'd learn the codex and actually use wordpress properly.
Little did I realize that Javas documentation and uses are far more my style than wordpresses. I'm used to going in depth, barebones and figuring out things for myself. Java is nice because I can create my abstract class then base everything off from there. Seperate any rendering that I need to get done either into its own class or individualized.
![]() |
| Lists of data I'm comfortable with, wordpress style doesn't feel righte |
In wordpress its a different.
1) Register Post Type
-register Post type isn't really about creating an object at all, its more about what it will be named and how admins will deal with it. On top of your selection of micky D meals (premade aspects that are useful and saves you time) when it comes to meta boxes are quite limited.
But I severely question the design concept to make sure people had extrodinair customization of labeling and visibility yet limited content.
Now, I feel that this sin't 100% a bad decision and in fact gives us as developers the drive and desire to be creative. The idea is "Hey We'll only give you our Core. But You can add in Yours!"
2) add_meta_box
So.... This is it?
Fyi, these are all semantic details and call back html.
Meaning.... even though I just added a meta box, it inheritly does nothing except exsists....
But thats cool when it comes to objects. I understand that... You start off with an abstract and you turn it into an object.
And for what its worth, I was able to just turn a function into an abstract for the rest of my post types. No big deal.
But It was kind of Disturbing how I had to add in my data. not because its difficult, but because I felt as though it would have been easier to do it through he core of php than use wordpress...
3) Metabox HTML
now, I feel the nonce could be created itself by just simply doing it without my need to add it.
And for what its worth, I don't feel intergrated into wordpress. I may be, but its just html... Nothing fancy, no jquery aspects, just html.
But thats fine, it allows me to do customization...
But thats fine, it allows me to do customization...
4) Saving the Return
And finally... I save.
I save post variables. I have post, i have post_id
but for what its worth I don't think its necessarilly appropiate for a proper CMS
theres room for human error when it comes to efficiency and security. While if they forced each metabox to be saved through their system they can set them to IDs making each aspect much more semantic rather efficient than giving the oppertunity for a plugin creator to mess up (Myself included).
Conclusion
In general, I enjoy the interface but when it comes down to it, I'm not really getting in it, I'm simply asking for a box. A box to put in html that I'm forced to customize myself using javascript footer hooks and css header hooks. Making a saving feature that shouldn't even need to be done by me for the mere fact that the need to make sure their system is secure. If I don't create the nonces or make sure that people with capabilities aren't editing it, would my system be secure? if I make a loop and allow any div with mozoData inside, would script kitties try to create their own random inputs with names associated with mozo? shouldI really be in control over ids of the wp_admin screen? should I? I think not. for the simple reason they need to make sure each ID is alone. no multiples. period. meta boxes should be objects in themselves. I should be able to create my own meta box just like I would create a new post type,
In general, the system isn't really secure, its not very object oriented and its hardly integrated into the core
Nonetheless, its modular, pretty and works
And when it comes down to it, if I have something that is modular, pretty and works. I'm pretty happy.




No comments:
Post a Comment