Make WordPress Core


Ignore:
Timestamp:
10/16/2013 04:14:29 AM (13 years ago)
Author:
dd32
Message:

Language Packs: Many many fixes such as:

  • Add a "Update Translations" stand-alone button to the updates page
  • Shift Language feedback to before update process completion action links & limit the verbosity of output (name + success/errors)
  • Simplify/combine the language update descriptive string to only include a plugin/theme name
  • Properly handle cache clearing after language updates to prevent langs being repeditively updated
  • Display a "All items up to date" string when there's nothing to do
  • Reduce the 'Connection Information' from a <h2> to a <h3> to remove duplicate h2's and screen icons from update screens
  • Fix the Direct filesystem method not being used for Language updates because WP_LANG_DIR doesn't exist (check it's parent for writable instead)

See #18200, #22704

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r25799 r25806  
    892892                if ( !$context )
    893893                        $context = WP_CONTENT_DIR;
     894
     895                // If the directory doesn't exist (wp-content/languages) then use the parent directory as we'll create it.
     896                if ( WP_LANG_DIR == $context && ! is_dir( $context ) )
     897                        $context = dirname( $context );
     898
    894899                $context = trailingslashit($context);
    895900                $temp_file_name = $context . 'temp-write-test-' . time();
    … …  
    10221027</script>
    10231028<form action="<?php echo esc_url( $form_post ) ?>" method="post">
    1024 <div class="wrap">
    1025 <?php screen_icon(); ?>
    1026 <h2><?php _e('Connection Information') ?></h2>
     1029<div>
     1030<h3><?php _e('Connection Information') ?></h3>
    10271031<p><?php
    10281032        $label_user = __('Username');
Note: See TracChangeset for help on using the changeset viewer.