File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
assets/js/components/term-selector Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export default function TermSelector({
2727 const fetchTermData = async ( ) => {
2828 if ( debouncedSearchTerm ) {
2929 const newSearchResults = await apiFetch ( {
30- path : `/${ taxonomies [ taxonomy ] . rest_namespace } /${ taxonomies [ taxonomy ] . rest_base } ?search=${ debouncedSearchTerm } ` ,
30+ path : `/${ taxonomies [ taxonomy ] . rest_namespace } /${ taxonomies [ taxonomy ] . rest_base } ?search=${ debouncedSearchTerm } &per_page=50 ` ,
3131 } ) ;
3232 newSearchResults . forEach ( ( result ) => termCache . set ( result ) ) ;
3333 setSearchResults ( newSearchResults ) ;
Original file line number Diff line number Diff line change @@ -436,6 +436,11 @@ public function action_admin_enqueue_scripts( $hook ) {
436436 * @access public
437437 */
438438 public function action_enqueue_block_editor_assets (): void {
439+
440+ if ( empty ( Admin_Apple_Settings_Section::$ loaded_settings ['post_types ' ] ) ) {
441+ return ;
442+ }
443+
439444 // Bail if the post type is not one of the Publish to Apple News post types configured in settings.
440445 if ( ! in_array ( get_post_type (), (array ) Admin_Apple_Settings_Section::$ loaded_settings ['post_types ' ], true ) ) {
441446 return ;
You can’t perform that action at this time.
0 commit comments