Making WordPress.org

Changeset 8869


Ignore:
Timestamp:
05/27/2019 02:59:04 AM (6 years ago)
Author:
tellyworth
Message:

DevHub: allow CPT access via REST API

There's some discussion on the ticket about possible load issues, but the best way to find out is to try it and revert if necessary.

Props SergeyBiryukov.
Fixes #2349.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/handbooks.php

    r8688 r8869  
    183183        }
    184184
     185        $defaults['show_in_rest'] = true;
     186
    185187        return $defaults;
    186188    }
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/registrations.php

    r8664 r8869  
    7272            ),
    7373            'supports'    => $supports,
     74            'show_in_rest' => true,
    7475        ) );
    7576
     
    105106            ),
    106107            'supports'    => $supports,
     108            'show_in_rest' => true,
    107109        ) );
    108110
     
    134136            ),
    135137            'supports'    => $supports,
     138            'show_in_rest' => true,
    136139        ) );
    137140
     
    163166            ),
    164167            'supports'    => $supports,
     168            'show_in_rest' => true,
    165169        ) );
    166170    }
     
    196200            'sort'                  => false,
    197201            'update_count_callback' => '_update_post_term_count',
     202            'show_in_rest'          => true,
    198203        ) );
    199204
     
    206211            'sort'                  => false,
    207212            'update_count_callback' => '_update_post_term_count',
     213            'show_in_rest'          => true,
    208214        ) );
    209215
     
    216222            'sort'                  => false,
    217223            'update_count_callback' => '_update_post_term_count',
     224            'show_in_rest'          => true,
    218225        ) );
    219226    }
Note: See TracChangeset for help on using the changeset viewer.