felixarntz/global-admin

View on GitHub

Showing 251 of 251 total issues

Use Yoda Condition checks, you must.
Open

                $doaction     = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];

Detected usage of a non-validated input variable: $_POST
Open

            if ( is_array( $_POST['user'] ) && ! empty( $_POST['user'] ) ) {

Overriding WordPress globals is prohibited. Found assignment to $menu
Open

        $menu[ "$position" ] = $networks_menu;

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Open

                <th scope="row"><label for="global_name"><?php _e( 'Global Title', 'wp-global-admin' ) ?></label></th>

Inline PHP statement must end with a semicolon
Open

                    <input name="admin_email" type="email" id="admin_email" aria-describedby="admin-email-desc" class="regular-text" value="<?php echo esc_attr( get_global_option( 'admin_email', '' ) ) ?>" />

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.
Open

    wp_die( __( 'Multinetwork support is not enabled.', 'wp-global-admin' ) );

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Open

                        <p><?php _e( 'Global administrator privileges cannot be removed because this user has the global admin email.', 'wp-global-admin' ); ?></p>

Missing wp_unslash() before sanitization.
Open

                    $user_ids = (array) $_POST['allusers'];

Missing file doc comment
Open

<?php

Each array item in a multi-line array declaration must end in a comma
Open

    'content' => $quick_tasks

There must be no blank line following an inline comment
Open

//require_once( ABSPATH . 'wp-admin/includes/menu.php' );

Inline PHP statement must end with a semicolon
Open

    ?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ) ?></p></div><?php

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Open

    ?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ) ?></p></div><?php

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Open

                            <?php _e( 'Allow network administrators to delete users', 'wp-global-admin' ); ?>

Missing wp_unslash() before sanitization.
Open

                confirm_delete_users( $_POST['allusers'] );

Detected usage of a non-sanitized input variable: $_POST
Open

                $doaction     = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2'];

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Open

                        <p><label><input type="checkbox" id="global_administrator" name="global_administrator"<?php checked( is_global_administrator( $user->ID ) ); ?> /> <?php _e( 'Grant this user global administrator privileges.', 'wp-global-admin' ); ?></label></p>

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Open

<h1 id="add-new-user"><?php _e( 'Add New User' ); ?></h1>

All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'.
Open

            <td colspan="2"><?php _e( 'A password reset link will be sent to the user via email.' ); ?></td>

Use Yoda Condition checks, you must.
Open

            if ( $id != '0' && $id != '1' ) {
Severity
Category
Status
Source
Language