Changeset 9209
- Timestamp:
- 10/19/2019 11:15:06 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-make-core-pot.php
r8640 r9209 82 82 'wp-admin/*', 83 83 'wp-content/themes/*', 84 'wp-content/plugins/akismet/*', 85 '*.js.map', // TODO: Currently not parsable, https://wordpress.slack.com/archives/C02RP4T41/p1541003227208000. 86 // External libraries. 87 'wp-includes/ID3/*', 88 'wp-includes/IXR/*', 89 'wp-includes/pomo/*', 90 'wp-includes/random_compat/*', 91 'wp-includes/Requests/*', 92 'wp-includes/SimplePie/*', 93 'wp-includes/Text/*', 94 'wp-includes/sodium_compat/*', 95 'wp-includes/atomlib.php', 96 'wp-includes/class-IXR.php', 97 'wp-includes/class-json.php', 98 'wp-includes/class-phpass.php', 99 'wp-includes/class-phpmailer.php', 84 100 'wp-includes/class-pop3.php', 85 'wp-content/plugins/akismet/*', 86 // External JavaScript libaries. 101 'wp-includes/class-requests.php', 102 'wp-includes/class-simplepie.php', 103 'wp-includes/class-smtp.php', 104 'wp-includes/class-snoopy.php', 105 'wp-includes/rss.php', 87 106 'wp-includes/js/codemirror/*', 88 107 'wp-includes/js/crop/*', … … 95 114 'wp-includes/js/thickbox/*', 96 115 'wp-includes/js/tw-sack.js', 97 '*.js.map', // TODO: Currently not parsable, https://wordpress.slack.com/archives/C02RP4T41/p1541003227208000.98 116 ]; 99 117 … … 150 168 } 151 169 170 $admin_exclude = [ 171 'wp-admin/includes/continents-cities.php', 172 'editor.min.js', // Explicitly excluded as it's causing a memory leak: https://github.com/wp-cli/i18n-command/issues/185 173 // External libraries. 174 'wp-admin/includes/class-ftp*', 175 'wp-admin/includes/class-pclzip.php', 176 ]; 177 178 $admin_exclude = array_merge( $admin_exclude, $admin_network_files ); 179 152 180 $command = 'i18n make-pot ' . escapeshellarg( $this->source ); 153 181 $command .= ' ' . escapeshellarg( $this->destination . '/wordpress-admin.pot' ); 154 $command .= ' --exclude=' . escapeshellarg( implode( ',', array_merge( [ 'wp-admin/includes/continents-cities.php' ], $admin_network_files )) );182 $command .= ' --exclude=' . escapeshellarg( implode( ',', $admin_exclude ) ); 155 183 $command .= ' --include="wp-admin/*"'; 156 184 $command .= ' --merge=' . escapeshellarg( $hello_dolly_pot );
Note: See TracChangeset
for help on using the changeset viewer.