From 7ffa1625c8059419b9aaebb876800855e03cd7ea Mon Sep 17 00:00:00 2001 From: Javier Villanueva Date: Sat, 15 Dec 2018 20:35:32 +0000 Subject: [PATCH] Include server side script on load --- lib/load.php | 3 +++ packages/block-library/src/tag-cloud/edit.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/load.php b/lib/load.php index ee1c973f99568a..da1a0f7092c41b 100644 --- a/lib/load.php +++ b/lib/load.php @@ -74,3 +74,6 @@ if ( ! function_exists( 'render_block_core_shortcode' ) ) { require dirname( __FILE__ ) . '/../packages/block-library/src/shortcode/index.php'; } +if ( ! function_exists( 'render_block_core_tag_cloud' ) ) { + require dirname( __FILE__ ) . '/../packages/block-library/src/tag-cloud/index.php'; +} diff --git a/packages/block-library/src/tag-cloud/edit.js b/packages/block-library/src/tag-cloud/edit.js index e1eb2e59262ad8..f9765a248a0fd6 100644 --- a/packages/block-library/src/tag-cloud/edit.js +++ b/packages/block-library/src/tag-cloud/edit.js @@ -118,6 +118,6 @@ class TagCloudEdit extends Component { export default withSelect( ( select ) => { return { - taxonomies: select( 'core' ).getTaxonomies(), + taxonomies: select( 'core' ).getTaxonomies( { per_page: -1 } ), }; } )( TagCloudEdit );