wp-global-admin/wp-admin/global/settings.php
TODO found Open
Open
//TODO: what do we need here? What makes sense?
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'. Open
Open
wp_die( __( 'You do not have permission to access this page.' ), 403 );
- Exclude checks
Opening PHP tag must be on a line by itself Open
Open
?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ) ?></p></div><?php
- Exclude checks
Inline PHP statement must end with a semicolon Open
Open
<input name="global_name" type="text" id="global_name" class="regular-text" value="<?php echo esc_attr( get_global_option( 'global_name', '' ) ) ?>" />
- Exclude checks
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. Open
Open
<th scope="row"><label for="admin_email"><?php _e( 'Global Admin Email', 'wp-global-admin' ) ?></label></th>
- Exclude checks
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. Open
Open
<?php _e( 'Allow network administrators to edit users', 'wp-global-admin' ); ?>
- Exclude checks
Each array item in a multi-line array declaration must end in a comma Open
Open
'<p>' . __( 'This screen sets and changes options for the entire setup as a whole. The settings on this page will affect all networks and sites.', 'wp-global-admin' ) . '</p>'
- Exclude checks
Inline PHP statement must end with a semicolon Open
Open
?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ) ?></p></div><?php
- Exclude checks
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. Open
Open
?><div id="message" class="updated notice is-dismissible"><p><?php _e( 'Settings saved.' ) ?></p></div><?php
- Exclude checks
All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'. Open
Open
wp_die( __( 'Multinetwork support is not enabled.', 'wp-global-admin' ) );
- Exclude checks
Array item not aligned correctly; expected 4 spaces but found 8 Open
Open
'title' => __( 'Overview', 'wp-global-admin' ),
- Exclude checks
Expected 1 spaces after opening bracket; 0 found Open
Open
'<p>' . __('<a href="https://github.com/felixarntz/wp-global-admin/wiki/Global-Admin-Settings-Screen" target="_blank">Documentation on Global Settings</a>', 'wp-global-admin' ) . '</p>'
- Exclude checks
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. Open
Open
<?php _e( 'This address is used for admin purposes.', 'wp-global-admin' ); ?>
- Exclude checks
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. Open
Open
<th scope="row"><label for="global_name"><?php _e( 'Global Title', 'wp-global-admin' ) ?></label></th>
- Exclude checks
No space found before comment text; expected "// TODO: what do we need here? What makes sense?" but found "//TODO: what do we need here? What makes sense?" Open
Open
//TODO: what do we need here? What makes sense?
- Exclude checks
Detected usage of a non-sanitized input variable: $_POST Open
Open
$value = wp_unslash( $_POST[ $option_name ] );
- Exclude checks
Inline PHP statement must end with a semicolon Open
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', '' ) ) ?>" />
- Exclude checks
Array item not aligned correctly; expected 4 spaces but found 8 Open
Open
'id' => 'overview',
- Exclude checks
Array item not aligned correctly; expected 4 spaces but found 8 Open
Open
'content' =>
- Exclude checks
Inline PHP statement must end with a semicolon Open
Open
<th scope="row"><label for="global_name"><?php _e( 'Global Title', 'wp-global-admin' ) ?></label></th>
- Exclude checks
Inline PHP statement must end with a semicolon Open
Open
<th scope="row"><label for="admin_email"><?php _e( 'Global Admin Email', 'wp-global-admin' ) ?></label></th>
- Exclude checks
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. Open
Open
<?php _e( 'Allow network administrators to delete users', 'wp-global-admin' ); ?>
- Exclude checks
Multi-line array item not aligned correctly; expected 8 spaces, but found 12 Open
Open
'<p>' . __( 'This screen sets and changes options for the entire setup as a whole. The settings on this page will affect all networks and sites.', 'wp-global-admin' ) . '</p>'
- Exclude checks
Processing form data without nonce verification. Open
Open
if ( $_POST ) {
- Exclude checks
All output should be run through an escaping function (like esc_html_e() or esc_attr_e()), found '_e'. Open
Open
<?php _e( 'Allow network administrators to create new users', 'wp-global-admin' ); ?>
- Exclude checks