justintadlock / butterbean

A neat little post meta framework.
GNU General Public License v2.0
204 stars 31 forks source link

Unused variable #29

Closed slaFFik closed 7 years ago

slaFFik commented 8 years ago

Here on this line: https://github.com/justintadlock/butterbean/blob/dev/inc/controls/class-control-parent.php#L77

$_post = get_post( $this->manager->post_id );

There is an extra get_post() call and assign results to a variable that never used.

Might be a good idea to delete it, as it is also a potential DB query.