Releases: skaut/wordpress-stubs
Releases · skaut/wordpress-stubs
Version 2.4.0
Version 2.3.1
2.3.1 (2022-07-09)
General:
- Improved
composer
script running
Fixes:
- Fixed confusing
WP_Admin_Bar::get_node()
return value - Fixed
wp_get_post_revisions()
return value - Fixed incorrectly missing double underscore from properties of
WP_Comment_Query::$query_vars
- Fixed incorrectly missing double underscore from properties of
WP_Query::__construct()
parameter$query
- Fixed incorrectly missing double underscore from properties of
WP_User_Query::__construct()
parameter$query
Version 2.3.0
Version 2.2.2
Version 2.2.1
Version 2.2.0
2.2.0 (2022-04-26)
Fixes:
- Enabled
WP_Customize_Control
argumentsettings
to be a string - Fixed
wp_insert_attachment()
argumenttax_input
not being optional
New stubs:
sanitize_key()
Version 2.1.0
2.1.0 (2022-04-25)
General:
- Fixed composer suggestion for PHPStan
- Fixed
@package
annotations to correct for package renaming
Fixes:
- Added default value to
WP_Query::get()
parameterdefault
- Updated
do_action()
to be variadic - Added default value to
wp_json_encode()
parameteroptions
- Added default value to
wp_set_current_user()
parametername
- Added default value to
wp_strip_all_tags()
parameterremove_breaks
New stubs:
WP_Query::__construct()
WP_User_Query::__construct()
Version 2.0.0
2.0.0 (2022-04-25)
General:
- Added support for PHPStan
- Moved the package to
skaut/wordpress-stubs
- Full array types using the
array<string>
andarray{key: string}
notation supported by PHPStan
New stubs:
Requests_Cookie_Jar
Requests_Cookie_Jar::offsetExists()
Requests_Cookie_Jar::offsetGet()
Requests_Cookie_Jar::offsetSet()
Requests_Cookie_Jar::offsetUnset
Requests_Cookie_Jar::getIterator()
Requests_Utility_CaseInsensitiveDictionary
Requests_Utility_CaseInsensitiveDictionary::offsetExists()
Requests_Utility_CaseInsensitiveDictionary::offsetGet()
Requests_Utility_CaseInsensitiveDictionary::offsetSet()
Requests_Utility_CaseInsensitiveDictionary::offsetUnset
Requests_Utility_CaseInsensitiveDictionary::getIterator()
WP_Http_Cookie
WP_HTTP_Requests_Response
WP_HTTP_Response
Requests_Auth
Requests_Hooker
Requests_Proxy
Requests_Transport
Version 1.25.0
1.25.0 (2022-04-19)
Fixes:
- Fixed type of parameter
function_to_add
of test functiontests_add_filter()
- Class
WP_Post_Type
is now final - Class
WP_Screen
is now final - Fixed type of variadic arguments of
add_query_arg()
to bemixed
- Fixed missing parameter
postion
ofadd_submenu_page()
Version 1.24.0
1.24.0 (2022-04-19)
New stubs:
WP_DEBUG_DISPLAY
Fixes:
- Fixed missing return type of
wp_kses_normalize_entities()