Plugin Directory

Changeset 519906


Ignore:
Timestamp:
03/16/2012 04:31:39 PM (14 years ago)
Author:
Albert Bertilsson
Message:

Fixed link to settings from the plugin admin page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database-peek/trunk/settings.php

    r515453 r519906  
    1515
    1616        function add_settings_link($links, $file) {
    17             static $this_plugin;
    18             if (!$this_plugin) $this_plugin = plugin_basename(__FILE__);
    19            
    20             $pos = strpos($file, '/');
    21             if (substr($file, 0, $pos) == substr($this_plugin, 0, $pos)) {
     17            if (strstr($file, 'database-peek')) {
    2218                $settings = __("Settings");
    2319                $url = admin_url('options-general.php?page=ab-database-peek');
Note: See TracChangeset for help on using the changeset viewer.