@@ -57,41 +57,3 @@ function get_masked_version() {
5757
5858 return implode ( '. ' , $ version );
5959}
60-
61- /**
62- * Gets the plugin version.
63- *
64- * @return string The plugin version.
65- */
66- function get_plugin_version () {
67- $ meta = get_plugin_meta ( array ( 'Version ' => 'Version ' ) );
68-
69- return $ meta ['Version ' ];
70- }
71-
72- /**
73- * Gets plugin metadata.
74- *
75- * @param array $default_headers Optional headers to retrieve.
76- * @return array The plugin metadata.
77- */
78- function get_plugin_meta ( $ default_headers = array () ) {
79- if ( ! $ default_headers ) {
80- $ default_headers = array (
81- 'Name ' => 'Plugin Name ' ,
82- 'PluginURI ' => 'Plugin URI ' ,
83- 'Version ' => 'Version ' ,
84- 'Description ' => 'Description ' ,
85- 'Author ' => 'Author ' ,
86- 'AuthorURI ' => 'Author URI ' ,
87- 'TextDomain ' => 'Text Domain ' ,
88- 'DomainPath ' => 'Domain Path ' ,
89- 'Network ' => 'Network ' ,
90- 'RequiresWP ' => 'Requires at least ' ,
91- 'RequiresPHP ' => 'Requires PHP ' ,
92- 'UpdateURI ' => 'Update URI ' ,
93- );
94- }
95-
96- return \get_file_data ( NODEINFO_PLUGIN_FILE , $ default_headers , 'plugin ' );
97- }
0 commit comments