| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/plugins/pods/sql/ |
Upload File : |
<?php
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
// phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
/**
* @package Pods\Upgrade
*/
// Update to 2.0.3
if ( version_compare( $pods_version, '2.0.3', '<' ) ) {
// Rename sister_field_id to sister_id
pods_query( "DELETE FROM `@wp_postmeta` WHERE `meta_key` = 'sister_field_id'", false );
update_option( 'pods_framework_version', '2.0.3' );
}
// Update to 2.3
if ( version_compare( $pods_version, '2.3', '<' ) ) {
// Auto activate Advanced Content Types component
$oldget = $_GET;
$_GET['toggle'] = 1;
PodsInit::$components->toggle( 'advanced-content-types' );
PodsInit::$components->toggle( 'table-storage' );
$_GET = $oldget;
update_option( 'pods_framework_version', '2.3' );
}
// Update to 2.3.4
if ( version_compare( $pods_version, '2.3.4', '<' ) ) {
if ( function_exists( 'pods_page_flush_rewrites' ) ) {
pods_page_flush_rewrites();
}
update_option( 'pods_framework_version', '2.3.4' );
}
// Update to 2.3.5
if ( version_compare( $pods_version, '2.3.5', '<' ) ) {
global $wpdb;
$wpdb->query( "UPDATE `{$wpdb->postmeta}` SET `meta_value` = 'dMy' WHERE `meta_key` IN ( 'date_format', 'datetime_format' ) AND `meta_value` = 'dMd'" );
$wpdb->query( "UPDATE `{$wpdb->postmeta}` SET `meta_value` = 'dMy_dash' WHERE `meta_key` IN ( 'date_format', 'datetime_format' ) AND `meta_value` = 'dMd_dash'" );
$pods_object_ids = $wpdb->get_col( "SELECT `ID` FROM `{$wpdb->posts}` WHERE `post_type` IN ( '_pods_pod', '_pods_field', '_pods_page', '_pods_template', '_pods_helper' )" );
if ( ! empty( $pods_object_ids ) ) {
array_walk( $pods_object_ids, 'absint' );
$wpdb->query(
$wpdb->prepare(
"DELETE FROM `{$wpdb->postmeta}` WHERE `post_id` IN ( " . implode( ', ', array_fill( 0, count( $pods_object_ids ), '%d' ) ) . " ) AND `meta_value` = ''",
$pods_object_ids
)
);
}
update_option( 'pods_framework_version', '2.3.5' );
}
// Update to 2.3.9
if ( version_compare( $pods_version, '2.3.9-a-1', '<' ) ) {
// Set autoload on all necessary options to avoid extra queries
$autoload_options = array(
'pods_framework_version' => '',
'pods_framework_version_last' => '',
'pods_framework_db_version' => '',
'pods_framework_upgraded_1_x' => '0',
'pods_version' => '',
'pods_component_settings' => '',
'pods_disable_file_browser' => '0',
'pods_files_require_login' => '1',
'pods_files_require_login_cap' => '',
'pods_disable_file_upload' => '0',
'pods_upload_require_login' => '1',
'pods_upload_require_login_cap' => '',
);
foreach ( $autoload_options as $option_name => $default ) {
$option_value = get_option( $option_name, $default );
delete_option( $option_name );
add_option( $option_name, $option_value, '', 'yes' );
}
update_option( 'pods_framework_version', '2.3.9-a-1' );
}//end if