assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

Array double arrow not aligned correctly; expected 6 space(s) between "'hierarchical'" and double arrow, but found 15.
Open

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

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

            echo "<p class='description'>" . __( 'Rdf:type associated with this container', 'wpldp' ) . '</p>';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

            echo "<label for='ldp_included_fields_list'>" . __( 'Included fields', 'wpldp' ) . '</label>';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

            $term_meta = get_option( "ldp_container_$term_id" );
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Visibility must be declared on method "initialize_container"
Open

        function initialize_container( $force = false ) {
Severity: Minor
Found in class-settings.php by phpcodesniffer

Visibility must be declared on method "wpldp_validation_notice"
Open

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

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

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

Array double arrow not aligned correctly; expected 5 space(s) between "'show_tagcloud'" and double arrow, but found 14.
Open

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

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

            echo "<p class='description'>" . __( 'WordPress site that you know and that the WP-LDP plugin is installed', 'wpldp' ). '</p>';
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

            echo "<p class='description'>" . __( 'WordPress site that you know and on which the WP-LDP plugin is installed', 'wpldp' ). '</p></td>';
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Using cURL functions is highly discouraged. Use wp_remote_get() instead.
Open

                curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/ld+json', 'Accept: application/ld+json' ) );
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Using cURL functions is highly discouraged. Use wp_remote_get() instead.
Open

                $outputs[ $ldp_site_url  . '/schema/' ]['code'] = curl_getinfo( $ch )['http_code'];
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

                        'key' => 'ldp_site_url',
Severity: Minor
Found in class-site-taxonomy.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

Visibility must be declared on method "add_custom_tax_fields_oncreate"
Open

        function add_custom_tax_fields_oncreate( $term ) {
Severity: Minor
Found in class-container-taxonomy.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_included_fields_list" id="ldp_included_fields_list" value="$ldp_included_fields_list">"'.</td>
Open

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

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

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

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

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

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

                    'tax_query' => array(
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Detected usage of meta_query, possible slow query.
Open

                    'meta_query' => array(
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer
Severity
Category
Status
Source
Language