| @@ -7,11 +7,11 @@ | ||
| 7 | 7 | * Author URI: http://projects.radgeek.com |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | class InspectPostMeta { |
| 11 | - public function __construct ($in_hook = true) { | |
| 11 | + function InspectPostMeta ($in_hook = true) { | |
| 12 | 12 | add_action('add_meta_boxes', array($this, 'add_meta_boxes'), 10, 2); |
| 13 | - } /* InspectPostMeta::__construct () */ | |
| 13 | + } | |
| 14 | 14 | |
| 15 | 15 | function add_meta_boxes ($post_type, $post) { |
| 16 | 16 | add_meta_box( |
| 17 | 17 | /*id=*/ 'inspect_post_guid_box', |
| @@ -49,9 +49,9 @@ | ||
| 49 | 49 | $idx = 1; |
| 50 | 50 | foreach ($values as $value) : |
| 51 | 51 | print "<tr><th style='text-align: left' scope='row'>".esc_html($key); |
| 52 | 52 | if ($idx > 1) : |
| 53 | - print esc_html( sprintf( '[%d]', intval( $idx ) ) ); | |
| 53 | + print "[$idx]"; | |
| 54 | 54 | endif; |
| 55 | 55 | print ":</th> "; |
| 56 | 56 | print "<td><pre><code>".esc_html($value)."</code></pre>"; |
| 57 | 57 | print "</td></tr>\n"; |