Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/reusable-phpunit-tests-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@ jobs:
permissions:
contents: read

services:
mysql:
image: mysql:8.0
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress_develop
options: >-
--health-cmd="mysqladmin ping --silent"
--health-interval=10s
--health-timeout=5s
--health-retries=5

steps:
- name: Configure environment variables
run: |
Expand Down
52 changes: 52 additions & 0 deletions patches/@wordpress+core-data+7.33.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
diff --git a/node_modules/@wordpress/core-data/src/utils/crdt-blocks.ts b/node_modules/@wordpress/core-data/src/utils/crdt-blocks.ts
index 90a0698..594bb03 100644
--- a/node_modules/@wordpress/core-data/src/utils/crdt-blocks.ts
+++ b/node_modules/@wordpress/core-data/src/utils/crdt-blocks.ts
@@ -10,7 +10,7 @@ import fastDeepEqual from 'fast-deep-equal/es6';
import { RichTextData } from '@wordpress/rich-text';
import { Y } from '@wordpress/sync';

-// @ts-expect-error No exported types.
+
import { getBlockTypes } from '@wordpress/blocks';

/**
diff --git a/node_modules/@wordpress/core-data/tsconfig.json b/node_modules/@wordpress/core-data/tsconfig.json
index 57c9d20..2c450c0 100644
--- a/node_modules/@wordpress/core-data/tsconfig.json
+++ b/node_modules/@wordpress/core-data/tsconfig.json
@@ -1,25 +1,10 @@
{
- "$schema": "https://json.schemastore.org/tsconfig.json",
- "extends": "../../tsconfig.base.json",
- "compilerOptions": {
- "checkJs": false,
- "noImplicitAny": false
- },
- "references": [
- { "path": "../api-fetch" },
- { "path": "../compose" },
- { "path": "../block-editor" },
- { "path": "../data" },
- { "path": "../deprecated" },
- { "path": "../element" },
- { "path": "../html-entities" },
- { "path": "../i18n" },
- { "path": "../is-shallow-equal" },
- { "path": "../private-apis" },
- { "path": "../rich-text" },
- { "path": "../sync" },
- { "path": "../undo-manager" },
- { "path": "../url" },
- { "path": "../warning" }
- ]
+ "$schema": "https://json.schemastore.org/tsconfig.json",
+ "compilerOptions": {
+ "skipLibCheck": true,
+ "esModuleInterop": true,
+ "noEmit": true,
+ "composite": true
+
+ }
}
\ No newline at end of file
5 changes: 5 additions & 0 deletions src/wp-includes/taxonomy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2574,6 +2574,11 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) {

$slug = wp_unique_term_slug( $slug, (object) $args );

// Truncate the slug if it's longer than 200 characters to avoid DB errors (see #46010).
if ( strlen( $slug ) > 200 ) {
$slug = substr( $slug, 0, 200 );
}

$data = compact( 'name', 'slug', 'term_group' );

/**
Expand Down
Loading