Changeset 18234
- Timestamp:
- 06/10/2011 05:02:03 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r18112 r18234 242 242 <div class="inside"> 243 243 <?php 244 $sample_permalink_html = ! empty( $post_type_object->publicly_queryable )? get_sample_permalink_html($post->ID) : '';244 $sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : ''; 245 245 $shortlink = wp_get_shortlink($post->ID, 'post'); 246 246 if ( !empty($shortlink) ) 247 247 $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>'; 248 248 249 if ( ! empty( $post_type_object->publicly_queryable )&& ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?>249 if ( $post_type_object->public && ! ( 'pending' == $post->post_status && !current_user_can( $post_type_object->cap->publish_posts ) ) ) { ?> 250 250 <div id="edit-slug-box"> 251 251 <?php -
trunk/wp-admin/includes/class-wp-posts-list-table.php
r18158 r18234 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 ) -
trunk/wp-admin/includes/internal-linking.php
r18207 r18234 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 -
trunk/wp-includes/post.php
r18211 r18234 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. */ … … 4205 4206 $add_seconds_server = date('Z'); 4206 4207 4207 $post_types = get_post_types( array( 'public ly_queryable' => true ) );4208 $post_types = get_post_types( array( 'public' => true ) ); 4208 4209 array_walk( $post_types, array( &$wpdb, 'escape_by_ref' ) ); 4209 4210 $post_types = "'" . implode( "', '", $post_types ) . "'";
Note: See TracChangeset
for help on using the changeset viewer.