Make WordPress Core

Ticket #17610: typo_fix_seperator_to_separator.diff

File typo_fix_seperator_to_separator.diff, 3.0 KB (added by brandonburke, 14 years ago)
  • wp-includes/class-simplepie.php

     
    1310513105        /**
    1310613106         * Parse a superset of W3C-DTF (allows hyphens and colons to be omitted, as
    1310713107         * well as allowing any of upper or lower case "T", horizontal tabs, or
    13108          * spaces to be used as the time seperator (including more than one))
     13108         * spaces to be used as the time separator (including more than one))
    1310913109         *
    1311013110         * @access protected
    1311113111         * @return int Timestamp
  • wp-admin/includes/plugin.php

     
    702702
    703703                $this_plugin_dir = trailingslashit( dirname($plugins_dir . $plugin_file) );
    704704                // If plugin is in its own directory, recursively delete the directory.
    705                 if ( strpos($plugin_file, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory seperator AND that its not the root plugin folder
     705                if ( strpos($plugin_file, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory separator AND that its not the root plugin folder
    706706                        $deleted = $wp_filesystem->delete($this_plugin_dir, true);
    707707                else
    708708                        $deleted = $wp_filesystem->delete($plugins_dir . $plugin_file);
  • wp-admin/includes/menu.php

     
    121121}
    122122unset($id, $data, $subs, $first_sub);
    123123
    124 // Remove any duplicated seperators
    125 $seperator_found = false;
     124// Remove any duplicated separators
     125$separator_found = false;
    126126foreach ( $menu as $id => $data ) {
    127127        if ( 0 == strcmp('wp-menu-separator', $data[4] ) ) {
    128                 if (false == $seperator_found) {
    129                         $seperator_found = true;
     128                if (false == $separator_found) {
     129                        $separator_found = true;
    130130                } else {
    131131                        unset($menu[$id]);
    132                         $seperator_found = false;
     132                        $separator_found = false;
    133133                }
    134134        } else {
    135                 $seperator_found = false;
     135                $separator_found = false;
    136136        }
    137137}
    138138unset($id, $data);
  • wp-admin/includes/class-wp-upgrader.php

     
    580580                        return $removed;
    581581
    582582                // If plugin is in its own directory, recursively delete the directory.
    583                 if ( strpos($plugin, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory seperator AND that its not the root plugin folder
     583                if ( strpos($plugin, '/') && $this_plugin_dir != $plugins_dir ) //base check on if plugin includes directory separator AND that its not the root plugin folder
    584584                        $deleted = $wp_filesystem->delete($this_plugin_dir, true);
    585585                else
    586586                        $deleted = $wp_filesystem->delete($plugins_dir . $plugin);