WordPress.org

Make WordPress Core

Ticket #4048: get_plugin_data.filter.diff

File get_plugin_data.filter.diff, 705 bytes (added by m0n5t3r, 11 years ago)
  • wp-admin/admin-functions.php

    === modified file 'wp-admin/admin-functions.php'
     
    21672167        } else {
    21682168                $author = '<a href="' . trim( $author_uri[1] ) . '" title="'.__( 'Visit author homepage' ).'">' . trim( $author_name[1] ) . '</a>';
    21692169        }
    2170 
    2171         return array ('Name' => $name, 'Title' => $plugin, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template[1] );
     2170       
     2171        return apply_filters("get_plugin_data", array ('Name' => $name, 'Title' => $plugin, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template[1] ));
    21722172}
    21732173
    21742174/**