Changeset 16439 for trunk/wp-includes/js/tinymce/wp-mce-link-includes.php
- Timestamp:
- 11/17/2010 06:48:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/tinymce/wp-mce-link-includes.php
r16399 r16439 4 4 $pts = get_post_types( array( 'publicly_queryable' => true ), 'objects' ); 5 5 $pt_names = array_keys( $pts ); 6 6 7 7 $query = array( 8 8 'post_type' => $pt_names, … … 29 29 if ( ! $get_posts->post_count ) 30 30 return false; 31 31 32 32 // Build results. 33 33 $results = array(); … … 37 37 else 38 38 $info = $pts[ $post->post_type ]->labels->singular_name; 39 39 40 40 $results[] = array( 41 41 'ID' => $post->ID, … … 59 59 if ( ! isset( $results ) ) 60 60 die( '0' ); 61 61 62 62 echo json_encode( $results ); 63 63 echo "\n";
Note: See TracChangeset
for help on using the changeset viewer.