Make WordPress Core


Ignore:
Timestamp:
11/17/2010 06:48:27 PM (16 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/tinymce/wp-mce-link-includes.php

    r16399 r16439  
    44        $pts = get_post_types( array( 'publicly_queryable' => true ), 'objects' );
    55        $pt_names = array_keys( $pts );
    6        
     6
    77        $query = array(
    88                'post_type' => $pt_names,
     
    2929        if ( ! $get_posts->post_count )
    3030                return false;
    31        
     31
    3232        // Build results.
    3333        $results = array();
     
    3737                else
    3838                        $info = $pts[ $post->post_type ]->labels->singular_name;
    39                
     39
    4040                $results[] = array(
    4141                        'ID' => $post->ID,
     
    5959        if ( ! isset( $results ) )
    6060                die( '0' );
    61        
     61
    6262        echo json_encode( $results );
    6363        echo "\n";
Note: See TracChangeset for help on using the changeset viewer.