WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/03/2017 03:42:45 PM (3 years ago)
Author:
johnbillion
Message:

General: Fix various instances of incorrect filter docs and incorrect filter and action parameters.

Props keesiemeijer for identifying the issues

See #38462

File:
1 edited

Legend:

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

    r41161 r41219  
    193193
    194194            /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */
    195             $actions       = apply_filters( 'theme_action_links', $actions, $theme );
     195            $actions       = apply_filters( 'theme_action_links', $actions, $theme, 'all' );
    196196
    197197            /** This filter is documented in wp-admin/includes/class-wp-ms-themes-list-table.php */
    198             $actions       = apply_filters( "theme_action_links_$stylesheet", $actions, $theme );
     198            $actions       = apply_filters( "theme_action_links_$stylesheet", $actions, $theme, 'all' );
    199199            $delete_action = isset( $actions['delete'] ) ? '<div class="delete-theme">' . $actions['delete'] . '</div>' : '';
    200200            unset( $actions['delete'] );
Note: See TracChangeset for help on using the changeset viewer.