mirror of
https://github.com/10h30/trestle.git
synced 2026-07-12 03:06:15 +09:00
IMPORTANT: Fix bug with tresle_post_info_meta() function causing posts to spontaneously change post_type when running looping through a query. Please update to this patch if you have a previous version.
This commit is contained in:
@@ -228,6 +228,12 @@ function trestle_settings_box() {
|
||||
<?php
|
||||
$post_types = get_post_types();
|
||||
foreach ( $post_types as $post_type ) {
|
||||
// Don't show this option for pages, since genesis_post_info/meta won't work for pages
|
||||
if ( 'page' == $post_type ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Otherwise generate post info settings
|
||||
$post_type_object = get_post_type_object( $post_type );
|
||||
$name = $post_type_object->labels->name;
|
||||
$slug = $post_type_object->name;
|
||||
@@ -248,6 +254,12 @@ function trestle_settings_box() {
|
||||
<?php
|
||||
$post_types = get_post_types();
|
||||
foreach ( $post_types as $post_type ) {
|
||||
// Don't show this option for pages, since genesis_post_info/meta won't work for pages
|
||||
if ( 'page' == $post_type ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Otherwise generate post meta settings
|
||||
$post_type_object = get_post_type_object( $post_type );
|
||||
$name = $post_type_object->labels->name;
|
||||
$slug = $post_type_object->name;
|
||||
|
||||
Reference in New Issue
Block a user