getdave / Tanlinell

Boilerplate Wordpress theme for rapid development of new WP themes. Based on the great work of the _s ("Underscore") theme.
GNU General Public License v2.0
6 stars 2 forks source link

Extend protected name query helper function #326

Closed getdave closed 10 years ago

getdave commented 10 years ago

Currently only allows you to query "Pages". However add an additional param to allow you to query other post types. The method below ensures this is backwards compatible.

function tanlinell_get_protected_name_query_obj( $protected_page, $post_type = 'page' ) {