WordPress.org

Make WordPress Core

Changeset 18084


Ignore:
Timestamp:
05/31/2011 07:58:36 PM (10 years ago)
Author:
ryan
Message:

s/seperator/separator/. Props brandonburke. fixes #17610

Location:
trunk/wp-admin/includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r17771 r18084  
    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
  • trunk/wp-admin/includes/menu.php

    r18038 r18084  
    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}
  • trunk/wp-admin/includes/plugin.php

    r17617 r18084  
    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
Note: See TracChangeset for help on using the changeset viewer.