WordPress Settings API Wrapper

A venit randul meu de data asta :smiley:

E greu de inteles ce se intampla aici: wp-settings-wrapper/Ntz/Utils/Settings.php at master · iamntz/wp-settings-wrapper · GitHub
Nu ar fii mai simplu cu varianta short, daca tot e un template?

Nu e incomod sa testezi cu output buffer, cand e mai simplu sa testezi direct rezultatul functiei?

Unde sunt testele?

Echo vs Return - Functions should never echo code, it should always return. This isn’t as bad as the WordPress 1.x days, but it’s still on my list of issues.
http://milesj.me/blog/read/wordpress-is-bad-mmmk

1 Like