Make WordPress Core

Ticket #35398: 35398.patch

File 35398.patch, 3.2 KB (added by sebastian.pisula, 9 years ago)
  • wp-includes/query.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    17471747                                $post_type_obj = get_post_type_object( $qv['post_type'] );
    17481748                                if ( ! empty( $post_type_obj->has_archive ) )
    17491749                                        $this->is_post_type_archive = true;
     1750
     1751                                if ( !is_admin() && ! empty( $post_type_obj->posts_per_archive_page ) )
     1752                                        $qv['posts_per_archive_page'] = $post_type_obj->posts_per_archive_page;
    17501753                        }
    17511754
    17521755                        if ( $this->is_post_type_archive || $this->is_date || $this->is_author || $this->is_category || $this->is_tag || $this->is_tax )
  • wp-includes/post.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    10151015
    10161016        // Args prefixed with an underscore are reserved for internal use.
    10171017        $defaults = array(
    1018                 'labels'               => array(),
    1019                 'description'          => '',
    1020                 'public'               => false,
    1021                 'hierarchical'         => false,
    1022                 'exclude_from_search'  => null,
    1023                 'publicly_queryable'   => null,
    1024                 'show_ui'              => null,
    1025                 'show_in_menu'         => null,
    1026                 'show_in_nav_menus'    => null,
    1027                 'show_in_admin_bar'    => null,
    1028                 'menu_position'        => null,
    1029                 'menu_icon'            => null,
    1030                 'capability_type'      => 'post',
    1031                 'capabilities'         => array(),
    1032                 'map_meta_cap'         => null,
    1033                 'supports'             => array(),
    1034                 'register_meta_box_cb' => null,
    1035                 'taxonomies'           => array(),
    1036                 'has_archive'          => false,
    1037                 'rewrite'              => true,
    1038                 'query_var'            => true,
    1039                 'can_export'           => true,
    1040                 'delete_with_user'     => null,
    1041                 '_builtin'             => false,
    1042                 '_edit_link'           => 'post.php?post=%d',
     1018                        'labels'                 => array(),
     1019                        'description'            => '',
     1020                        'public'                 => false,
     1021                        'hierarchical'           => false,
     1022                        'exclude_from_search'    => null,
     1023                        'publicly_queryable'     => null,
     1024                        'show_ui'                => null,
     1025                        'show_in_menu'           => null,
     1026                        'show_in_nav_menus'      => null,
     1027                        'show_in_admin_bar'      => null,
     1028                        'menu_position'          => null,
     1029                        'menu_icon'              => null,
     1030                        'capability_type'        => 'post',
     1031                        'capabilities'           => array(),
     1032                        'map_meta_cap'           => null,
     1033                        'supports'               => array(),
     1034                        'register_meta_box_cb'   => null,
     1035                        'taxonomies'             => array(),
     1036                        'has_archive'            => false,
     1037                        'rewrite'                => true,
     1038                        'query_var'              => true,
     1039                        'can_export'             => true,
     1040                        'delete_with_user'       => null,
     1041                        'posts_per_archive_page' => null,
     1042                        '_builtin'               => false,
     1043                        '_edit_link'             => 'post.php?post=%d',
    10431044        );
    10441045        $args = array_merge( $defaults, $args );
    10451046        $args = (object) $args;