PageRenderTime 892ms queryFilters 0ms Sphinxql 668ms app.CodeModel.GetByIds 162ms findMatchingLines 33ms GetByIds 195ms meta 0ms repositoryFilters 3ms languageFilters 5ms sourceFilters 2ms

421,407 results for 'php empty repo:dadyday/template' (892 ms)

Source

Language

Repository

archives_do.php https://gitlab.com/BGCX262/zyyhong-svn-to-git.git | PHP | 265 lines
1<?php
2require_once(dirname(__FILE__)."/config.php");
3require_once(dirname(__FILE__)."/../include/inc_typelink.php");
4require_once(dirname(__FILE__)."/inc/inc_batchup.php");
5require_once(dirname(__FILE__)."/inc/inc_archives_functions.php");
5require_once(dirname(__FILE__)."/inc/inc_archives_functions.php");
6empty($_COOKIE['ENV_GOBACK_URL']) ? $ENV_GOBACK_URL = "content_list.php" : $ENV_GOBACK_URL=$_COOKIE['ENV_GOBACK_URL'];
7if(empty($dopost)||empty($aid)){
22	$dsql->Close();
23	if($gurl==""){ $gurl="article_edit.php"; }
24	require_once(dirname(__FILE__)."/$gurl");
49    	$dsql->Close();
50    	echo "<script language='javascript'>location.href='{$cfg_plus_dir}/view.php?aid={$aid}';</script>";
51    	exit();
96	$aid = ereg_replace("[^0-9]","",$aid);
97	require_once(dirname(__FILE__)."/inc/inc_archives_functions.php");
98	if(empty($qstr)){
config.inc.php https://gitlab.com/casiazul/colectivoweb.git | PHP | 231 lines
1<?php
2/*
22*  @copyright  2007-2013 PrestaShop SA
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
24*  International Registered Trademark & Property of PrestaShop SA
26
27require_once(dirname(__FILE__).'/defines.inc.php');
28$start_time = microtime(true);
32
33/* Improve PHP configuration to prevent issues */
34ini_set('upload_max_filesize', '100M');
42/* No settings file? goto installer... */
43if (!file_exists(dirname(__FILE__).'/settings.inc.php'))
44{
74	{
75		if (basename($_SERVER['SCRIPT_NAME']) == 'index.php' && empty($_SERVER['QUERY_STRING']))
76			$_SERVER['REQUEST_URI'] = dirname($_SERVER['SCRIPT_NAME']).'/';
update-core.php https://gitlab.com/damith322/mtsmet.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/dinhkk/Pinotage.git | PHP | 1,260 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/duban-alexei/WordPress.git | PHP | 1,281 lines
841
842	$php_version    = phpversion();
843	$mysql_version  = $wpdb->db_version();
845	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
846	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
847	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
855	if ( !$mysql_compat && !$php_compat )
856		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 ) );
857	elseif ( !$php_compat )
857	elseif ( !$php_compat )
858		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 ) );
859	elseif ( !$mysql_compat )
930	if ( ! is_wp_error( $result ) ) {
931		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
932			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/eita/encontre-consumo-responsavel.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
accounts.php https://gitlab.com/eita/encontre-consumo-responsavel.git | PHP | 524 lines
54	// update user roles from admin
55	if(isset($_POST['action']) && $_POST['action'] == 'update' && strpos($_SERVER['PHP_SELF'],'options.php') !== false){
56		$optionName = $_POST['option_page'];
137		// Untrash
138		if($pagenow == 'post.php' && !empty($_REQUEST['post']) && !empty($_REQUEST['action']) && $_REQUEST['action'] == 'untrash') {
139			$post = get_post($_REQUEST['post']);
189	if (isDirectoryUser()) {
190		if((strpos($_SERVER['PHP_SELF'],'edit.php') !== false) && isset($_GET['post_type']) && ($_GET['post_type'] == 'ait-dir-item')){
191			$query->set('author',$GLOBALS['current_user']->ID);
247
248		$class = empty( $class ) && empty( $_REQUEST['post_status'] ) && empty( $_REQUEST['show_sticky'] ) ? ' class="current"' : '';
249		$status_links['all'] = "<a href='edit.php?post_type=$post_type{$allposts}'$class>" . sprintf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts, 'posts' , 'ait'), number_format_i18n( $total_posts ) ) . '</a>';
453	if (isDirectoryUser()) {
454		if( 'upload.php' == $pagenow || 'admin-ajax.php' == $pagenow || 'media-upload.php' == $pagenow) {
455			$query->set('author', $current_user->ID );
update-core.php https://gitlab.com/hunglion1368/wordpress-boilerplate.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/itlboy/susoft-dev-thammyvien.git | PHP | 1,260 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/javicodigonexo/inblan.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/manikapali/narendraphoto.git | PHP | 1,260 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/mnguyen/wordpress-fashion.git | PHP | 1,260 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/nbarth/wp_portfolio.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/rajivnix/wordpress-nginx-fpm.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/rizaljzulfikar/nawalaposmb.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/samurailink3/Hasty-WordPress.git | PHP | 896 lines
1<?php
2/**
26'wp-admin/import-mt.php',
27'wp-admin/import-rss.php',
28'wp-admin/import-textpattern.php',
663
664	$php_version    = phpversion();
665	$mysql_version  = $wpdb->db_version();
667	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
668	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
669	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
677	if ( !$mysql_compat && !$php_compat )
678		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 ) );
679	elseif ( !$php_compat )
679	elseif ( !$php_compat )
680		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 ) );
681	elseif ( !$mysql_compat )
config.inc.php https://gitlab.com/sanjitbauli1/fedexcollection.git | PHP | 138 lines
1<?php
2/*
23*  @version  Release: $Revision: 14009 $
24*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
25*  International Registered Trademark & Property of PrestaShop SA
39
40/* Improve PHP configuration to prevent issues */
41ini_set('upload_max_filesize', '100M');
49/* No settings file? goto installer...*/
50if (!file_exists(dirname(__FILE__).'/settings.inc.php'))
51{
57}
58require_once(dirname(__FILE__).'/settings.inc.php');
59
74{
75	if (substr($_SERVER['SCRIPT_NAME'], -9) == 'index.php' && empty($_SERVER['QUERY_STRING']))
76		$_SERVER['REQUEST_URI'] = dirname($_SERVER['SCRIPT_NAME']).'/';
update-core.php https://gitlab.com/stab-iitb/tinkerer-lab.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/superstims/WordPress-Boiler.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$wp_filesystem->delete( $from, true );
update-core.php https://gitlab.com/tulipsnepal/asa.git | PHP | 1,257 lines
826
827	$php_version    = phpversion();
828	$mysql_version  = $wpdb->db_version();
830	$development_build = ( false !== strpos( $old_wp_version . $wp_version, '-' )  ); // a dash in the version indicates a Development release
831	$php_compat     = version_compare( $php_version, $required_php_version, '>=' );
832	if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
840	if ( !$mysql_compat && !$php_compat )
841		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 ) );
842	elseif ( !$php_compat )
842	elseif ( !$php_compat )
843		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 ) );
844	elseif ( !$mysql_compat )
915	if ( ! is_wp_error( $result ) ) {
916		if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
917			$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