Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,4 @@ volumes:
networks:
# Creating our own network allows us to connect between containers using their service name.
wpdevnet:
driver: bridge
driver: bridge
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ final class WP_Abilities_Registry {
* @return WP_Ability|null The registered ability instance on success, null on failure.
*/
public function register( string $name, array $args ): ?WP_Ability {
if ( ! preg_match( '/^[a-z0-9-]+\/[a-z0-9-]+$/', $name ) ) {
if ( ! preg_match( '/^[a-z0-9-]+(\/[a-z0-9-]+)+$/', $name ) ) {
_doing_it_wrong(
__METHOD__,
__(
Expand Down
Loading
Loading