profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/Ayesh/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Ayesh Karunaratne Ayesh @phpwatch Everywhere https://aye.sh/ Software Architect, Security Researcher, Speaker, Full-time Traveler. Loves Cobblestone pavements, dark chocolate, Blueberry Pierogi, and Oxford Commas.

Ayesh/Composer-Preload 187

Preload your sweet sweet code to opcache with a composer command, making your code faster to run.

Ayesh/InstagramDownload 166

Instagram image and video downloader with URL validation and cURL integration

Ayesh/StatelessCSRF 21

Secret-key based state-less CSRF token generator and validator for PHP 7. State-less means you do not have to store the CSRF token in session or database.

Ayesh/php-timer 18

A stop-watch and timer with start/stop/pause features and minimal human-friendly formatting.

Ayesh/PHPTemplate 11

A secure-by-default, lightweight, fast, and simple template engine that you write templates in PHP. We already have many PHP template engines, but one more doesn't hurt, right guys? guys?

Ayesh/WordPress-oEmbed-Plus 11

WordPress plugin to support Facebook and Instagram oEmbed embeds

Ayesh/case-insensitive-array 10

A library providing an Array-Class to store and access data in a case-insensitive fashion, while maintaining the integrity and functionality of a regular array.

Ayesh/Composer-Min-Autoload 10

A Composer plugin to generate slightly minimal Autoloader with a new dump-min-autoload command

Ayesh/WordPress-Password-Hash 6

Wordpress plugin to change its password hashing mechanism with PHP native password_* set of functions.

Ayesh/grunt-guetzli 3

Grunt plugin to compress JPG and PNG images according to Google's Guetzli algorithm.

startedopensourcepos/opensourcepos

started time in 13 days

startedshopware/platform

started time in 19 days

startedshopware/shopware

started time in 19 days

issue closedAyesh/InstagramDownload

Not working - Returning 500 when using the API

I have used composer to autoload class. But the API is not working. Please look into the issue. Thanks in advance.

closed time in 21 days

shashifreeze

issue commentAyesh/InstagramDownload

Not working - Returning 500 when using the API

Hi @Babbar1322 - From the error message, it looks like you are using an older PHP version that this library does not support. Kindly try by updating to PHP 7.4 or PHP 8.0.

shashifreeze

comment created time in 21 days

startedgoogleapis/google-cloud-php

started time in 24 days

startedchunfeilung/css-trains

started time in a month

push eventAyesh/wordpress-develop

Sergey Biryukov

commit sha 3a189c93e1412a623075a15dd4eefd95150938e5

Upgrade/Install: Avoid creating nonce during installation. This avoids a "Table `wp_options` doesn't exist" database error when trying to create a nonce for password reset button. When installing and using database-saved salts, `wp_create_nonce()` causes database errors as `wp_salt()` attempts to insert into the not-yet-created options table. Since authentication is not available during installation, we can safely skip creating a nonce. Follow-up to [39684], [50129]. Props schlessera, swissspidy, sanketchodavadiya, hellofromTonya, SergeyBiryukov. Fixes #53830. git-svn-id: https://develop.svn.wordpress.org/trunk@51525 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 1ea9ce390d0589613ef26f36cdfcad16b8b82483

Coding Standards: Fix typo in the JS function name for handling the password reset button. Follow-up to [50129]. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51526 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 80ccb3697c4a6f5638498c9789ed2abea1070b98

Docs: Fix typo in the `WP_Upgrader::install_package()` description. Follow-up to [30758]. See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@51527 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 717158ee321d4c8b6dc49c6a057c0701f0532dd5

Upgrade/Install: Store correct result when bulk updating plugins or themes. This ensures that when multiple plugins or themes are updated and one succeeds and another fails, the error is reported accordingly. Previously, both updates would end up treated as a success, due to `$this->result` containing the result of the previous operation and not the current one. Follow-up to [12097]. Props pwtyler, afragen. Fixes #53002. git-svn-id: https://develop.svn.wordpress.org/trunk@51528 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha df724f991b1af4d87c8897af2922e0ba826371d5

Code Modernization: Silence the deprecation warnings for missing return type in `WP_Theme`. This fixes the "Deprecated: Return type of `WP_Theme::[METHODNAME]($offset)` should be compatible with `ArrayAccess::[METHODNAME](): type`" warnings on PHP 8.1. PHP native interfaces now have declared return types and methods in classes implementing these interfaces need to either have the return type declared (in a covariant compatible manner with the PHP native interface method declaration), or need to silence the deprecation warning using the `#[ReturnTypeWillChange]` attribute. Follow-up to [51517]. Props jrf. See #53635. git-svn-id: https://develop.svn.wordpress.org/trunk@51529 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 471edb01939328d2858ac31e20625c95ff7163bb

