Skip to content
Merged
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
10 changes: 10 additions & 0 deletions sqlite-database-integration-loader.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<?php
/**
* Plugin Name: SQLite Database Integration Loader
* Description: Loads the bundled SQLite Database Integration admin interface from its MU Plugin subdirectory.
* Version: 1.0.0
* Author: soulteary
* License: Apache-2.0
*
* @package sqlite-database-integration-loader
*/

if ( ! defined( 'ABSPATH' ) ) { exit; }
$sqlite_ui = __DIR__ . '/sqlite-database-integration/load.php';
if ( is_readable( $sqlite_ui ) ) {
Expand Down
1 change: 1 addition & 0 deletions sqlite-local-core-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Plugin Name: SQLite WordPress Local Core Update
* Description: Uses the core upgrade archive bundled with the container when WordPress offers the matching version.
* Version: 1.0.1
* Author: soulteary
* License: Apache-2.0
*/

Expand Down
28 changes: 28 additions & 0 deletions tests/test-mu-plugin-metadata.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
set -euo pipefail

mapfile -t project_mu_plugins < <(
sed -nE 's#^COPY[[:space:]]+([^[:space:]]+)[[:space:]]+\$\{WORDPRESS_PREPARE_DIR\}/wp-content/mu-plugins/[^[:space:]]+\.php$#\1#p' Dockerfile
)

if (( ${#project_mu_plugins[@]} == 0 )); then
echo "No project-owned MU Plugin sources were found in Dockerfile." >&2
exit 1
fi

for plugin in "${project_mu_plugins[@]}"; do
if [[ ! -f "${plugin}" ]]; then
echo "Project-owned MU Plugin source is missing: ${plugin}" >&2
exit 1
fi
if ! grep -Eq '^[[:space:]]*\*[[:space:]]+Plugin Name:[[:space:]]+[^[:space:]]' "${plugin}"; then
echo "Project-owned MU Plugin is missing Plugin Name metadata: ${plugin}" >&2
exit 1
fi
if ! grep -Eq '^[[:space:]]*\*[[:space:]]+Author:[[:space:]]+soulteary[[:space:]]*$' "${plugin}"; then
echo "Project-owned MU Plugin is not attributed to soulteary: ${plugin}" >&2
exit 1
fi
done

echo "Project-owned MU Plugin metadata is valid."