WordPress.org

Make WordPress Core

Ticket #36923: 36923-2.diff

File 36923-2.diff, 818 bytes (added by afragen, 6 years ago)
  • wp-admin/includes/update.php

    diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php
    index 28a12f4..bfa9555 100644
    a b function wp_theme_update_row( $theme_key, $theme ) { 
    462462
    463463        $details_url = add_query_arg( array( 'TB_iframe' => 'true', 'width' => 1024, 'height' => 800 ), $current->response[ $theme_key ]['url'] );
    464464
     465        /**
     466         * Filters the $details_url for theme update information.
     467         *
     468         * @since 4.6.0
     469         *
     470         * @param string $details_url URL for theme update information.
     471         * @param string $theme_key   Theme slug.
     472         */
     473        $details_url = apply_filters( 'modify_wp_theme_details_url', $details_url, $theme_key );
     474
    465475        $wp_list_table = _get_list_table('WP_MS_Themes_List_Table');
    466476
    467477        $active = $theme->is_allowed( 'network' ) ? ' active': '';