Code Modernization: Silence the deprecation warnings for missing return type in `WP_Hook`. This fixes the "Deprecated: Return type of `WP_Hook::[METHODNAME]()` should be compatible with `ArrayAccess::[METHODNAME](): type`" warnings on PHP 8.1. PHP native interfaces now have declared return types and methods in classes implementing these interfaces need to either have the return type declared (in a covariant compatible manner with the PHP native interface method declaration), or need to silence the deprecation warning using the `#[ReturnTypeWillChange]` attribute. Follow-up to [51517], [51529]. Props jrf. See #53635. git-svn-id: https://develop.svn.wordpress.org/trunk@51530 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 289c9c7248f766257a730335189cc4c371e83abe

Code Modernization: Silence the deprecation warnings for missing return type in `WP_REST_Request`. This fixes the "Deprecated: Return type of `WP_REST_Request::[METHODNAME]($offset)` should be compatible with `ArrayAccess::[METHODNAME](): type`" warnings on PHP 8.1. PHP native interfaces now have declared return types and methods in classes implementing these interfaces need to either have the return type declared (in a covariant compatible manner with the PHP native interface method declaration), or need to silence the deprecation warning using the `#[ReturnTypeWillChange]` attribute. Follow-up to [51517], [51529], [51530]. Props jrf. See #53635. git-svn-id: https://develop.svn.wordpress.org/trunk@51531 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 9f3c2be1d05f9633a3ac85be9051f560e97e5422

Code Modernization: Silence the deprecation warnings for missing return type in `WP_Block_List`. This fixes the "Deprecated: Return type of `WP_Block_List::[METHODNAME]()` should be compatible with `ArrayAccess::[METHODNAME](): type`" warnings on PHP 8.1. PHP native interfaces now have declared return types and methods in classes implementing these interfaces need to either have the return type declared (in a covariant compatible manner with the PHP native interface method declaration), or need to silence the deprecation warning using the `#[ReturnTypeWillChange]` attribute. Follow-up to [51517], [51529], [51530], [51531]. Props jrf. See #53635. git-svn-id: https://develop.svn.wordpress.org/trunk@51532 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha a5de731f9ec54edc8648446d47a96ea49463a9bf

Code Modernization: Pass correct default value to `new DateTime()` in `wp_default_packages_inline_scripts()`. This fixes a "Deprecated: `DateTime::__construct()`: Passing null to parameter #1 (`$datetime`) of type string is deprecated" warning on PHP 8.1. Follow-up to [49083]. See #53635. git-svn-id: https://develop.svn.wordpress.org/trunk@51533 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha f117c74c6aaeab9cf3fc13315778ae697d07c74a

Coding Standards: Correct `DateTimeZone` class name in `WP_Customize_Date_Time_Control::get_timezone_info()`. Follow-up to [41626]. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51534 602fd350-edb4-49c9-b593-d223f7449a82

view details

Jonathan Desrosiers

commit sha ce0396ba7663c5a6bf438373613846e660f02176

Build/Test Tools: Expand Slack notifications for GitHub Actions. This expands Slack notifications to include success, cancelled, and “fixed” GitHub Action workflow run outcomes in addition to failures. A “fixed” outcome occurs when the previous run for a workflow failed and the current one succeeds. This matches the behavior that was native to TravisCI by setting `on_success` for notifications to `change`. The message details and where each outcome is posted is controlled by Slack workflows. The Slack notification logic has also been pulled into a separate workflow to prevent repeating code in every workflow. See #52644. git-svn-id: https://develop.svn.wordpress.org/trunk@51535 602fd350-edb4-49c9-b593-d223f7449a82

view details

Jonathan Desrosiers

commit sha 37407018d21f46f472569f529e84ae3b8b530e72

Build/Test Tools: Correct invalid JSON in Slack payload. The outer `”` marks are not required and produce invalid JSON. See #52644. git-svn-id: https://develop.svn.wordpress.org/trunk@51536 602fd350-edb4-49c9-b593-d223f7449a82

view details

Jonathan Desrosiers

commit sha 31481819251813bfd3d952be78021c0bce0d0aff

Build/Test Tools: Revert changes only included for testing purposes. Follow up to [51535-51536]. See #52644. git-svn-id: https://develop.svn.wordpress.org/trunk@51537 602fd350-edb4-49c9-b593-d223f7449a82

view details

Jorge Costa

commit sha 5951c60aed020b363692c6829646327e7731e630

Block Editor: Add missing border setting on button block. This commit fixes a regression on WordPress 5.8 that made the border radius setting on the buttons block disappear. Props Mamaduka, daisyo, priethor, desrosj, mikeschroder. Fixes #53702. git-svn-id: https://develop.svn.wordpress.org/trunk@51538 602fd350-edb4-49c9-b593-d223f7449a82

view details

Peter Wilson

