assemblee-virtuelle/wp-ldp

View on GitHub

Showing 378 of 379 total issues

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

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

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

            $locations = get_nav_menu_locations();
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

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

                            'label' => __( 'Theme', 'wpldp' ),
Severity: Minor
Found in class-settings.php by phpcodesniffer

A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
Open

                                        __(
Severity: Minor
Found in class-settings.php by phpcodesniffer

Processing form data without nonce verification.
Open

            if ( 'options-general.php' === $pagenow && 'wpldp' === $_GET['page'] ) { // change my-plugin to your plugin page.
Severity: Minor
Found in class-settings.php by phpcodesniffer

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

                        $submenu['edit.php?post_type=ldp_resource'][ 10 - $i ] = $submenu_item_value;
Severity: Minor
Found in class-settings.php by phpcodesniffer

Visibility must be declared on method "add_custom_tax_fields_oncreate_site"
Open

        function add_custom_tax_fields_oncreate_site() {
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 "<th scope='row'><label for='ldp_site_url'>" . __( 'web site', 'wpldp' ). '</label></th>';
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_RETURNTRANSFER, 1 );
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

Array double arrow not aligned correctly; expected 29 space(s) between "'@type'" and double arrow, but found 4.
Open

                    '@type'    => 'http://www.w3.org/ns/ldp#BasicContainer',
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'>" . __( 'Rdf:type associated with this container', 'wpldp' ) . '</p></td>';
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_model_editor'>" . __( 'Model editor mode', 'wpldp' ) . '</label></th>';
Severity: Minor
Found in class-container-taxonomy.php by phpcodesniffer

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

                            'menu-item-status' => 'publish',
Severity: Minor
Found in wp-ldp.php by phpcodesniffer

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

                            'label' => __( 'Group', 'wpldp' ),
Severity: Minor
Found in class-settings.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

            echo "<input type='text' size='150' name='ldp_context' value='" . get_option( 'ldp_context', 'http://lov.okfn.org/dataset/lov/context' ) . "' />";
Severity: Minor
Found in class-settings.php by phpcodesniffer

Expected 2 spaces after parameter type; 1 found
Open

         * @param  \WP_REST_Request $request The current HTTP request object.
Severity: Minor
Found in class-site-taxonomy.php by phpcodesniffer

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

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

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

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

Class file names should be based on the class name with "class-" prepended. Expected class-containertaxonomy.php, but found class-container-taxonomy.php.
Open

<?php
Severity: Minor
Found in class-container-taxonomy.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
Severity
Category
Status
Source
Language