Skip to content

Commit

Permalink
Taxonomies: Load all taxonomies (#9635)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Sep 6, 2018
1 parent 53681ca commit 8517779
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ function gutenberg_editor_scripts_and_styles( $hook ) {
$preload_paths = array(
'/',
'/wp/v2/types?context=edit',
'/wp/v2/taxonomies?context=edit',
'/wp/v2/taxonomies?per_page=-1&context=edit',
sprintf( '/wp/v2/%s/%s?context=edit', $rest_base, $post->ID ),
sprintf( '/wp/v2/types/%s?context=edit', $post_type ),
sprintf( '/wp/v2/users/me?post_type=%s&context=edit', $post_type ),
Expand Down
2 changes: 1 addition & 1 deletion packages/core-data/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { REDUCER_KEY } from './name';
const createEntityRecordGetter = ( source ) => defaultEntities.reduce( ( result, entity ) => {
const { kind, name } = entity;
result[ getMethodName( kind, name ) ] = ( state, key ) => source.getEntityRecord( state, kind, name, key );
result[ getMethodName( kind, name, 'get', true ) ] = ( state ) => source.getEntityRecords( state, kind, name );
result[ getMethodName( kind, name, 'get', true ) ] = ( state, ...args ) => source.getEntityRecords( state, kind, name, ...args );
return result;
}, {} );

Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/post-taxonomies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default compose( [
withSelect( ( select ) => {
return {
postType: select( 'core/editor' ).getCurrentPostType(),
taxonomies: select( 'core' ).getTaxonomies(),
taxonomies: select( 'core' ).getTaxonomies( { per_page: -1 } ),
};
} ),
] )( PostTaxonomies );
Expand Down

0 comments on commit 8517779

Please sign in to comment.