Ticket #17040: 17040.2.diff
File 17040.2.diff, 3.6 KB (added by , 13 years ago) |
---|
-
wp-includes/post.php
31 31 32 32 register_post_type( 'page', array( 33 33 'public' => true, 34 'publicly_queryable' => false, 34 35 '_builtin' => true, /* internal use only. don't use this when registering your own post type. */ 35 36 '_edit_link' => 'post.php?post=%d', /* internal use only. don't use this when registering your own post type. */ 36 37 'capability_type' => 'page', … … 4192 4193 if ( !$date ) { 4193 4194 $add_seconds_server = date('Z'); 4194 4195 4195 $post_types = get_post_types( array( 'public ly_queryable' => true ) );4196 $post_types = get_post_types( array( 'public' => true ) ); 4196 4197 array_walk( $post_types, array( &$wpdb, 'escape_by_ref' ) ); 4197 4198 $post_types = "'" . implode( "', '", $post_types ) . "'"; 4198 4199 -
wp-admin/includes/class-wp-posts-list-table.php
550 550 if ( 'trash' == $post->post_status || !EMPTY_TRASH_DAYS ) 551 551 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr( __( 'Delete this item permanently' ) ) . "' href='" . get_delete_post_link( $post->ID, '', true ) . "'>" . __( 'Delete Permanently' ) . "</a>"; 552 552 } 553 if ( $post_type_object->public ly_queryable) {553 if ( $post_type_object->public ) { 554 554 if ( in_array( $post->post_status, array( 'pending', 'draft' ) ) ) { 555 555 if ( $can_edit_post ) 556 556 $actions['view'] = '<a href="' . esc_url( add_query_arg( 'preview', 'true', get_permalink( $post->ID ) ) ) . '" title="' . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '" rel="permalink">' . __( 'Preview' ) . '</a>'; -
wp-admin/includes/internal-linking.php
16 16 * @return array Results. 17 17 */ 18 18 function wp_link_query( $args = array() ) { 19 $pts = get_post_types( array( 'public ly_queryable' => true ), 'objects' );19 $pts = get_post_types( array( 'public' => true ), 'objects' ); 20 20 $pt_names = array_keys( $pts ); 21 21 22 22 $query = array( -
wp-admin/edit-form-advanced.php
242 242 </div> 243 243 <div class="inside"> 244 244 <?php 245 $sample_permalink_html = ! empty( $post_type_object->publicly_queryable )? get_sample_permalink_html($post->ID) : '';245 $sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : ''; 246 246 $shortlink = wp_get_shortlink($post->ID, 'post'); 247 247 if ( !empty($shortlink) ) 248 248 $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button" onclick="prompt('URL:', jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>'; 249 249 250 if ( ! empty( $post_type_object->publicly_queryable )&& ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?>250 if ( $post_type_object->public && ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?> 251 251 <div id="edit-slug-box"> 252 252 <?php 253 253 if ( ! empty($post->ID) && ! empty($sample_permalink_html) && 'auto-draft' != $post->post_status )