Core_Upgrader::upgrade_strings()

热度:50
Method:初始化升级字符串。
版本 20190729
所属分类 Methods
可使用页面 All
默认值

Core_Upgrader::upgrade_strings()

  • 初始化升级字符串。


示例:

public function upgrade_strings() {

    $this->strings['up_to_date'] = __( 'WordPress is at the latest version.' );

    $this->strings['locked']     = __( 'Another update is currently in progress.' );

    $this->strings['no_package'] = __( 'Update package not available.' );

    $this->strings['downloading_package']   = sprintf( __( 'Downloading update from %s&#8230;' ), '<span class="code">%s</span>' );

    $this->strings['unpack_package']        = __( 'Unpacking the update&#8230;' );

    $this->strings['copy_failed']           = __( 'Could not copy files.' );

    $this->strings['copy_failed_space']     = __( 'Could not copy files. You may have run out of disk space.' );

    $this->strings['start_rollback']        = __( 'Attempting to roll back to previous version.' );

}


问题反馈反馈和建议QQ群:785318993