WordPress.org

Make WordPress Core

Ticket #17040: block-page-post_type-query.diff

File block-page-post_type-query.diff, 532 bytes (added by chrisbliss18, 3 years ago)
  • wp-includes/post.php

    diff --git wp-includes/post.php wp-includes/post.php
    index a930eda..ed90c16 100644
    function create_initial_post_types() { 
    3131 
    3232        register_post_type( 'page', array( 
    3333                'public' => true, 
     34                'publicly_queryable' => false, 
    3435                '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 
    3536                '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 
    3637                'capability_type' => 'page',