commit sha bed17098b82cf557481bc90a66e32b7d87895ce1

Menus: Hide bulk-select on new menu page. Prevent the bulk-select option from displaying when adding a new menu. This also prevents the option from displaying when an administrator first visits the menu page and no menus are set. Props dlh, sabernhardt. Fixes #53654. git-svn-id: https://develop.svn.wordpress.org/trunk@51539 602fd350-edb4-49c9-b593-d223f7449a82

view details

Peter Wilson

commit sha 601ae4a6b21746d3c53e8d718c955c14a50d7bb2

Editor: Prevent block-editor JavaScript loading in other editors. Add a check to `wp_add_iframed_editor_assets_html()` confirming the edit post screen is using the block-editor before including block-editor specific JavaScript. For the classic and other editors the function returns early without any output. Props swissspidy, desrosj. Fixes #53696. git-svn-id: https://develop.svn.wordpress.org/trunk@51540 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 2ed4b82cb05bfcd4b899864c66d8dd6c8a9b067b

Bundled Themes: Add `/` character to `<img>` tags. While this has no effect on void elements in HTML5, it fixes a minor inconsistency with the rest of core. Follow-up to [47493], [48834], [50556], [51473]. Props shital-patel, akabarikalpesh. See #53870. git-svn-id: https://develop.svn.wordpress.org/trunk@51541 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha a52d8cdfc252369a7fef078cbd1148715f645e14

Media: Add `/` character to `<img>` tag in `wp_print_media_templates()`. While this has no effect on void elements in HTML5, it fixes a minor inconsistency with the rest of core. Follow-up to [47493], [48834], [50556], [51473], [51541]. Props shital-patel, akabarikalpesh. Fixes #53870. git-svn-id: https://develop.svn.wordpress.org/trunk@51542 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 0e442c4615bdcdc1c2e4f8db6f88f57e6859c2ff

Build/Test Tools: Remove the Composer lock file from version control. This makes it easier to run unit tests against multiple different PHP versions. There is currently no reason to have a `composer.lock` file as: * External runtime dependencies are not managed via Composer. * Managed updates of the non-runtime dependencies can be done by locking the version used in the `composer.json` file to a precise version instead of using a `composer.lock` file. * Having the `composer.lock` file in place makes it a lot more difficult to run the tests against all supported PHP versions. With these considerations in mind, the lock file is now removed from version control and added to `.gitignore` and `svn:ignore`. Version constraints for the current dev dependencies are adjusted accordingly: * PHPUnit now explicitly declares in its version constraints that PHPUnit 5.x, 6.x, and 7.x are supported. The minimum supported version for PHPUnit 5.x has been raised from 5.4 to 5.7, which in practice was already the version used for running the tests on PHP 5.6. * PHPCompatibilityWP is effectively updated to version 2.1.2 with the positive impact that a few new constants polyfilled in WP 5.8 are now accounted for (excluded from being flagged). * PHP_CodeSniffer is declared as an explicit dependency to ensure that updates to it will always be explicitly managed instead of inherited. * The DealerDirect Composer plugin is effectively updated to version 0.7.1 without impact. Follow-up to [42960], [46290], [47881], [48957]. Props jrf, johnbillion, desrosj, ayeshrajans, aristath, hellofromTonya, SergeyBiryukov. See #47381. git-svn-id: https://develop.svn.wordpress.org/trunk@51543 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 461f7764e4c6f17dac49a1c4297611b10c6b7ac1

Build/Test Tools: Use a custom autoloader for the PHPUnit 9.x mock object classes. This prevents the classes from being loaded automatically via the `autoload-dev` directives when a Composer-installed PHPUnit 5.x or 6.x version is used, as that would break the test run. It is expected that this autoloader will be removed soon, as it should no longer be needed when the PHPUnit version constraints are widened. Notes: * The autoloader file will be loaded from the Test bootstrap. * The autoloader will always be registered and directed to queue itself _before_ the Composer autoload file (which will already have been registered). * The autoloader will only actually load the WP copies of the files/classes when PHP 8.0 in combination with PHPUnit 7.x is detected. In all other cases, the autoloader will bow out, which effectively then defers to the Composer autoload file to load the files as shipped with the installed PHPUnit version. Follow-up to [48957], [49037], [51543]. Props jrf. See #47381. git-svn-id: https://develop.svn.wordpress.org/trunk@51544 602fd350-edb4-49c9-b593-d223f7449a82

view details

push time in a month

issue openednadimkobeissi/appleprivacyletter

Mr

Name

Ayesh Karunaratne

Affiliation

No response

URL of your Website/Twitter/etc.

https://aye.sh

  • [X] I am signing as an organization.

created time in a month

push eventAyesh/wordpress-develop

Sergey Biryukov

commit sha 7f20da50e7019308ee5aaa77dc99f357790f5f73

