✏️ 正在编辑: class-avada-upgrade-521.php
路径:
/home/lssfapb/www/wp-content/themes/Avada/includes/upgrade/class-avada-upgrade-521.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php /** * Upgrades Handler. * * @author ThemeFusion * @copyright (c) Copyright by ThemeFusion * @link https://theme-fusion.com * @package Avada * @subpackage Core */ // Do not allow directly accessing this file. if ( ! defined( 'ABSPATH' ) ) { exit( 'Direct script access denied.' ); } /** * Handle migrations for Avada 5.2.1. * * @since 5.2.1 */ class Avada_Upgrade_521 extends Avada_Upgrade_Abstract { /** * The version. * * @access protected * @since 5.2.1 * @var string */ protected $version = '5.2.1'; /** * The actual migration process. * * @access protected * @since 5.2.1 * @return void */ protected function migration_process() { $this->update_portfolio_settings(); } /** * Update portfolio archive items TO with the posts_per_page setting. * * @access private * @since 5.2.1 * @return void */ private function update_portfolio_settings() { $options = get_option( $this->option_name, [] ); $posts_per_page = get_option( 'posts_per_page' ); $options['portfolio_archive_items'] = $posts_per_page; update_option( $this->option_name, $options ); } }
💾 保存文件
← 返回文件管理器