Make WordPress Core

Changeset 32067


Ignore:
Timestamp:
04/07/2015 04:47:59 AM (10 years ago)
Author:
jorbin
Message:

Disable modal initiated shiny updates on wp-admin/update-core.php

We don't have links to update a single plugin on wp-admin/update-core.php so we can't initiate a shiny update there.

Fixes #31739

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r32063 r32067  
    482482            $.support.postMessage = !! window.postMessage;
    483483
    484             if ( $.support.postMessage === false || target === null )
     484            if ( $.support.postMessage === false || target === null || window.location.search.indexOf( 'parent=update-core' ) === -1 )
    485485                return;
    486486
  • trunk/src/wp-admin/update-core.php

    r31527 r32067  
    265265        }
    266266
    267         $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662');
     267        $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&section=changelog&TB_iframe=true&width=640&height=662&parent=update-core');
    268268        $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version);
    269269        $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text);
Note: See TracChangeset for help on using the changeset viewer.