Coding Standards: Remove wrapping HTML tags from translatable strings. This fixes a "Strings should not be wrapped in HTML" WPCS warning in help tabs for Export Personal Data and Erase Personal Data screens. Follow-up to [50147]. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51381 602fd350-edb4-49c9-b593-d223f7449a82

view details

Jorge Costa

commit sha 6bd5962c7d234b3dd59cb271877d9db36c4f27eb

Block Editor: Fix for theme.json: color.duotone and spacing.units should allow empty sets. This commit fixes an issue with the color.duotone & spacing.units in which empty values didn't override previous origins, resulting in that a theme couldn't provide an empty set for this via its theme.json. Props nosolosw, youknowriad, aristath. See #53175. git-svn-id: https://develop.svn.wordpress.org/trunk@51383 602fd350-edb4-49c9-b593-d223f7449a82

view details

Robert Anderson

commit sha 5d9c39866937eb857c6261a8a533643e2c4d5fd0

Editor: Merge conflicting wp.editor objects into single, non-conflicting object The `wp-editor` script (`@wordpress/editor` npm package) is exposed as `window.wp.editor` in WP Admin. This causes problems, though, as many older scripts expect to see the older `editor` script available at `window.wp.editor`. The solution is to export all the members of the older `window.wp.editor` module in the newer module to maintain backwards compatibility. See #53437. Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu. git-svn-id: https://develop.svn.wordpress.org/trunk@51387 602fd350-edb4-49c9-b593-d223f7449a82

view details

Robert Anderson

commit sha f49d48fdcb30f48307ccab183f9103d8b4527e5c

Widgets: Warn when wp-editor script or wp-edit-post style is enqueued in widgets editor It is common that plugins erroneously have `wp-editor` or `wp-edit-post` as a dependency in a script that is loaded in the new widgets editor. This is a smell since both `@wordpress/editor` and `@wordpress/edit-post` assume the existence of a global "post" object which the widgets editor does not have. [51387] fixes the user-facing errors typically caused by this mistake, but we can go a step further and warn developers about this by calling `_doing_it_wrong()` when we detect that the `wp-editor` script or `wp-edit-post` style is enqueued alongside `wp-edit-widgets` or `wp-customize-widgets`. See #53437. Fixes #53569. Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu, dlh. git-svn-id: https://develop.svn.wordpress.org/trunk@51388 602fd350-edb4-49c9-b593-d223f7449a82

view details

Mike Schroder

commit sha 7de1b7c0ae272ae71d1ad16368ca5aaeef2e2df7

Customizer: Skip animations when they have no duration. In addition to skipping animations when a related style doesn't Exist, now checks to see if animation styles are Empty as well. This resolves a case where the Gutenberg End to End tests were failing, due to running with animations disabled. This change should also help some users who are intentionally overriding styles to remove animations. See https://github.com/WordPress/gutenberg/issues/32024 for the original Gutenberg issue. Props zieladam, isabel_brison, kevin940726, desrosj, mikeschroder. Fixes #53562. See #53542. git-svn-id: https://develop.svn.wordpress.org/trunk@51389 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha c7be2d875e0dfd355522efbaf3e4fca54947768a

Docs: Some documentation improvements for `wp_check_widget_editor_deps()`: * Add missing short description for the function. * Correct function names in `_doing_it_wrong()` calls. * Document the usage of `$wp_scripts` and `$wp_styles` globals. * Update syntax for multi-line comment per the documentation standards. Follow-up to [51387], [51388]. See #53437, #53569. git-svn-id: https://develop.svn.wordpress.org/trunk@51390 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 2999960f51e6940c22383f36d970992edf44a4e1

I18N: Translate `_doing_it_wrong()` messages in `wp_check_widget_editor_deps()`. This makes them consistent with other similar messages in core. Follow-up to [51387], [51388], [51390]. See #53437, #53569. git-svn-id: https://develop.svn.wordpress.org/trunk@51391 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha f81cd31166d924ca2fdedc0fa163ae6d99eff452

Coding Standards: Add missing semicolon to `endforeach` keywords in media templates. Follow-up to [27411], [27440]. Props vishitshah, mukesh27, nielslange, sabernhardt. Fixes #46103. git-svn-id: https://develop.svn.wordpress.org/trunk@51395 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha cf7cc2843bbf6a7038eb822173e0cafab0d243e0

Code Modernization: Only check collation in `wpdb` methods if the query is not empty. This avoids a deprecation notice on PHP 8.1 caused by passing `null` instead of a string to `ltrim()` in `wpdb::check_safe_collation()`, and maintains the current behaviour. Follow-up to [30345], [32162], [33455]. See #53635. git-svn-id: https://develop.svn.wordpress.org/trunk@51396 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha d77f065f244307fb50a13741304a212a0a432b3a

