A few corrections
-
Hi. First of all, thanks for this plugin. As some might say, it can be a little complicated to use, but there’s a lot of potential. I had to dig and edit some of the plugin’s core files to achieve what I wanted. Not very practical when one needs to update the plugin, but oh well.
My advise would be to add hooks everywhere to allow further customization.Anyway. The purpose of this message was to submit corrections for a few things I noticed when code-spelunking.
1) There’s a missing div tag closure at the end of /admin/TaxonomyEdit.php (to close the div tag at line 95)
2) typos :
in /checkout/TCPSigningBox.class.php// line 148 <?php echo apply_filters( 'tcp_checkout_signinbox_registered', ob_get_clean() ); ?
in /classes/CartSourceSession.class.php
// line 246 if ( isset( $_SESSION['tcp_checkout'] ) ) return $_SESSION['tcp_checkout']['billing']['billing_lastname'];
3) As a bonus : a simple functionality to allow the user to define a Key when she create a Custom Field :
// in /admin/CustomFields.php // line 41 $id = (isset( $_REQUEST['key']) && strlen(trim($_REQUEST['key'])) > 0) ? tcp_create_id( $post_type, trim( $_REQUEST['key'] ) ) : tcp_create_id( $post_type, $label ); // line 116 <tr valign="top"> <th scope="row"> <label for="key"><?php _e( 'Key', 'tcp' );?>: </label> </th> <td> <input type="text" name="key" id="key" size="20" /> </td> </tr>
Cheers
- The topic ‘A few corrections’ is closed to new replies.