John Blackbourn
John Blackbourn
When a user session is created, it's possible to add custom fields to the session via the `attach_session_information` filter. Example: ```php add_filter( 'attach_session_information', function( array $data, $user_id ) { $data['custom']...
The descriptions for the second-level subcommands of `wp post|user term|meta` use generic "object" terminology from the method docblocks in the abstract `CommandWithTerms` and `CommandWithMeta` classes. For example: * `wp post...
When calling `wp option list`, the option values are displayed in their raw format. When calling `wp option get `, there's no way to get the raw value for a...
At the user level, WordPress internally treats roles and capabilities the same. They're all stored in the `wp_capabilities` user meta field. This is unfortunate. This means that `wp user remove-cap...
Need a way to distinguish between a user's direct capabilities and those inherited from their role
`wp user list-roles ` returns both the capabilities that a user has been directly assigned, and the capabilities that they inherit from their role. Their doesn't appear to be a...
When a user accesses their user profile in the admin area, they have the option to change their email address. If the account is an SSO account then changing this...
The parameter passed to the `wpsimplesaml_config` filter is documented as an array, but it can also be a `WP_Error` due to the return value of `Admin\get_config()`. In addition, there are...
The `\HM\Media\Cropper\nearest_defined_crop_size()` function triggers a division by zero warning if one of the registered image sizes has a `height` property of 0. This affects WooCommerce which registers image sizes such...
I haven't tracked it down yet but I'm seeing the following error in my logs: ``` PHP Warning: Illegal offset type in isset or empty in /usr/src/app/vendor/humanmade/smart-media/inc/cropper/namespace.php on line 1257...
Steps to reproduce: * Insert some text into a post * Highlight some text * Click the "Link" button in the block toolbar * Search for a phrase that matches...