WordPress.org

Make WordPress Core

Ticket #20152: 20152.patch

File 20152.patch, 1008 bytes (added by jdgrimes, 4 years ago)

Just docs explaining why this is the way it currently is

  • src/wp-includes/class-wp-roles.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    9999         * Set up the object properties.
    100100         *
    101101         * The role key is set to the current prefix for the $wpdb object with
    102          * 'user_roles' appended. If the $wp_user_roles global is set, then it will
    103          * be used and the role option will not be updated or used.
     102         * 'user_roles' appended. (The use of the database prefix is not necessary, but
     103         * is currently still here for legacy reasons. It was likely originally the
     104         * result of a copy-paste error. See {@see https://core.trac.wordpress.org/ticket/20152
     105         * ticket #20152}.) If the $wp_user_roles global is set, then it will be used and
     106         * the role option will not be updated or used.
    104107         *
    105108         * @since 2.1.0
    106109         * @access protected