Skip to content

Commit 3ddf87c

Browse files
committed
Correct stale documentation metadata
Use the public pdo option name in the connection error, remove @SInCE and @Package annotations, and update the drop-in version header.
1 parent e6b6dfe commit 3ddf87c

15 files changed

Lines changed: 2 additions & 58 deletions

‎packages/mysql-on-sqlite/src/php-polyfills.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* Implementation follows the Symfony polyfill-php80 package.
66
*
77
* @see https://github.com/symfony/polyfill-php80
8-
*
9-
* @package wp-sqlite-integration
108
*/
119

1210
if ( ! function_exists( 'str_starts_with' ) ) {

‎packages/mysql-on-sqlite/src/sqlite/class-wp-mysql-on-sqlite.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,8 +1440,6 @@ public function getAttribute( $attribute ) {
14401440
* Exposes the SQLite PDO for advanced use, bypassing MySQL emulation.
14411441
* Do not retain it across reconnections or modify driver-owned state.
14421442
*
1443-
* @since 3.0.0
1444-
*
14451443
* @return PDO The underlying SQLite PDO instance.
14461444
*/
14471445
public function get_sqlite_pdo(): PDO {

‎packages/mysql-on-sqlite/src/sqlite/class-wp-sqlite-connection.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function __construct( array $options ) {
9393
$this->pdo = $options['pdo'];
9494
} else {
9595
if ( ! isset( $options['path'] ) || ! is_string( $options['path'] ) ) {
96-
throw new InvalidArgumentException( 'Option "path" is required when "connection" is not provided.' );
96+
throw new InvalidArgumentException( 'Option "path" is required when "pdo" is not provided.' );
9797
}
9898
$pdo_class = PHP_VERSION_ID >= 80400 ? PDO\SQLite::class : PDO::class;
9999
$pdo_options = $options['pdo_options'] ?? array();

‎packages/mysql-on-sqlite/src/sqlite/class-wp-sqlite-pdo-user-defined-functions.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22
/**
33
* Custom functions for the SQLite implementation.
4-
*
5-
* @package wp-sqlite-integration
6-
* @since 1.0.0
74
*/
85

96
/**

‎packages/plugin-sqlite-database-integration/activate.php‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
<?php
22
/**
33
* Handle the SQLite activation.
4-
*
5-
* @since 1.0.0
6-
* @package wp-sqlite-integration
74
*/
85

96
/**
107
* Redirect to the plugin's admin screen on activation.
118
*
12-
* @since 1.0.0
13-
*
149
* @param string $plugin The plugin basename.
1510
*/
1611
function sqlite_plugin_activation_redirect( $plugin ) {
@@ -33,8 +28,6 @@ function sqlite_plugin_activation_redirect( $plugin ) {
3328
* the user has permission to manage the database drop-in, and the nonce is valid.
3429
* If the above conditions are met, run the sqlite_plugin_copy_db_file() function,
3530
* and redirect to the install screen.
36-
*
37-
* @since 1.0.0
3831
*/
3932
function sqlite_activation() {
4033
if (

‎packages/plugin-sqlite-database-integration/admin-notices.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22
/**
33
* Functions to add admin notices if necessary.
4-
*
5-
* @since 1.0.0
6-
* @package wp-sqlite-integration
74
*/
85

96
/**

‎packages/plugin-sqlite-database-integration/admin-page.php‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
<?php
22
/**
33
* Functions for the admin page of the plugin.
4-
*
5-
* @since 1.0.0
6-
* @package wp-sqlite-integration
74
*/
85

96
/**
107
* Add an admin menu page.
11-
*
12-
* @since 1.0.0
138
*/
149
function sqlite_add_admin_menu() {
1510
$parent_slug = is_multisite() ? 'settings.php' : 'options-general.php';
@@ -132,8 +127,6 @@ function sqlite_integration_admin_screen() {
132127
/**
133128
* Adds a link to the admin bar.
134129
*
135-
* @since n.e.x.t
136-
*
137130
* @global wpdb $wpdb WordPress database abstraction object.
138131
*
139132
* @param WP_Admin_Bar $admin_bar The admin bar object.

‎packages/plugin-sqlite-database-integration/constants.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22
/**
33
* Define constants for the SQLite implementation.
4-
*
5-
* @since 1.0.0
6-
* @package wp-sqlite-integration
74
*/
85

96
// Temporary - This will be in wp-config.php once SQLite is merged in Core.

‎packages/plugin-sqlite-database-integration/db.copy‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
<?php
22
/**
33
* Plugin Name: SQLite integration (Drop-in)
4-
* Version: 1.0.0
4+
* Version: 1.8.0
55
* Author: WordPress Performance Team
66
* Author URI: https://make.wordpress.org/performance/
77
*
88
* This file is auto-generated and copied from the sqlite plugin.
99
* Please don't edit this file directly.
10-
*
11-
* @package wp-sqlite-integration
1210
*/
1311

1412
define( 'SQLITE_DB_DROPIN_VERSION', '1.8.0' );

‎packages/plugin-sqlite-database-integration/deactivate.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
22
/**
33
* Handle the SQLite deactivation.
4-
*
5-
* @since 1.0.0
6-
* @package wp-sqlite-integration
74
*/
85

96
/**

0 commit comments

Comments
 (0)