Changeset 5870
- Timestamp:
- 08/14/2007 03:12:24 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
wp-admin/import/mt.php (modified) (1 diff)
-
wp-admin/import/wordpress.php (modified) (1 diff)
-
wp-admin/includes/upgrade.php (modified) (1 diff)
-
wp-includes/cache.php (modified) (1 diff)
-
wp-includes/capabilities.php (modified) (7 diffs)
-
wp-includes/js/scriptaculous/unittest.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/mt.php
r5820 r5870 170 170 } 171 171 172 echo '<input type="submit" value="'.__('Submit').'">'.'<br />';172 echo '<input type="submit" value="'.__('Submit').'">'.'<br />'; 173 173 echo '</form>'; 174 174 echo '</ol></div>'; -
trunk/wp-admin/import/wordpress.php
r5802 r5870 198 198 } 199 199 200 echo '<input type="submit" value="Submit">'.'<br />';200 echo '<input type="submit" value="Submit">'.'<br />'; 201 201 echo '</form>'; 202 202 echo '</ol>'; -
trunk/wp-admin/includes/upgrade.php
r5867 r5870 981 981 if(!(($aindex = array_search($index_string, $indices)) === false)) { 982 982 unset($indices[$aindex]); 983 //echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br />Found index:".$index_string."</pre>\n";983 //echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br />Found index:".$index_string."</pre>\n"; 984 984 } 985 //else echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br /><b>Did not find index:</b>".$index_string."<br/>".print_r($indices, true)."</pre>\n";985 //else echo "<pre style=\"border:1px solid #ccc;margin-top:5px;\">{$table}:<br /><b>Did not find index:</b>".$index_string."<br />".print_r($indices, true)."</pre>\n"; 986 986 } 987 987 } -
trunk/wp-includes/cache.php
r5666 r5870 356 356 function stats() { 357 357 echo "<p>"; 358 echo "<strong>Cold Cache Hits:</strong> {$this->cold_cache_hits}<br />";359 echo "<strong>Warm Cache Hits:</strong> {$this->warm_cache_hits}<br />";360 echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />";358 echo "<strong>Cold Cache Hits:</strong> {$this->cold_cache_hits}<br />"; 359 echo "<strong>Warm Cache Hits:</strong> {$this->warm_cache_hits}<br />"; 360 echo "<strong>Cache Misses:</strong> {$this->cache_misses}<br />"; 361 361 echo "</p>"; 362 362 363 363 foreach ($this->cache as $group => $cache) { 364 364 echo "<p>"; 365 echo "<strong>Group:</strong> $group<br />";365 echo "<strong>Group:</strong> $group<br />"; 366 366 echo "<strong>Cache:</strong>"; 367 367 echo "<pre>"; -
trunk/wp-includes/capabilities.php
r5575 r5870 268 268 $capabilities = apply_filters('user_has_cap', $this->allcaps, $caps, $args); 269 269 foreach ($caps as $cap) { 270 //echo "Checking cap $cap<br />";270 //echo "Checking cap $cap<br />"; 271 271 if(empty($capabilities[$cap]) || !$capabilities[$cap]) 272 272 return false; … … 296 296 case 'delete_post': 297 297 $author_data = get_userdata($user_id); 298 //echo "post ID: {$args[0]}<br />";298 //echo "post ID: {$args[0]}<br />"; 299 299 $post = get_post($args[0]); 300 300 if ( 'page' == $post->post_type ) { … … 303 303 } 304 304 $post_author_data = get_userdata($post->post_author); 305 //echo "current user id : $user_id, post author id: " . $post_author_data->ID . "<br />";305 //echo "current user id : $user_id, post author id: " . $post_author_data->ID . "<br />"; 306 306 // If the user is the author... 307 307 if ($user_id == $post_author_data->ID) { … … 324 324 case 'delete_page': 325 325 $author_data = get_userdata($user_id); 326 //echo "post ID: {$args[0]}<br />";326 //echo "post ID: {$args[0]}<br />"; 327 327 $page = get_page($args[0]); 328 328 $page_author_data = get_userdata($page->post_author); 329 //echo "current user id : $user_id, page author id: " . $page_author_data->ID . "<br />";329 //echo "current user id : $user_id, page author id: " . $page_author_data->ID . "<br />"; 330 330 // If the user is the author... 331 331 if ($user_id == $page_author_data->ID) { … … 350 350 case 'edit_post': 351 351 $author_data = get_userdata($user_id); 352 //echo "post ID: {$args[0]}<br />";352 //echo "post ID: {$args[0]}<br />"; 353 353 $post = get_post($args[0]); 354 354 if ( 'page' == $post->post_type ) { … … 357 357 } 358 358 $post_author_data = get_userdata($post->post_author); 359 //echo "current user id : $user_id, post author id: " . $post_author_data->ID . "<br />";359 //echo "current user id : $user_id, post author id: " . $post_author_data->ID . "<br />"; 360 360 // If the user is the author... 361 361 if ($user_id == $post_author_data->ID) { … … 378 378 case 'edit_page': 379 379 $author_data = get_userdata($user_id); 380 //echo "post ID: {$args[0]}<br />";380 //echo "post ID: {$args[0]}<br />"; 381 381 $page = get_page($args[0]); 382 382 $page_author_data = get_userdata($page->post_author); 383 //echo "current user id : $user_id, page author id: " . $page_author_data->ID . "<br />";383 //echo "current user id : $user_id, page author id: " . $page_author_data->ID . "<br />"; 384 384 // If the user is the author... 385 385 if ($user_id == $page_author_data->ID) { -
trunk/wp-includes/js/scriptaculous/unittest.js
r5792 r5870 122 122 }, 123 123 _toHTML: function(txt) { 124 return txt.escapeHTML().replace(/\n/g,"<br />");124 return txt.escapeHTML().replace(/\n/g,"<br />"); 125 125 }, 126 126 addLinksToResults: function(){
Note: See TracChangeset
for help on using the changeset viewer.