Blog

Function / Class Reordering

The plugin files contain a number of function definitions that could be better ‘sorted’. Should functions be by alphabetically (with __construct always at top for class definitions)? Or should the functions be sorted another way?

Dropping NicEdit — Even if TinyMCE isn’t ready to ship in 2.0

I think we really need to drop NicEdit in favor of a different ‘light-weight’ editor that’s actively maintained. I’m voting for CLEditor, it’s even smaller than NicEdit, and it’s used by @scribu in his Front-end Editor plugin. We can likely review his plugin and determine how best to implement within Pods based on what he …

Read more

Revised Code Formatting Rules for 2.0+

After discussion with @logikal16, here are the new rules we’ll be enforcing on the Pods codebase. Shorthand Shorthand can get messy, so it’s permitted in simple cases. Here are the examples where Shorthand usage is permitted. if (0 < $variable || false !== $variable)     $do = ‘something’; else     $do = ‘something’; and $do = (0 …

Read more