PUM_Admin_Upgrades::get_pum_db_ver()

Gets the pum_db_ver or sets and returns the correct one.


Description Description

See also See also


Top ↑

Source Source

File: includes/admin/class-pum-admin-upgrades.php

    public function get_pum_db_ver() {

    	static $pum_db_ver;

    	if ( ! isset( $pum_db_ver ) ) {
		    // this is the current database schema version number
		    $pum_db_ver = pum_get_db_ver();
	    }

        if ( ! $pum_db_ver ) {
            $this->set_pum_db_ver();
            $pum_db_ver = pum_get_db_ver();
        }

        return preg_replace( '/[^0-9.].*/', '', $pum_db_ver );
    }


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.