WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/22/2019 07:07:57 PM (2 months 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/class-custom-image-header.php

    r45654 r45881  
    7676        }
    7777
    78         add_action( "admin_print_scripts-$page", array( $this, 'js_includes' ) );
    79         add_action( "admin_print_styles-$page", array( $this, 'css_includes' ) );
    80         add_action( "admin_head-$page", array( $this, 'help' ) );
    81         add_action( "admin_head-$page", array( $this, 'take_action' ), 50 );
    82         add_action( "admin_head-$page", array( $this, 'js' ), 50 );
     78        add_action( "admin_print_scripts-{$page}", array( $this, 'js_includes' ) );
     79        add_action( "admin_print_styles-{$page}", array( $this, 'css_includes' ) );
     80        add_action( "admin_head-{$page}", array( $this, 'help' ) );
     81        add_action( "admin_head-{$page}", array( $this, 'take_action' ), 50 );
     82        add_action( "admin_head-{$page}", array( $this, 'js' ), 50 );
    8383        if ( $this->admin_header_callback ) {
    84             add_action( "admin_head-$page", $this->admin_header_callback, 51 );
     84            add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
    8585        }
    8686    }
Note: See TracChangeset for help on using the changeset viewer.