Tests: Use more appropriate assertions in various tests. This replaces instances of `assertTrue( isset( ... ) )` with `assertArrayHasKey()` to use native PHPUnit functionality. Follow-up to [51335], [51337], [51367]. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51397 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 03fa1062f2a5c94d69078b7d7ed23bed12d1a580

Users: Return earlier from `wp_update_user()` in case of error. This ensures that if the `wp_insert_user()` call resulted in a `WP_Error` object, it is returned right away without any further actions. Follow-up to [32820]. Fixes #53627. git-svn-id: https://develop.svn.wordpress.org/trunk@51398 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha b3d49483df707e96b2801351142b5e6047f15ba2

Coding Standards: Rename the `$ID` variable to `$user_id` in `wp_insert_user()` and `wp_update_user()`. This fixes a "Variable `$ID` is not in valid snake_case format" WPCS warning. Follow-up to [2872]. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51399 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha ec70bebfb47053935abc46269977495beda02dc3

Bundled Themes: Correct comment formatting in `inc/block-patterns.php`. Follow-up to [51045], [51103]. Props kapilpaul. See #53359, #52627. git-svn-id: https://develop.svn.wordpress.org/trunk@51400 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha e618a5b859ca4592038e79a74b22138bc97b49df

Twenty Fifteen: Use strict comparison in `inc/custom-header.php`. Props kapilpaul. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51401 602fd350-edb4-49c9-b593-d223f7449a82

view details

Andrew Ozz

commit sha 2ebdfc16eb962975a973cefbd1e5ee7504713196

TinyMCE: ensure initialization runs in all cases on 'interactive' and 'complete' readyState. Fixes a rare bug when the init code is inserted in the DOM after the page has finished loading. Props Collizo4sky, azaozz. Fixes #53632. git-svn-id: https://develop.svn.wordpress.org/trunk@51402 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 5d9a38ef41c6bd5d39c2046dcd15e14d60784011

Tests: Use more appropriate assertions in various tests. This replaces instances of `assertTrue( empty( ... ) )` with `assertEmpty()` to use native PHPUnit functionality. Follow-up to [51335], [51337], [51367], [51397]. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51403 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha c96a42e08ac8708f4cb814f2beed991919a54dc4

Tests: Use more appropriate assertions in various tests. This replaces instances of `assertTrue( in_array( ... ) )` with `assertContains()` to use native PHPUnit functionality. Follow-up to [51335], [51337], [51367], [51397], [51403]. Props hellofromTonya, jrf, SergeyBiryukov. Fixes #53123. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51404 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha bb389cda941be933ced414f5d9406c170e228f01

Coding Standards: Fix WPCS issue in [51404]. This fixes an "Expected 1 spaces before closing parenthesis; 0 found" error. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51405 602fd350-edb4-49c9-b593-d223f7449a82

view details

Jonathan Desrosiers

commit sha daea174b3f62388e11287d7cda8289168350a747

Widgets: Use `wp_sidebar_description()` to retrieve a sidebar’s `description`. This switches `WP_REST_Sidebars_Controller` to use `wp_sidebar_description()` for retrieving the `description` of a given sidebar instead of referencing the value in the `$wp_registered_sidebars` global variable directly. `wp_sidebar_description()` uses `wp_kses()` to only allow the default list of `$allowed_tags` to be present in a sidebar’s `description`. Props timothyblynjacobs, desrosj. Fixes #53646. git-svn-id: https://develop.svn.wordpress.org/trunk@51408 602fd350-edb4-49c9-b593-d223f7449a82

view details

Jonathan Desrosiers

commit sha c732027e76959921eaff19e79c5c787e019b0ede

Widgets: Replace `wp.editor` references in the legacy text widget. This changes the references to `wp.editor` in the text widget’s JavaScript to `wp.oldEditor`, which is the new location for the old `editor` script that was previously available at `window.wp.editor`. Follow up to [51387-51388,51390]. Props spacedmonkey, zieladam. Fixes #53437. git-svn-id: https://develop.svn.wordpress.org/trunk@51409 602fd350-edb4-49c9-b593-d223f7449a82

view details

push time in 2 months

startedtheseer/Autoload

started time in 2 months

startedservo/servo

started time in 2 months

push eventAyesh/php-src

Ayesh Karunaratne

commit sha d08f17f0c0419e2e959648c449bf64367ba7a7b5

Deprecate DATE_RET_* constants (related to date_sunrise/date_sunset) Related: 5bb83b3778db3eece47207f4b4b5d8331e839cd5 `date_sunrise` and `date_sunset` functions are deprecated in PHP 8.1, along with the ini settings. Both `date_sunrise` and `date_sunset` functions accept a parameter to specify the format of the returned time. They accept one of the three following constants: - `SUNFUNCS_RET_STRING` - `SUNFUNCS_RET_DOUBLE` - `SUNFUNCS_RET_TIMESTAMP` These constants are only used with `date_sunrise` and `date_sunset` functions, and are not used anywhere. This deprecates the three constants.

