WordPress.org

Make WordPress Core

Ticket #10758: 10758-wp-admin-admin-footer.patch

File 10758-wp-admin-admin-footer.patch, 573 bytes (added by hakre, 5 years ago)

Missing checks for set variables.

  • wp-admin/admin-footer.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    2929<?php 
    3030do_action('admin_footer', ''); 
    3131do_action('admin_print_footer_scripts'); 
    32 do_action("admin_footer-$hook_suffix"); 
     32if (isset($hook_suffix))  
     33        do_action("admin_footer-$hook_suffix"); 
    3334 
    3435// get_site_option() won't exist when auto upgrading from <= 2.7 
    3536if ( function_exists('get_site_option') ) {