WordPress.org

Make WordPress Core

Changeset 25032


Ignore:
Timestamp:
08/16/2013 03:46:08 PM (8 years ago)
Author:
ryan
Message:

Be consistent with the arguments passed to the theme_action_links filter. Stop passing stylesheet from class-wp-ms-themes-list-table.php.

Props georgestephanis
fixes #24478

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

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-themes-list-table.php

    r24583 r25032  
    285285            $actions['delete'] = '<a href="' . esc_url( wp_nonce_url( 'themes.php?action=delete-selected&amp;checked[]=' . $theme_key . '&amp;theme_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'bulk-themes' ) ) . '" title="' . esc_attr__( 'Delete this theme' ) . '" class="delete">' . __( 'Delete' ) . '</a>';
    286286
    287         $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $stylesheet, $theme, $context );
    288         $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $stylesheet, $theme, $context );
     287        $actions = apply_filters( 'theme_action_links', array_filter( $actions ), $theme, $context );
     288        $actions = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, $context );
    289289
    290290        $class = ! $allowed ? 'inactive' : 'active';
  • trunk/src/wp-admin/includes/class-wp-themes-list-table.php

    r23563 r25032  
    150150
    151151            $actions       = apply_filters( 'theme_action_links', $actions, $theme );
     152            $actions       = apply_filters( "theme_action_links_$stylesheet", $actions, $theme );
    152153            $delete_action = isset( $actions['delete'] ) ? '<div class="delete-theme">' . $actions['delete'] . '</div>' : '';
    153154            unset( $actions['delete'] );
Note: See TracChangeset for help on using the changeset viewer.