WordPress.org

Make WordPress Core

Ticket #46848: 46848.diff

File 46848.diff, 710 bytes (added by diddledan, 6 months ago)

patch to fix potentially returning void in translate_level_to_role() in upgrade.php

  • wp-admin/includes/upgrade.php

    diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php
    index 4de9b109f4..0fb65533d5 100644
    a b function translate_level_to_role( $level ) { 
    31623162                case 1:
    31633163                        return 'contributor';
    31643164                case 0:
     3165                default:
    31653166                        return 'subscriber';
    31663167        }
    31673168}