Skip to content
Permalink
Branch: master
Commits on Sep 17, 2019
  1. Docs: Correct accepted values for `search_columns` parameter in `WP_U…

    SergeyBiryukov committed Sep 17, 2019
    …ser_Query`.
    
    Props meloniq.
    Fixes #48057.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46156 602fd350-edb4-49c9-b593-d223f7449a82
  2. Date/Time: Introduce `get_post_datetime()` to retrieve post published…

    SergeyBiryukov committed Sep 17, 2019
    … or modified time as a `DateTimeImmutable` object instance.
    
    Introduce `get_post_timestamp()` to retrieve post published or modified time as a Unix timestamp.
    
    Use `get_post_datetime()` in `get_post_time()` and `get_post_modified_time()` to return correct GMT time if default timezone is changed from UTC.
    
    Props Rarst, johnregan3.
    Fixes #25002.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46154 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Sep 16, 2019
  1. Docs: Improve documentation for `get_bookmarks()`.

    SergeyBiryukov committed Sep 16, 2019
    Props pbiron.
    Fixes #48053.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46152 602fd350-edb4-49c9-b593-d223f7449a82
  2. Site Health: Add a link to "Debugging in WordPress" support article t…

    SergeyBiryukov committed Sep 16, 2019
    …o fatal PHP error handler's default message.
    
    Props garrett-eclipse, tobifjellner, dkarfa, hareesh-pillai.
    Fixes #47681.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46151 602fd350-edb4-49c9-b593-d223f7449a82
  3. Docs: Improve `@return` value description for `wp_xmlrpc_server::mini…

    SergeyBiryukov committed Sep 16, 2019
    …mum_args()`.
    
    See #47110.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46150 602fd350-edb4-49c9-b593-d223f7449a82
  4. Code Modernisation: Remove redundant PHP 4 code from `do_action()`.

    SergeyBiryukov committed Sep 16, 2019
    As of PHP 5, objects are always passed by reference, so this has not been needed for quite some time.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46149 602fd350-edb4-49c9-b593-d223f7449a82
  5. XML-RPC: Avoid a PHP warning in `wp_xmlrpc_server::minimum_args()` if…

    SergeyBiryukov committed Sep 16, 2019
    … `$args` is not an array.
    
    Correct the documentation to clarify that array is the only acceptable type for `$args`.
    
    Props bitcomplex, dkarfa.
    Fixes #48046.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46148 602fd350-edb4-49c9-b593-d223f7449a82
  6. Widgets: Introduce `register_sidebar_defaults` filter for default arg…

    SergeyBiryukov committed Sep 16, 2019
    …uments in `register_sidebar()`.
    
    Props patilvikasj, powerbuoy.
    Fixes #48033.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46147 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Sep 15, 2019
  1. Code Modernisation: Simplify some logic in `apply_filters()`.

    SergeyBiryukov committed Sep 15, 2019
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46146 602fd350-edb4-49c9-b593-d223f7449a82
  2. Code Modernisation: Replace `call_user_func_array()` in `tests/phpuni…

    SergeyBiryukov committed Sep 15, 2019
    …t/tests/db.php` with dynamic function calls.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46145 602fd350-edb4-49c9-b593-d223f7449a82
  3. Code Modernisation: Replace `call_user_func_array()` in various `__ca…

    SergeyBiryukov committed Sep 15, 2019
    …ll()` methods with dynamic function calls.
    
    The callback in these functions is always checked against a limited list of valid callbacks that can be safely changed to dynamic function calls.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46144 602fd350-edb4-49c9-b593-d223f7449a82
  4. Code Modernisation: Replace `call_user_func_array()` in `wp-includes/…

    SergeyBiryukov committed Sep 15, 2019
    …class-wp-walker.php` with dynamic function calls.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46143 602fd350-edb4-49c9-b593-d223f7449a82
  5. Code Modernisation: Replace `call_user_func_array()` in `wp-cron.php`…

    SergeyBiryukov committed Sep 15, 2019
    … with a direct function call.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46142 602fd350-edb4-49c9-b593-d223f7449a82
  6. Code Modernisation: Remove redundant call to `func_get_arg()` in `wp-…

    SergeyBiryukov committed Sep 15, 2019
    …includes/class-wp-rewrite.php`.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46141 602fd350-edb4-49c9-b593-d223f7449a82
  7. Code Modernisation: Remove redundant calls to `func_get_arg()` in `wp…

    SergeyBiryukov committed Sep 15, 2019
    …-includes/class-wp-admin-bar.php`.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46140 602fd350-edb4-49c9-b593-d223f7449a82
  8. Code Modernisation: Replace `call_user_func_array()` in combination w…

    SergeyBiryukov committed Sep 15, 2019
    …ith an empty array in `wp-includes/class-wp-hook.php` with `call_user_func()`.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46139 602fd350-edb4-49c9-b593-d223f7449a82
  9. Code Modernisation: Replace `call_user_func_array()` in `wp-admin/inc…

    SergeyBiryukov committed Sep 15, 2019
    …ludes/widgets.php` and associated unit tests with a direct function call.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46138 602fd350-edb4-49c9-b593-d223f7449a82
  10. Code Modernisation: Replace `call_user_func_array()` in `wp-admin/inc…

    SergeyBiryukov committed Sep 15, 2019
    …ludes/template.php` with a dynamic function call.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46137 602fd350-edb4-49c9-b593-d223f7449a82
  11. Code Modernisation: Replace `call_user_func_array()` in `wp-admin/inc…

    SergeyBiryukov committed Sep 15, 2019
    …ludes/ajax-actions.php` with a dynamic function call.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46136 602fd350-edb4-49c9-b593-d223f7449a82
  12. Code Modernisation: Replace `call_user_func_array()` in `wp-includes/…

    SergeyBiryukov committed Sep 15, 2019
    …nav-menu-template.php` with a dynamic function call.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46134 602fd350-edb4-49c9-b593-d223f7449a82
  13. Code Modernisation: Replace `call_user_func_array()` in `wp-includes/…

    SergeyBiryukov committed Sep 15, 2019
    …class-wp-customize-*.php` with direct function calls in combination with the spread operator.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46133 602fd350-edb4-49c9-b593-d223f7449a82
  14. Code Modernisation: Replace `call_user_func_array()` in `wp-includes/…

    SergeyBiryukov committed Sep 15, 2019
    …capabilities.php` with a direct function call.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46132 602fd350-edb4-49c9-b593-d223f7449a82
  15. Code Modernisation: Introduce the spread operator in `wp-admin/includ…

    SergeyBiryukov committed Sep 15, 2019
    …es/media.php`.
    
    Rather than relying `func_get_args()` to retrieve arbitrary function arguments, we can now use the spread operator to assign them directly to a variable.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46131 602fd350-edb4-49c9-b593-d223f7449a82
  16. Code Modernisation: Introduce the spread operator in `wp-admin/includ…

    SergeyBiryukov committed Sep 15, 2019
    …es/dashboard.php`.
    
    Rather than relying `func_get_args()` to retrieve arbitrary function arguments, we can now use the spread operator to assign them directly to a variable.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46130 602fd350-edb4-49c9-b593-d223f7449a82
  17. Code Modernisation: Introduce the spread operator in `wp-includes/for…

    SergeyBiryukov committed Sep 15, 2019
    …matting.php`.
    
    Rather than relying `func_get_args()` to retrieve arbitrary function arguments, we can now use the spread operator to assign them directly to a variable.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46128 602fd350-edb4-49c9-b593-d223f7449a82
  18. Code Modernisation: Introduce the spread operator in `tests/phpunit/*`.

    SergeyBiryukov committed Sep 15, 2019
    Rather than relying `func_get_args()` to retrieve arbitrary function arguments, we can now use the spread operator to assign them directly to a variable.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46127 602fd350-edb4-49c9-b593-d223f7449a82
  19. Code Modernisation: Introduce the spread operator in `wp-includes/fun…

    SergeyBiryukov committed Sep 15, 2019
    …ctions.php`.
    
    Rather than relying `func_get_args()` to retrieve arbitrary function arguments, we can now use the spread operator to assign them directly to a variable.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46126 602fd350-edb4-49c9-b593-d223f7449a82
  20. Code Modernisation: Introduce the spread operator in `wp-admin/includ…

    SergeyBiryukov committed Sep 15, 2019
    …es/class-*-upgrader-skin.php`.
    
    Rather than relying `func_get_args()` to retrieve arbitrary function arguments, we can now use the spread operator to assign them directly to a variable.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46125 602fd350-edb4-49c9-b593-d223f7449a82
  21. Code Modernisation: Introduce the spread operator in `wp-includes/cla…

    SergeyBiryukov committed Sep 15, 2019
    …ss-wp-dependency.php`.
    
    Rather than relying `func_get_args()` to retrieve arbitrary function arguments, we can now use the spread operator to assign them directly to a variable.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46124 602fd350-edb4-49c9-b593-d223f7449a82
  22. Code Modernisation: Introduce the spread operator in `wp-includes/cat…

    SergeyBiryukov committed Sep 15, 2019
    …egory-template.php`.
    
    Rather than relying `func_get_args()` to retrieve arbitrary function arguments, we can now use the spread operator to assign them directly to a variable.
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46123 602fd350-edb4-49c9-b593-d223f7449a82
  23. Code Modernisation: Use the spread operator in `wp_register_sidebar_w…

    SergeyBiryukov committed Sep 15, 2019
    …idget()`.
    
    Rather than relying `func_get_args()` to retrieve arbitrary function arguments, we can now use the spread operator to assign them directly to a variable.
    
    Missed in [45629].
    
    Props jrf.
    See #47678.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46122 602fd350-edb4-49c9-b593-d223f7449a82
  24. Coding Standards: Fix WPCS issue in [46120].

    SergeyBiryukov committed Sep 15, 2019
    See #47820.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46121 602fd350-edb4-49c9-b593-d223f7449a82
  25. Docs: Clarify in `update_option()` description that it's plugin autho…

    SergeyBiryukov committed Sep 15, 2019
    …r's responsibility to check the current user's capabilities before saving any option changes.
    
    Props dinhtungdu, lllor.
    Fixes #47820.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46120 602fd350-edb4-49c9-b593-d223f7449a82
  26. Site Health: Show a more specific fatal error message when in Recover…

    SergeyBiryukov committed Sep 15, 2019
    …y Mode with headers already sent.
    
    Props garrett-eclipse, TimothyBlynJacobs, mukesh27, marybaum, afragen, Clorith, mdwolinski, SergeyBiryukov.
    Fixes #47321.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46119 602fd350-edb4-49c9-b593-d223f7449a82
Commits on Sep 14, 2019
  1. Mail: Add a unit test to make sure `wp_mail()` does not duplicate the…

    SergeyBiryukov committed Sep 14, 2019
    … `MIME-Version` header added automatically by PHPMailer.
    
    See #43542.
    
    git-svn-id: https://develop.svn.wordpress.org/trunk@46118 602fd350-edb4-49c9-b593-d223f7449a82
Older
You can’t perform that action at this time.