Ian Dunn

Ian Dunn

WordPress Developer

Menu

Skip to content
  • Home
  • About
  • Archives
  • Contact

Monthly Archives: March 2017

Exposing Custom Post Type Meta for Only a Single API Endpoint

I ran into an undocumented and unexpected problem when registering custom post type meta fields for the REST API. register_meta() exposes meta fields in all REST API endpoints, which can lead to privacy leaks. To avoid that, it can be called conditionally.

Continue reading...

Posted on March 30, 2017 by Ian Dunn. Posted in WordPress | Tagged Custom Post Types, Post Meta, Privacy, register_meta(), register_rest_field(), REST API | 2 Comments

`WP_Widget::form()` returns a value

Ever wonder why your IDE complains that your widget's form() method isn't returning a value?

Continue reading...

Posted on March 18, 2017 by Ian Dunn. Posted in WordPress | Tagged Widgets | 2 Comments

Restoring Lost Commits After a Failed `git svn dcommit`

If git svn dcommit fails, it'll appear as if your local commit have been lost, but there's a way to recover them.

Continue reading...

Posted on March 6, 2017 by Ian Dunn. Posted in Version Control | Tagged Git, git-svn | 1 Comment

How Open Source Can Mitigate the Harms of Employer Copyright Claims

Almost every software company claims copyright on their developers' side-projects in order to protect themselves from lawsuits, but there's a way to do it without taking away the employee's rights.

Continue reading...

Posted on March 5, 2017 by Ian Dunn. Posted in Business, Ethics and Values | Tagged Automattic, Copyright, GPL, Joel Spolsky, Open Source, Side Projects | Leave a comment

Subscribe via Email

Feeds & Profiles

  • RSS
  • WordPress.org
  • GitHub
  • HackerOne
  • LinkedIn