admin管理员组文章数量:1022795
I've recently upgraded a Wordpress site to the latest WP version (3.9). I also upgraded the themes and plug-ins that needed it.
Unfortunately, WP's automatic upgrade features are not compatible with the server this site is installed on, so I have to do it manually.
What bothers me is that I still have a red "1" on the Dashboard menu, telling me there's an update available. When I consult the details, everything is empty, except for the "Translations" section, at the bottom of the page.
How do I upgrade these manually? As I said, I can't just let WP do it automatically because it doesn't work.
I've checked the "languages" folder in "wp-content" and made sure it only contains the files from the new WP archive. I don't know where else to look.
Thanks in advance.
I've recently upgraded a Wordpress site to the latest WP version (3.9). I also upgraded the themes and plug-ins that needed it.
Unfortunately, WP's automatic upgrade features are not compatible with the server this site is installed on, so I have to do it manually.
What bothers me is that I still have a red "1" on the Dashboard menu, telling me there's an update available. When I consult the details, everything is empty, except for the "Translations" section, at the bottom of the page.
How do I upgrade these manually? As I said, I can't just let WP do it automatically because it doesn't work.
I've checked the "languages" folder in "wp-content" and made sure it only contains the files from the new WP archive. I don't know where else to look.
Thanks in advance.
Share Improve this question asked Apr 25, 2014 at 16:18 s427s427 2012 silver badges5 bronze badges3 Answers
Reset to default 7quick-and-dirty hint to solve this problem:
find the function list_translation_updates() in wp-admin/update-core.php
$updates = wp_get_translation_updates(); if ( ! $updates ) <- locate the if ... } else { <- add this print_r ( $updates ); }
add the else-case and save the file
reload the dashboard page and you will get the desired information.
Similar to @wp_quick_and_dirty's solution, but without editing core files. Add this to your functions.php file:
function translation_updates_list() {
$translation_updates = wp_get_translation_updates();
if ( empty($translation_updates) ) { return; }
echo "<h4>Available translations</h4><pre>";
echo esc_html( print_r($translation_updates, true) );
echo "</pre>";
}
add_action('core_upgrade_preamble', 'translation_updates_list');
Based on this even fancier solution: https://gist.github/swissspidy/e2d1cde667fa4da4db66
Sooo, apparently the problem was simply that I had forgotten to also upload the new wp-content/languages
folder that came with the new WP version.
The official doc (at least in French) recommends not to upload the wp-content
folder during the upgrade process (because it contains all the personal files), which is why I had neglected that step.
Apparently, simply replacing the old languages
folder with the new one is enough. WP now says that my translations are up to date. Problem solved. :)
I've recently upgraded a Wordpress site to the latest WP version (3.9). I also upgraded the themes and plug-ins that needed it.
Unfortunately, WP's automatic upgrade features are not compatible with the server this site is installed on, so I have to do it manually.
What bothers me is that I still have a red "1" on the Dashboard menu, telling me there's an update available. When I consult the details, everything is empty, except for the "Translations" section, at the bottom of the page.
How do I upgrade these manually? As I said, I can't just let WP do it automatically because it doesn't work.
I've checked the "languages" folder in "wp-content" and made sure it only contains the files from the new WP archive. I don't know where else to look.
Thanks in advance.
I've recently upgraded a Wordpress site to the latest WP version (3.9). I also upgraded the themes and plug-ins that needed it.
Unfortunately, WP's automatic upgrade features are not compatible with the server this site is installed on, so I have to do it manually.
What bothers me is that I still have a red "1" on the Dashboard menu, telling me there's an update available. When I consult the details, everything is empty, except for the "Translations" section, at the bottom of the page.
How do I upgrade these manually? As I said, I can't just let WP do it automatically because it doesn't work.
I've checked the "languages" folder in "wp-content" and made sure it only contains the files from the new WP archive. I don't know where else to look.
Thanks in advance.
Share Improve this question asked Apr 25, 2014 at 16:18 s427s427 2012 silver badges5 bronze badges3 Answers
Reset to default 7quick-and-dirty hint to solve this problem:
find the function list_translation_updates() in wp-admin/update-core.php
$updates = wp_get_translation_updates(); if ( ! $updates ) <- locate the if ... } else { <- add this print_r ( $updates ); }
add the else-case and save the file
reload the dashboard page and you will get the desired information.
Similar to @wp_quick_and_dirty's solution, but without editing core files. Add this to your functions.php file:
function translation_updates_list() {
$translation_updates = wp_get_translation_updates();
if ( empty($translation_updates) ) { return; }
echo "<h4>Available translations</h4><pre>";
echo esc_html( print_r($translation_updates, true) );
echo "</pre>";
}
add_action('core_upgrade_preamble', 'translation_updates_list');
Based on this even fancier solution: https://gist.github/swissspidy/e2d1cde667fa4da4db66
Sooo, apparently the problem was simply that I had forgotten to also upload the new wp-content/languages
folder that came with the new WP version.
The official doc (at least in French) recommends not to upload the wp-content
folder during the upgrade process (because it contains all the personal files), which is why I had neglected that step.
Apparently, simply replacing the old languages
folder with the new one is enough. WP now says that my translations are up to date. Problem solved. :)
本文标签: updatesHow can I manually upgrade translations
版权声明:本文标题:updates - How can I manually upgrade translations? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745520754a2154303.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论