view details

push time in 2 months

PR opened php/php-src

Deprecate DATE_RET_* constants (related to date_sunrise/date_sunset)

Related: 5bb83b3778db3eece47207f4b4b5d8331e839cd5 date_sunrise and date_sunset functions are deprecated in PHP 8.1, along with the ini settings.

Both date_sunrise and date_sunset functions accept a parameter to specify the format of the returned time. They accept one of the three following constants:

  • SUNFUNCS_RET_STRING
  • SUNFUNCS_RET_DOUBLE
  • SUNFUNCS_RET_TIMESTAMP

These constants are only used with date_sunrise and date_sunset functions, and are not used anywhere. This deprecates the three constants.

+28 -4

0 comment

4 changed files

pr created time in 2 months

push eventAyesh/php-src

Aaron Piotrowski

commit sha fdc22744a8951b605a546ad6f09a2b907043bc54

Add API to prevent Fiber switch in select contexts Co-authored-by: Martin Schröder <m.schroeder2007@gmail.com>

view details

Aaron Piotrowski

commit sha 859524c24619a6420d464aab1890934b38725877

Remove fiber context embedding

view details

Christoph M. Becker

commit sha 139a73b5a431c625de8b3f8dac40627d944dbf5b

Improve performance of AppVeyor test runs We only load a minimum set of extensions, and rely on dynamic loading of others due to `--EXTENSION--` triggers. We do not run the imap, ldap and snmp test suites, because most of the tests would be skipped after timeouts anyway. Closes GH-7150.

view details

Gabriel Caruso

commit sha b81c3b5b1cb91e64ed0ef263f6e58f3e380cec8a

Prepare for PHP 8.0.9

view details

Joe Watkins

commit sha f46063495d38a34ad6ffab21af3ed60ab1b1c8cc

reset blocking state on init

view details

Joe Watkins

commit sha ba3c8027bca184f6f7f9dea3c0f7aa7dd8a8bb25

Adds zend_fiber_startup at the right stage, moves setting of switch hooks to correct stage In a threaded environment, these ought to be set before any threads are created, and they ought to be set once.

view details

Nikita Popov

commit sha 0eafc97d29a8592c42d83f075c9d6d943f8a8180

Fix prototype

view details

Nikita Popov

commit sha 34257e1cfccb37eccf62e69d84f7f916f7b86770

Remove unnecessary IS_UNUSED check This operand cannot be UNUSED.

view details

Nikita Popov

commit sha b64213872a15136a088a50035673b2a7ee90a6d2

Fix missing error for single index unset on wrong type The error was correctly thrown for a nested index, but not for a single index. Make sure both have the same behavior.

view details

Aaron Piotrowski

commit sha 5d4f05527b708eef936e52ed58955135e029d927

Drop fiber block hooks Removes the ability for an extension to allow Fiber switching in blocked contexts. See discussion on fdc22744a8951b605a546ad6f09a2b907043bc54.

view details

Derick Rethans

commit sha 8370a084e4984bae322739e51cb7d12528b77918

Prepare for 7.4.22

view details

Derick Rethans

commit sha 77bfe96109c32e1ad79dae73c568cbeaa3f6f8bb

Merge branch 'PHP-7.4' into PHP-8.0

view details

Derick Rethans

commit sha e63ed9d0da900390d6bf8221a8a51580f19307e4

Merge branch 'PHP-8.0'

view details

Dmitry Stogov

commit sha 8ae06582c6f322e9ce4e186b5a78e7f9664cb2fc

Fixed incorrect map_ptr slots counting

view details

Christoph M. Becker

commit sha 0f1b17e37894a77f297129a25368e68bacc31a08

Fix #72809: Locale::lookup() wrong result with canonicalize option Canonicalization converts the locale to ICU format[1]. However, the lookup described in RFC 4647, section 3.4, is about POSIX format. To make that lookup work for ICU format, we also need to cater to keyword separators. The results are somewhat unexpected, but apparently canonical lookup is explicitly supposed to return canonical language tags[2]. [1] <https://unicode-org.github.io/icu/userguide/locale/#canonicalization> [2] <https://github.com/php/php-src/blob/php-7.4.20/ext/intl/locale/locale_methods.c#L1504> Closes GH-7151.

view details

Christoph M. Becker

commit sha 13f3999a772501e4a633253c21edece5e78b170d

Merge branch 'PHP-7.4' into PHP-8.0 * PHP-7.4: Fix #72809: Locale::lookup() wrong result with canonicalize option

view details

Christoph M. Becker

commit sha 46a6d481d3581079fd345db3de86b123a280bdf1

