WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/22/2019 07:07:57 PM (8 weeks ago)
Author:
desrosj
Message:

Coding Standards: Dynamic hooks should be named using interpolation not concatenation.

Props arena, desrosj.
Fixes #47052.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r45599 r45881  
    358358        $plugins = array_keys( $plugins->response );
    359359        foreach ( $plugins as $plugin_file ) {
    360             add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 );
     360            add_action( "after_plugin_row_{$plugin_file}", 'wp_plugin_update_row', 10, 2 );
    361361        }
    362362    }
     
    546546
    547547        foreach ( $themes as $theme ) {
    548             add_action( "after_theme_row_$theme", 'wp_theme_update_row', 10, 2 );
     548            add_action( "after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2 );
    549549        }
    550550    }
Note: See TracChangeset for help on using the changeset viewer.