Skip to content

Releases: skaut/wordpress-stubs

Version 2.4.0

10 Jul 13:00
2.4.0
ab7f75d
Compare
Choose a tag to compare

2.4.0 (2022-07-10)

Diff since 2.3.1

New stubs:

  • WP_User->$data

Version 2.3.1

09 Jul 12:22
2.3.1
60b9bd0
Compare
Choose a tag to compare

2.3.1 (2022-07-09)

Diff since 2.3.0

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

08 Jul 20:19
2.3.0
c9aa9d9
Compare
Choose a tag to compare

2.3.0 (2022-07-08)

Diff since 2.2.2

New stubs:

  • WP_Locale_Switcher::init()

Version 2.2.2

19 May 08:41
64f81a4
Compare
Choose a tag to compare

2.2.2 (2022-05-19)

Diff since 2.2.1

Fixes:

  • Fixed wp_rand() parameters not being optional

Version 2.2.1

01 May 22:19
21a6d96
Compare
Choose a tag to compare

2.2.1 (2022-05-02)

Diff since 2.2.0

Fixes:

  • Fixed wp_update_user() argument meta_input not being optional

Version 2.2.0

26 Apr 11:26
268f70f
Compare
Choose a tag to compare

2.2.0 (2022-04-26)

Diff since 2.1.0

Fixes:

  • Enabled WP_Customize_Control argument settings to be a string
  • Fixed wp_insert_attachment() argument tax_input not being optional

New stubs:

  • sanitize_key()

Version 2.1.0

25 Apr 10:52
9a3d08e
Compare
Choose a tag to compare

2.1.0 (2022-04-25)

Diff since 2.0.0

General:

  • Fixed composer suggestion for PHPStan
  • Fixed @package annotations to correct for package renaming

Fixes:

  • Added default value to WP_Query::get() parameter default
  • Updated do_action() to be variadic
  • Added default value to wp_json_encode() parameter options
  • Added default value to wp_set_current_user() parameter name
  • Added default value to wp_strip_all_tags() parameter remove_breaks

New stubs:

  • WP_Query::__construct()
  • WP_User_Query::__construct()

Version 2.0.0

25 Apr 07:49
Compare
Choose a tag to compare

2.0.0 (2022-04-25)

Diff since 1.25.0

General:

  • Added support for PHPStan
  • Moved the package to skaut/wordpress-stubs
  • Full array types using the array<string> and array{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

19 Apr 12:52
913d301
Compare
Choose a tag to compare

1.25.0 (2022-04-19)

Diff since 1.24.0

Fixes:

  • Fixed type of parameter function_to_add of test function tests_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 be mixed
  • Fixed missing parameter postion of add_submenu_page()

Version 1.24.0

19 Apr 09:40
e99083c
Compare
Choose a tag to compare

1.24.0 (2022-04-19)

Diff since 1.23.0

New stubs:

  • WP_DEBUG_DISPLAY

Fixes:

  • Fixed missing return type of wp_kses_normalize_entities()