Make WordPress Core

Ticket #38464: 38464.patch

File 38464.patch, 9.6 KB (added by ottok, 8 years ago)
  • src/wp-admin/css/common.css

     
    28992899        #section-holder {
    29002900                position: static;
    29012901                margin: 0;
    2902                 padding-bottom: 70px; /* reset from the two column height fix, plus accomodate footer */
     2902                padding-bottom: 70px; /* reset from the two column height fix, plus accommodate footer */
    29032903        }
    29042904
    29052905        #plugin-information .fyi h3,
  • src/wp-admin/includes/class-pclzip.php

     
    3434  // In version 1.x of PclZip, the separator for file list is a space
    3535  // (which is not a very smart choice, specifically for windows paths !).
    3636  // A better separator should be a comma (,). This constant gives you the
    37   // abilty to change that.
     37  // ability to change that.
    3838  // However notice that changing this value, may have impact on existing
    3939  // scripts, using space separated filenames.
    40   // Recommanded values for compatibility with older versions :
     40  // Recommended values for compatibility with older versions :
    4141  //define( 'PCLZIP_SEPARATOR', ' ' );
    42   // Recommanded values for smart separation of filenames.
     42  // Recommended values for smart separation of filenames.
    4343  if (!defined('PCLZIP_SEPARATOR')) {
    4444    define( 'PCLZIP_SEPARATOR', ',' );
    4545  }
     
    248248  //   When a directory is in the list, the directory and its content is added
    249249  //   in the archive.
    250250  //   In this synopsis, the function takes an optional variable list of
    251   //   options. See bellow the supported options.
     251  //   options. See below the supported options.
    252252  // Parameters :
    253253  //   $p_filelist : An array containing file or directory names, or
    254254  //                 a string containing one filename or one directory name, or
     
    10641064  // Function : deleteByIndex()
    10651065  // Description :
    10661066  //   ***** Deprecated *****
    1067   //   delete(PCLZIP_OPT_BY_INDEX, $p_index) should be prefered.
     1067  //   delete(PCLZIP_OPT_BY_INDEX, $p_index) should be preferred.
    10681068  // --------------------------------------------------------------------------------
    10691069  function deleteByIndex($p_index)
    10701070  {
     
    11261126        return 0;
    11271127      }
    11281128
    1129       // ----- Read the central directory informations
     1129      // ----- Read the central directory information
    11301130      $v_central_dir = array();
    11311131      if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    11321132      {
     
    16981698              if ($v_result_list[$p_options_list[$i]][$j]['start'] < $v_sort_value) {
    16991699                  $v_sort_flag=true;
    17001700
    1701                   // ----- TBC : An automatic sort should be writen ...
     1701                  // ----- TBC : An automatic sort should be written ...
    17021702                  // ----- Error log
    17031703                  PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Invalid order of index range for option '".PclZipUtilOptionText($p_options_list[$i])."'");
    17041704
     
    21892189      return $v_result;
    21902190    }
    21912191
    2192     // ----- Read the central directory informations
     2192    // ----- Read the central directory information
    21932193    $v_central_dir = array();
    21942194    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    21952195    {
     
    23912391  // Function : privAddList()
    23922392  // Description :
    23932393  //   $p_add_dir and $p_remove_dir will give the ability to memorize a path which is
    2394   //   different from the real path of the file. This is usefull if you want to have PclTar
     2394  //   different from the real path of the file. This is useful if you want to have PclTar
    23952395  //   running in any directory, and memorize relative path from an other directory.
    23962396  // Parameters :
    23972397  //   $p_list : An array containing the file or directory names to add in the tar
     
    26312631        $v_result = 1;
    26322632      }
    26332633
    2634       // ----- Update the informations
     2634      // ----- Update the information
    26352635      // Only some fields can be modified
    26362636      if ($p_header['stored_filename'] != $v_local_header['stored_filename']) {
    26372637        $p_header['stored_filename'] = PclZipUtilPathReduction($v_local_header['stored_filename']);
     
    27832783        $v_result = 1;
    27842784      }
    27852785
    2786       // ----- Update the informations
     2786      // ----- Update the information
    27872787      // Nothing can be modified
    27882788    }
    27892789
     
    31693169      return PclZip::errorCode();
    31703170    }
    31713171
    3172     // ----- Read the central directory informations
     3172    // ----- Read the central directory information
    31733173    $v_central_dir = array();
    31743174    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    31753175    {
     
    32203220  // --------------------------------------------------------------------------------
    32213221  // Function : privConvertHeader2FileInfo()
    32223222  // Description :
    3223   //   This function takes the file informations from the central directory
     3223  //   This function takes the file information from the central directory
    32243224  //   entries and extract the interesting parameters that will be given back.
    32253225  //   The resulting file infos are set in the array $p_info
    32263226  //     $p_info['filename'] : Filename with full path. Given by user (add),
     
    33133313      return $v_result;
    33143314    }
    33153315
    3316     // ----- Read the central directory informations
     3316    // ----- Read the central directory information
    33173317    $v_central_dir = array();
    33183318    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    33193319    {
     
    37133713        $v_result = PCLZIP_ERR_USER_ABORTED;
    37143714      }
    37153715
    3716       // ----- Update the informations
     3716      // ----- Update the information
    37173717      // Only some fields can be modified
    37183718      $p_entry['filename'] = $v_local_header['filename'];
    37193719    }
     
    40804080        $v_result = PCLZIP_ERR_USER_ABORTED;
    40814081      }
    40824082
    4083       // ----- Update the informations
     4083      // ----- Update the information
    40844084      // Only some fields can be modified
    40854085      $p_entry['filename'] = $v_local_header['filename'];
    40864086    }
     
    41934193        $v_result = PCLZIP_ERR_USER_ABORTED;
    41944194      }
    41954195
    4196       // ----- Update the informations
     4196      // ----- Update the information
    41974197      // Only some fields can be modified
    41984198      $p_entry['filename'] = $v_local_header['filename'];
    41994199    }
     
    46894689      return $v_result;
    46904690    }
    46914691
    4692     // ----- Read the central directory informations
     4692    // ----- Read the central directory information
    46934693    $v_central_dir = array();
    46944694    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    46954695    {
     
    50755075      return $v_result;
    50765076    }
    50775077
    5078     // ----- Read the central directory informations
     5078    // ----- Read the central directory information
    50795079    $v_central_dir = array();
    50805080    if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1)
    50815081    {
     
    50955095      return $v_result;
    50965096    }
    50975097
    5098     // ----- Read the central directory informations
     5098    // ----- Read the central directory information
    50995099    $v_central_dir_to_add = array();
    51005100    if (($v_result = $p_archive_to_add->privReadEndCentralDir($v_central_dir_to_add)) != 1)
    51015101    {
  • src/wp-admin/includes/export.php

     
    353353        }
    354354
    355355        /**
    356          * Ouput all navigation menu terms
     356         * Output all navigation menu terms
    357357         *
    358358         * @since 3.1.0
    359359         */
  • src/wp-admin/includes/misc.php

     
    133133                $lines[] = rtrim( fgets( $fp ), "\r\n" );
    134134        }
    135135
    136         // Split out the existing file into the preceeding lines, and those that appear after the marker
     136        // Split out the existing file into the preceding lines, and those that appear after the marker
    137137        $pre_lines = $post_lines = $existing_lines = array();
    138138        $found_marker = $found_end_marker = false;
    139139        foreach ( $lines as $line ) {
  • src/wp-admin/includes/upgrade.php

     
    28212821        // Multisite schema upgrades.
    28222822        if ( $wp_current_db_version < 25448 && is_multisite() && wp_should_upgrade_global_tables() ) {
    28232823
    2824                 // Upgrade verions prior to 3.7
     2824                // Upgrade versions prior to 3.7
    28252825                if ( $wp_current_db_version < 25179 ) {
    28262826                        // New primary key for signups.
    28272827                        $wpdb->query( "ALTER TABLE $wpdb->signups ADD signup_id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST" );
  • src/wp-admin/js/editor-expand.js

     
    318318                                topHeight = heights.textTopHeight;
    319319                        }
    320320
    321                         // TinyMCE still intializing.
     321                        // TinyMCE still initializing.
    322322                        if ( ! visual && ! $top.length ) {
    323323                                return;
    324324                        }
  • src/wp-admin/js/post.js

     
    140140                        /**
    141141                         * Handle server response
    142142                         *
    143                          * @param {string} str Response, will be '0' when an error occured otherwise contains link to add Featured Image.
     143                         * @param {string} str Response, will be '0' when an error occurred otherwise contains link to add Featured Image.
    144144                         */
    145145                        function(str){
    146146                        if ( str == '0' ) {