WordPress.org

Make WordPress Core

Ticket #24122: 24122.patch

File 24122.patch, 553 bytes (added by aniketpant, 8 years ago)

Fixes bug by changing the way the strings were being compared

  • wp-admin/plugin-editor.php

     
    185185<?php
    186186        foreach ( $plugins as $plugin_key => $a_plugin ) {
    187187                $plugin_name = $a_plugin['Name'];
    188                 if ( $plugin_key == $plugin )
     188                $plugin_key_part = explode('/', $plugin_key);
     189                $plugin_part = explode('/', $plugin);
     190                if ( $plugin_key_part[0] == $plugin_part[0] )
    189191                        $selected = " selected='selected'";
    190192                else
    191193                        $selected = '';