Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
Minor text updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Sep 29, 2014
1 parent 22524e5 commit f425da7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

* High Priority
* Add current_user_can checks to metaboxes?
* Internationalize all strings
* Change models to return a WP_Error instead of false or null, so that controllers can get a detailed error message
* Models shouldn't ever add notices, only return error to controller so it can add notice
* Throw exception if encounter unexpected condition, but return WP_Error if just need to return early
Expand Down
3 changes: 1 addition & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ The skeleton for an object-oriented/MVC WordPress plugin.
* Custom hooks for extensibility
* JavaScript event handlers
* A test suite for unit testing with SimpleTest

* Includes `render_template()`, a wrapper for rendering view files that allows other plugins and themes to easily modify or completely override the view.

## Notes

* I decided to not internationalize the skeleton because most of my clients don't need it and having to put all regular text in PHP strings annoys me. If you're distributing the plugin, though, then you should internationalize it.
* I prefer having controllers and models in the same class/file, so I use an unofficial @mvc tag in the phpDoc comments to mentally keep track of which methods are controllers and which are models.
* If you want to learn more about the principles behind the design of this plugin, I gave [a presentation on OOP at WordCamp Seattle 2013](http://iandunn.name/content/presentations/wp-oop-mvc/oop.php), and [another on MVC at WordCamp Columbus 2013](http://iandunn.name/content/presentations/wp-oop-mvc/mvc.php).

Expand Down

0 comments on commit f425da7

Please sign in to comment.