Make WordPress Core

Ticket #30092: diff.diff

File diff.diff, 546 bytes (added by ipm-frommen, 11 years ago)
  • wp-includes/post.php

    diff --git a/wp-includes/post.php b/wp-includes/post.php
    index e9d9317..8e6ec60 100644
    a b function register_post_type( $post_type, $args = array() ) { 
    13521352
    13531353        // If not set, default to the whether the full UI is shown.
    13541354        if ( null === $args->show_in_admin_bar )
    1355                 $args->show_in_admin_bar = true === $args->show_in_menu;
     1355                $args->show_in_admin_bar = (bool) $args->show_in_menu;
    13561356
    13571357        // If not set, default to the setting for public.
    13581358        if ( null === $args->show_in_nav_menus )