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-background.php

    r45662 r45881  
    6868        }
    6969
    70         add_action( "load-$page", array( $this, 'admin_load' ) );
    71         add_action( "load-$page", array( $this, 'take_action' ), 49 );
    72         add_action( "load-$page", array( $this, 'handle_upload' ), 49 );
     70        add_action( "load-{$page}", array( $this, 'admin_load' ) );
     71        add_action( "load-{$page}", array( $this, 'take_action' ), 49 );
     72        add_action( "load-{$page}", array( $this, 'handle_upload' ), 49 );
    7373
    7474        if ( $this->admin_header_callback ) {
    75             add_action( "admin_head-$page", $this->admin_header_callback, 51 );
     75            add_action( "admin_head-{$page}", $this->admin_header_callback, 51 );
    7676        }
    7777    }
Note: See TracChangeset for help on using the changeset viewer.