Making WordPress.org

Changeset 8489


Ignore:
Timestamp:
03/22/2019 06:40:28 AM (5 years ago)
Author:
dd32
Message:

Translate: Language Packs: Prepare to generate Signatures for language packs.

This code is currently disabled, pending some WordPress.org changes.

See https://core.trac.wordpress.org/ticket/39309.
See #4308.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-language-pack.php

    r8338 r8489  
    622622            $zip_file       = "{$export_directory}/{$filename}.zip";
    623623            $build_zip_file = "{$build_directory}/{$wp_locale}.zip";
     624            $build_sig_file = "{$build_zip_file}.sig";
    624625
    625626            // Update/create directories.
     
    716717            }
    717718
     719            // Generate a signature for the ZIP file.
     720            if ( false && function_exists( 'wporg_sign_file' ) ) {
     721                $signatures = wporg_sign_file( $build_zip_file, 'translation' );
     722                if ( $signatures ) {
     723                    file_put_contents( $build_sig_file, implode( "\n", $signatures ) );
     724                }
     725            }
     726
    718727            // Insert language pack into database.
    719728            $result = $this->insert_language_pack( $data->type, $data->domain, $wp_locale, $data->version, $last_modified );
Note: See TracChangeset for help on using the changeset viewer.