assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

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

                        'event' => array(
Severity: Minor
Found in class-settings.php by phpcodesniffer

Array double arrow not aligned correctly; expected 11 space(s) between "'rewrite'" and double arrow, but found 20.
Open

                'rewrite'                    => $rewrite,
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

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

            echo '<h2>' . __( 'WP-LDP Settings', 'wpldp' ) . '</h2>';
Severity: Minor
Found in class-settings.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 '__'.
Open

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

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

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

Processing form data without nonce verification.
Open

            if ( isset( $_POST['ldp_included_fields_list'] ) ) {
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

String "" does not require double quotes; use single quotes instead
Open

            load_plugin_textdomain( 'wpldp', "", $path );
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Missing wp_unslash() before sanitization.
Open

                $term_meta['ldp_model'] = stripslashes_deep( $_POST['ldp_model'] );
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="url" placeholder="http://" name="ldp_site_url" id="ldp_site_url" value="$ldp_site_url">"'.</td>
Open

            echo "<td><input type='url' placeholder='http://' name='ldp_site_url' id='ldp_site_url' value='$ldp_site_url' />";
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

                    'supports'              => array(
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

Array double arrow not aligned correctly; expected 11 space(s) between "'show_ui'" and double arrow, but found 20.
Open

                'show_ui'                    => 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 "<label for='ldp_rdf_type'>" . __( 'Rdf:type, if any', 'wpldp' ) . '</label>';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

Array double arrow not aligned correctly; expected 9 space(s) between "'menu_icon'" and double arrow, but found 13.
Open

                    'menu_icon'             => 'dashicons-image-filter',
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 '__'.
Open

            echo "<p class='description'>" . __( 'The fields from the model whose values you would like to include from the associated resources in the container, separated by commas', '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 'get_option'.
Open

                            context: "<?php echo get_option( 'ldp_context', 'http://lov.okfn.org/dataset/lov/context' ); ?>",
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 '__'.
Open

            echo "<th scope='row'><label for='ldp_rdf_type'>" . __( 'Rdf:type, if any', 'wpldp' ) . '</label></th>';
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

json_encode() is discouraged. Use wp_json_encode() instead.
Open

            var json = ' . json_encode( json_decode( $ldp_model ) ) . ';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer
Severity
Category
Status
Source
Language