Make WordPress Core

Ticket #32101: filter_to_header_data.patch

File filter_to_header_data.patch, 721 bytes (added by mweichert, 9 years ago)

Allow filters to modify plugin/theme header data

  • wp-admin/includes/plugin.php

     
    9999                $plugin_data['AuthorName'] = $plugin_data['Author'];
    100100        }
    101101
    102         return $plugin_data;
     102        return apply_filters('plugin_header_data', $plugin_data);
    103103}
    104104
    105105/**
  • wp-includes/functions.php

     
    44464446                        $all_headers[ $field ] = '';
    44474447        }
    44484448
    4449         return $all_headers;
     4449        return apply_filters('theme_header_data', $all_headers);
    44504450}
    44514451
    44524452/**