assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

Usage of a direct database call is discouraged.
Open

            $result = $wpdb->get_results(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Array double arrow not aligned correctly; expected 2 space(s) between "'methods'" and double arrow, but found 1.
Open

                    'methods' => \WP_REST_Server::READABLE,
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

In footer ($in_footer) is not set explicitly wp_register_script; It is recommended to load scripts in the footer. Please set this value to true to load it in the footer, or explicitly false if it should be loaded in the header.
Open

                wp_register_script(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

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

                    <input id="in-ldp_container-<?php echo $term->term_id; ?>" type="radio" name="tax_input[ldp_container][]" value="<?php echo $term->term_id; ?>" checked>
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Array double arrow not aligned correctly; expected 3 space(s) between "'with_front'" and double arrow, but found 17.
Open

                'with_front'                 => true,
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Array double arrow not aligned correctly; expected 1 space(s) between "'show_in_nav_menus'" and double arrow, but found 10.
Open

                'show_in_nav_menus'          => true,
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Resource version not set in call to wp_register_script(). This means new versions of the script will not always be loaded due to browser caching.
Open

                wp_register_script(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 16 spaces but found 1 space
Open

            $ldp_model = ! empty( $term_meta['ldp_model'] ) ? stripslashes_deep( $term_meta['ldp_model'] ) : '';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

            $current_url = $_SERVER['REQUEST_URI'];
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"<td> <input type="text" name="ldp_rdf_type" id="ldp_rdf_type" value="$ldp_rdf_type">"'.</td>
Open

            echo "<td><input type='text' name='ldp_rdf_type' id='ldp_rdf_type' value='$ldp_rdf_type' />";
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Missing wp_unslash() before sanitization.
Open

            $current_url = $_SERVER['REQUEST_URI'];
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Resource version not set in call to wp_register_style(). This means new versions of the style will not always be loaded due to browser caching.
Open

            wp_register_style(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

In footer ($in_footer) is not set explicitly wp_register_script; It is recommended to load scripts in the footer. Please set this value to true to load it in the footer, or explicitly false if it should be loaded in the header.
Open

                wp_register_script(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Array double arrow not aligned correctly; expected 5 space(s) between "'menu-item-url'" and double arrow, but found 1.
Open

                            'menu-item-url' => home_url( Wpldp::FRONT_PAGE_URL, 'relative' ),
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Space found before semicolon; expected "];" but found "] ;"
Open

            $menu_id = $locations[ $menu_name ] ;
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Visibility must be declared on method "ldp_container_init_field"
Open

        function ldp_container_init_field() {
Severity: Minor
Found in class-settings.php by phpcodesniffer

Array double arrow not aligned correctly; expected 3 space(s) between "'with_front'" and double arrow, but found 17.
Open

                'with_front'                 => true,
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Array double arrow not aligned correctly; expected 12 space(s) between "'labels'" and double arrow, but found 21.
Open

                'labels'                     => $labels,
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

                $term_meta = $_POST['ldp_site_url'];
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
Open

            $menu_name = 'primary';
Severity: Minor
Found in wp-ldp.php by phpcodesniffer
Severity
Category
Status
Source
Language