list_translation_updates()

 

File: wp-admin/update-core.php

function list_translation_updates() {
	$updates = wp_get_translation_updates();
	if ( ! $updates ) {
		if ( 'en_US' != get_locale() ) {
			echo '<h2>' . __( 'Translations' ) . '</h2>';
			echo '<p>' . __( 'Your translations are all up to date.' ) . '</p>';
		}
		return;
	}

	$form_action = 'update-core.php?action=do-translation-upgrade';
	?>
	<h2><?php _e( 'Translations' ); ?></h2>
	<form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-translations" class="upgrade">
		<p><?php _e( 'New translations are available.' ); ?></p>
		<?php wp_nonce_field( 'upgrade-translations' ); ?>
		<p><input class="button" type="submit" value="<?php esc_attr_e( 'Update Translations' ); ?>" name="upgrade" /></p>
	</form>
	<?php
}

参数:list_translation_updates()

{acontent5}{acontent3}

You must log in before being able to contribute a note or feedback.

16.67% (1) 次Baidu访问
83.33% (5) 次Google访问
  • 蜘蛛:Baidu,1次,更新时间:2019-05-19 01:46:09
  • 蜘蛛:Google,5次,更新时间:2019-05-18 14:28:31

参与评论