Merge branch 'PHP-8.0' * PHP-8.0: Fix #72809: Locale::lookup() wrong result with canonicalize option

view details

Nikita Popov

commit sha 591dcdbdb0fe07f77a69759c97c9c9261f384654

Use different error condition in ACCEL_LOG_FATAL test This test fails on s390x with opcache. Presumably the large allocation works fine there as long as it's not used. Switch to a different error condition that produces a more reliable failure.

view details

Dmitry Stogov

commit sha 3a78259525e45ddcb34d253fa7c950196e39af33

JIT: Avoid too aggressive loop unrolling This fixes tests/func/010.phpt failure with tracing JIT on ARM64.

view details

Nikita Popov

commit sha 3acdab864dd49c5bbb5286e260b3dad1dcc4f38a

Fix printf formats in mysql debug logging Enable printf format verification and fix the reported errors.

view details

push time in 2 months

create barnchAyesh/php-src

branch : php81-depr/date_sun_consts

created branch time in 2 months

started1ma/composer-psysh

started time in 2 months

starteddaniel-zahariev/php-aws-ses

started time in 2 months

startednot-an-aardvark/lucky-commit

started time in 2 months

push eventAyesh/wordpress-develop

Sergey Biryukov

commit sha 77adbdf37628e608de9cc6d844abcc4e9ba0f7ae

External Libraries: Upgrade PHPMailer to version 6.5.0. Release notes: https://github.com/PHPMailer/PHPMailer/releases/tag/v6.5.0 For a full list of changes in this update, see the PHPMailer GitHub: https://github.com/PHPMailer/PHPMailer/compare/v6.4.1...v6.5.0 Props ayeshrajans, Synchro. Fixes #53430. git-svn-id: https://develop.svn.wordpress.org/trunk@51169 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 52e65717f92b0cf5869e08159e2457b76cebbc9e

Tests: Make some optional parameters required in unit tests for previous/next attachment links. This resolves a "Deprecated: Required parameter follows optional parameter" notice on PHP 8. Follow-up to [48794], [51122]. See #45708, #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@51172 602fd350-edb4-49c9-b593-d223f7449a82

view details

Jonathan Desrosiers

commit sha 81182b52ef9a59dc157191d77e130fe166fb2adf

Build/Test Tools: Ignore sourceMaps for non WordPress Core files. If a custom plugin or theme exists in the `build/wp-content` directory with a sourcemap, the build` script is currently returning a warning and failing. This improves the `verify:source-maps` task in Grunt to ignore directories and files that do not belong to WordPress Core. Props ryelle, afragen, johnbillion. Fixes #52689. git-svn-id: https://develop.svn.wordpress.org/trunk@51173 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 855bbef616d66e3009b5e91fd4f3a676752ce792

REST API: Decode HTML entities in widget names and descriptions in widget types controller. Follow-up to [50995]. Props ramonopoly, noisysocks, spacedmonkey, justinahinon, audrasjb, SergeyBiryukov. Fixes #53407. git-svn-id: https://develop.svn.wordpress.org/trunk@51174 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha ddd0952ec1c2f7ffa33dd07af83cefdbd275cfec

Coding Standards: Fix WPCS issue in [51174]. See #53407. git-svn-id: https://develop.svn.wordpress.org/trunk@51175 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha c62f77e2e87563e6189ed9a2dc93ccaf086f771f

Editor: Include Cover block in the list of block types registered using metadata files. This ensures that block stylesheets are rendered properly when `should_load_separate_core_block_assets` filter is turned on. Follow-up to [50824], [50836]. Props walbo. Fixes #53440. git-svn-id: https://develop.svn.wordpress.org/trunk@51176 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha d3c8a93cad329ef00fdec0700d9afcdec2e519af

Administration: Consistently escape `admin_url()` links. Props chintan1896, mukesh27. Fixes #53426. git-svn-id: https://develop.svn.wordpress.org/trunk@51177 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha dc999004b8c8b3a35e18a4d9cc394ce3e4eda618

Coding Standards: Bring some consistency to HTML formatting in `wp-admin/comment.php`. See #52627. git-svn-id: https://develop.svn.wordpress.org/trunk@51178 602fd350-edb4-49c9-b593-d223f7449a82

view details

Jonathan Desrosiers

commit sha 5267e4a40cb4e63e6a0855b137cb0a3092544da9

Build/Test Tools: Use Git when fetching the WordPress Importer for use in tests. This switches to using Git in the local Docker environment install script to check out a copy of the WordPress Importer plugin for use in unit tests. Previously, SVN was used and the commands were not correctly run within the Docker container. The container does not actually have SVN installed, and the script was only working when the machine running the command had SVN present. Props czapla, alexstine, jnylen0, francina, desrosj. Fixes #52909. git-svn-id: https://develop.svn.wordpress.org/trunk@51179 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha c264ba80df1e400d5b1f19fe1a3fda96c7983a54

Upgrade/Install: Deactivate the Gutenberg plugin if its version is 10.7 or lower. This avoids a fatal error due to `WP_Block_Template` class redeclaration when updating to WordPress 5.8 with an older version of Gutenberg activated. Follow-up to [35582] for the REST API plugin. Props hellofromTonya, oglekler, azaozz, desrosj, pbiron, jorbin, youknowriad, TimothyBlynJacobs, Clorith, markparnell. See #53432. git-svn-id: https://develop.svn.wordpress.org/trunk@51180 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 1f0cdc6f3b1ca8a59035ce9a321aa78418a57e0b

Tests: Correct `svn:eol-style` property for test data with CR line endings. Follow-up to [703/tests], [704/tests], [46586]. See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@51181 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 2816e8b8764d37024622ec964a2f4ac885208585

Themes: Make sure `get_file_data()` recognizes headers prefixed by `<?php` tag. This allows for using headers in the format of `<?php // Template Name: Something ?>`, which previously could not be recognized correctly. Props dd32, m_uysl, thomas-vitale, boblinthorst. Fixes #33387. git-svn-id: https://develop.svn.wordpress.org/trunk@51182 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 4b7b089896c966f61585db121242a1c79de425fa

