Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Apr 12, 2017
1 parent 104ead5 commit 45f1dea
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions wp-site-aliases/includes/classes/class-wp-db-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* @author JJJ
* @link https://jjj.blog
* @version 1.0.0
* @version 1.1.0
* @license https://www.gnu.org/licenses/gpl-2.0.html
*/

Expand Down Expand Up @@ -239,7 +239,7 @@ private function set_wpdb_tables() {
/**
* Set the database version to the table version.
*
* Saves global table version to "wp_sitemeta" with a site ID of 0
* Saves global table version to "wp_sitemeta" to the main network
*
* @since 1.0.0
*/
Expand All @@ -250,21 +250,21 @@ private function set_db_version() {

// Update the DB version
( true === $this->global )
? update_network_option( 0, $this->db_version_key, $this->version )
: update_option( $this->db_version_key, $this->version );
? update_network_option( null, $this->db_version_key, $this->version )
: update_option( $this->db_version_key, $this->version );
}

/**
* Get the table version from the database.
*
* Gets global table version from "wp_sitemeta" with a site ID of 0
* Gets global table version from "wp_sitemeta" to the main network
*
* @since 1.0.0
*/
private function get_db_version() {
$this->db_version = ( true === $this->global )
? get_network_option( 0, $this->db_version_key, false )
: get_option( $this->db_version_key, false );
? get_network_option( null, $this->db_version_key, false )
: get_option( $this->db_version_key, false );
}

/**
Expand Down

0 comments on commit 45f1dea

Please sign in to comment.