PageRenderTime 2434ms queryFilters 0ms Sphinxql 1901ms app.CodeModel.GetByIds 483ms findMatchingLines 24ms GetByIds 507ms meta 0ms repositoryFilters 3ms languageFilters 2ms sourceFilters 3ms

421,407 results for 'php empty repo:nosen/jelly2' (2434 ms)

Source

Language

Repository

update-core.php https://gitlab.com/itlboy/susoft-dev-thammyvien.git | PHP | 661 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
437	<script type="text/javascript">
438	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
439	</script>
update-core.php https://gitlab.com/jack/WordPress.git | PHP | 685 lines
444
445	$php_version    = phpversion();
446	$mysql_version  = $wpdb->db_version();
449	$wp_version = '3.4';
450	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
451	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
459	if ( !$mysql_compat && !$php_compat )
460		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
461	elseif ( !$php_compat )
461	elseif ( !$php_compat )
462		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
463	elseif ( !$mysql_compat )
676<script type="text/javascript">
677window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
678</script>
update-core.php https://gitlab.com/javicodigonexo/inblan.git | PHP | 661 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
437	<script type="text/javascript">
438	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
439	</script>
Validator.php https://gitlab.com/L1Qu0R/posad-obzor.git | PHP | 366 lines
1<?php
2/**
128    /**
129     * @var callable a PHP callable that replaces the default implementation of [[isEmpty()]].
130     * If not set, [[isEmpty()]] will be used to check if a value is empty. The signature
133     */
134    public $isEmpty;
135    /**
135    /**
136     * @var callable a PHP callable whose return value determines whether this validator should be applied.
137     * The signature of the callable should be `function ($model, $attribute)`, where `$model` and `$attribute`
234            $skip = $this->skipOnError && $model->hasErrors($attribute)
235                || $this->skipOnEmpty && $this->isEmpty($model->$attribute);
236            if (!$skip) {
352     * Checks if the given value is empty.
353     * A value is considered empty if it is null, an empty array, or the trimmed result is an empty string.
354     * Note that this method is different from PHP empty(). It will return false when the value is 0.
update-core.php https://gitlab.com/lcorozco10/wordpress-theme.git | PHP | 1,188 lines
824
825	$php_version    = phpversion();
826	$mysql_version  = $wpdb->db_version();
828	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
829	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
830	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
838	if ( !$mysql_compat && !$php_compat )
839		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
840	elseif ( !$php_compat )
840	elseif ( !$php_compat )
841		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
842	elseif ( !$mysql_compat )
913	if ( ! is_wp_error( $result ) ) {
914		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
915			$wp_filesystem->delete( $from, true );
Validator.php https://gitlab.com/lcp0578/simpleforum.git | PHP | 368 lines
1<?php
2/**
130    /**
131     * @var callable a PHP callable that replaces the default implementation of [[isEmpty()]].
132     * If not set, [[isEmpty()]] will be used to check if a value is empty. The signature
135     */
136    public $isEmpty;
137    /**
137    /**
138     * @var callable a PHP callable whose return value determines whether this validator should be applied.
139     * The signature of the callable should be `function ($model, $attribute)`, where `$model` and `$attribute`
236            $skip = $this->skipOnError && $model->hasErrors($attribute)
237                || $this->skipOnEmpty && $this->isEmpty($model->$attribute);
238            if (!$skip) {
354     * Checks if the given value is empty.
355     * A value is considered empty if it is null, an empty array, or an empty string.
356     * Note that this method is different from PHP empty(). It will return false when the value is 0.
Validator.php https://gitlab.com/lcp0578/yii2.git | PHP | 378 lines
1<?php
2/**
130    /**
131     * @var callable a PHP callable that replaces the default implementation of [[isEmpty()]].
132     * If not set, [[isEmpty()]] will be used to check if a value is empty. The signature
135     */
136    public $isEmpty;
137    /**
137    /**
138     * @var callable a PHP callable whose return value determines whether this validator should be applied.
139     * The signature of the callable should be `function ($model, $attribute)`, where `$model` and `$attribute`
237            $skip = $this->skipOnError && $model->hasErrors($attribute)
238                || $this->skipOnEmpty && $this->isEmpty($model->$attribute);
239            if (!$skip) {
364     * Checks if the given value is empty.
365     * A value is considered empty if it is null, an empty array, or an empty string.
366     * Note that this method is different from PHP empty(). It will return false when the value is 0.
update-core.php https://gitlab.com/leijianbin/inkblog.git | PHP | 659 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
435	<script type="text/javascript">
436	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
437	</script>
update-core.php https://gitlab.com/leijianbin/inkblog.git | PHP | 1,188 lines
824
825	$php_version    = phpversion();
826	$mysql_version  = $wpdb->db_version();
828	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
829	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
830	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
838	if ( !$mysql_compat && !$php_compat )
839		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
840	elseif ( !$php_compat )
840	elseif ( !$php_compat )
841		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
842	elseif ( !$mysql_compat )
913	if ( ! is_wp_error( $result ) ) {
914		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
915			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/manikapali/narendraphoto.git | PHP | 661 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
437	<script type="text/javascript">
438	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
439	</script>
update-core.php https://gitlab.com/michalklim/jarzemko.git | PHP | 659 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
435	<script type="text/javascript">
436	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
437	</script>
update-core.php https://gitlab.com/michalklim/jarzemko.git | PHP | 1,188 lines
824
825	$php_version    = phpversion();
826	$mysql_version  = $wpdb->db_version();
828	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
829	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
830	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
838	if ( !$mysql_compat && !$php_compat )
839		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
840	elseif ( !$php_compat )
840	elseif ( !$php_compat )
841		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
842	elseif ( !$mysql_compat )
913	if ( ! is_wp_error( $result ) ) {
914		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
915			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/mnguyen/wordpress-fashion.git | PHP | 661 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
437	<script type="text/javascript">
438	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
439	</script>
update-core.php https://gitlab.com/nbarth/wp_portfolio.git | PHP | 661 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
437	<script type="text/javascript">
438	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
439	</script>
add-ons.php https://gitlab.com/Pibolo/plugin-wordpress.git | PHP | 263 lines
1<?php
2if ( ! defined( 'ABSPATH' ) ){
59					if ( ! WYSIJA::is_plugin_active( $_GET['requires'] ) ) {
60						$location = admin_url( 'admin.php?page=wysija_config&status=not-activated&add-on=' . $plugin_name . '&requires=' . esc_attr( str_replace( ' ', '_', $_GET['requires_name'] ) ) . '#tab-add-ons' );
61						wp_safe_redirect( $location );
64				} else {
65					$location = admin_url( 'admin.php?page=wysija_config&status=not-installed&add-on=' . $plugin_name . '&requires=' . esc_attr( str_replace( ' ', '_', $_GET['requires_name'] ) ) . '#tab-add-ons' );
66					wp_safe_redirect( $location );
74			// Return back to add-on page.
75			$location = admin_url( 'admin.php?page=wysija_config&status=activated&add-on=' . $plugin_name . '#tab-add-ons' );
76			wp_safe_redirect( $location );
90							__( 'was not activated as it requires <strong><a href="%s">%s</a></strong> to be installed and active first.', WYSIJA ),
91							esc_url( admin_url( 'plugin-install.php?tab=search&type=term&s=' . esc_attr( strtolower( str_replace( ' ', '+', $_GET['requires'] ) ) ) ) ),
92							str_replace( '_', ' ', $_GET['requires'] )
196
197			if ( WYSIJA::is_plugin_active( 'wysija-newsletters-premium/index.php' ) && ! empty( $product['premium_offer'] ) ) {
198				echo '<p><strong>' . esc_attr( $product['premium_offer'] ) . '</strong></p>';
update-core.php https://gitlab.com/rajivnix/wordpress-nginx-fpm.git | PHP | 661 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
437	<script type="text/javascript">
438	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
439	</script>
update-core.php https://gitlab.com/richardp2/WordPress.git | PHP | 645 lines
52		} else {
53			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
54			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
59			if ( !$mysql_compat && !$php_compat )
60				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
61			elseif ( !$php_compat )
61			elseif ( !$php_compat )
62				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
63			elseif ( !$mysql_compat )
154				'version'       => $wp_version . '.1.next.minor',
155				'php_version'   => $required_php_version,
156				'mysql_version' => $required_mysql_version,
422	<script type="text/javascript">
423	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
424	</script>
update-core.php https://gitlab.com/rizaljzulfikar/nawalaposmb.git | PHP | 661 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
437	<script type="text/javascript">
438	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
439	</script>
update-core.php https://gitlab.com/savaf/WordPress.git | PHP | 661 lines
53		} else {
54			$php_compat     = version_compare( $php_version, $update->php_version, '>=' );
55			if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
60			if ( !$mysql_compat && !$php_compat )
61				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $update->current, $update->php_version, $update->mysql_version, $php_version, $mysql_version );
62			elseif ( !$php_compat )
62			elseif ( !$php_compat )
63				$message = sprintf( __('You cannot update because <a href="http://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> requires PHP version %2$s or higher. You are running version %3$s.'), $update->current, $update->php_version, $php_version );
64			elseif ( !$mysql_compat )
155				'version'       => $wp_version . '.1.next.minor',
156				'php_version'   => $required_php_version,
157				'mysql_version' => $required_mysql_version,
437	<script type="text/javascript">
438	window.location = '<?php echo self_admin_url( 'about.php?updated' ); ?>';
439	</script>
update-core.php https://gitlab.com/savaf/WordPress.git | PHP | 1,199 lines
835
836	$php_version    = phpversion();
837	$mysql_version  = $wpdb->db_version();
839	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
840	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
841	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
849	if ( !$mysql_compat && !$php_compat )
850		return new WP_Error( 'php_mysql_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher and MySQL version %3$s or higher. You are running PHP version %4$s and MySQL version %5$s.'), $wp_version, $required_php_version, $required_mysql_version, $php_version, $mysql_version ) );
851	elseif ( !$php_compat )
851	elseif ( !$php_compat )
852		return new WP_Error( 'php_not_compatible', sprintf( __('The update cannot be installed because WordPress %1$s requires PHP version %2$s or higher. You are running version %3$s.'), $wp_version, $required_php_version, $php_version ) );
853	elseif ( !$mysql_compat )
924	if ( ! is_wp_error( $result ) ) {
925		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
926			$wp_filesystem->delete( $from, true );
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21