Skip to content

Commit 7dcc5c3

Browse files
committed
AI: Remove unnecessary PHP AI Client polyfills file.
These functions, which are needed for the package, are already polyfilled by WordPress Core. They were never loaded by the custom autoloader in Core anyway, so they are dead code that is safe to remove. Props gziolo. See #64591. git-svn-id: https://develop.svn.wordpress.org/trunk@61786 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 50d6cf5 commit 7dcc5c3

2 files changed

Lines changed: 3 additions & 91 deletions

File tree

src/wp-includes/php-ai-client/src/polyfills.php

Lines changed: 0 additions & 91 deletions
This file was deleted.

tools/php-ai-client/installer.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ for path in "${REMOVE_PATHS[@]}"; do
225225
rm -rf "$TARGET_DIR/third-party/$path"
226226
done
227227

228+
# Remove polyfills.php — WordPress Core already provides these functions in compat.php.
229+
rm -f "$TARGET_DIR/src/polyfills.php"
230+
228231
# ---------------------------------------------------------------------------
229232
# Generate autoload.php
230233
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)