REST API: Decode single and double quote entities in widget names and descriptions. Follow-up to [51174], [51175]. Props ocean90, ramonopoly. Fixes #53407. git-svn-id: https://develop.svn.wordpress.org/trunk@51183 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha ceb12aa0c76a18483af48ef1d12e332bfb5fe2f7

Docs: Add a reference to `WP_Site_Query::__construct()` for information on accepted arguments in `get_sites()`. Synchronize the documentation between two places, use `WP_Site_Query::__construct()` as the canonical source. Follow-up to [37616]. Props birgire, felipeelia, audrasjb. Fixes #42156. git-svn-id: https://develop.svn.wordpress.org/trunk@51184 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 510b9d60ae0f3879d49408aaf962c0ba8b14dc22

Docs: Correct DocBlock formatting for `Core_Upgrader::upgrade()`. Document the `$auto_update_settings` parameter of the `after_core_auto_updates_settings` action. Follow-up to [49254]. See #52628. git-svn-id: https://develop.svn.wordpress.org/trunk@51185 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha c23452730188cc371effedd19493a8d50d3031dd

Tests: Use more appropriate assertions in `clean_dirsize_cache()` tests. Follow-up to [49212], [49616], [49628], [49630]. See #52625. git-svn-id: https://develop.svn.wordpress.org/trunk@51186 602fd350-edb4-49c9-b593-d223f7449a82

view details

Joe Dolson

commit sha 39ecd7846d24f5dd46833b68c6cb90dcdc070398

Media: Adapt response shape depending on type of query. Restore inheriting the backbone fetch in the media library and adapt the AJAX response according to the action performed in the media query. In [51145], the response shape was restored to the original shape, and a custom fetch was added to handle assigning the totalAttachments information in the collection. The custom fetch triggered a new set of bugs relating to zero-sized collections and loading individual images. props adamsilverstein, ryelle, peterwilsoncc, Presskopp, desrosj. Fixes #53421, #53419. git-svn-id: https://develop.svn.wordpress.org/trunk@51187 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha f14b45a57e3983b222afbd4cac8c9057a0a7b2ce

Docs: Correct `@since` version in the `wp-includes/version.php` file header. There was no public release of WordPress 1.1. Follow-up to [803], [43662]. See #52628. git-svn-id: https://develop.svn.wordpress.org/trunk@51188 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha 63f4733ead155501fe71b2c2ed3cc9d9c228c439

Administration: Consistently escape `network_admin_url()` links. Follow-up to [51177]. Props chintan1896, mukesh27. Fixes #53459. git-svn-id: https://develop.svn.wordpress.org/trunk@51189 602fd350-edb4-49c9-b593-d223f7449a82

view details

Sergey Biryukov

commit sha d0e8b81cd8c43f884ceb234a56f702479ae512a4

Users: Escape `get_author_posts_url()` link in `wp_list_authors()`. This is consistent with `get_the_author_posts_link()`. Props chintan1896. Fixes #50698. git-svn-id: https://develop.svn.wordpress.org/trunk@51190 602fd350-edb4-49c9-b593-d223f7449a82

view details

push time in 2 months

push eventAyesh/InstagramDownload

Ayesh Karunaratne

commit sha 1b1c2068ffcee0e11521fc51da6633ac1a7d8af3

Update to keeppost.com

view details

push time in 3 months

startedtrimstray/the-book-of-secret-knowledge

started time in 3 months

startedcode-lts/doctum

started time in 3 months