[ Index ]

PHP Cross Reference of WordPress (latest release)

title

Body

[close]

/ -> wp-settings.php (summary)

Used to setup and fix common variables and include the WordPress procedural and class library. You should not have to change this file and allows for some configuration in wp-config.php.

File Size: 595 lines (18 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 41 files
 wp-includes/media.php
 wp-includes/rewrite.php
 wp-includes/query.php
 wp-includes/bookmark.php
 wp-includes/compat.php
 wp-includes/author-template.php
 wp-includes/update.php
 wp-includes/deprecated.php
 wp-includes/version.php
 wp-includes/script-loader.php
 wp-includes/post.php
 wp-includes/general-template.php
 wp-includes/kses.php
 wp-includes/post-template.php
 wp-includes/plugin.php
 wp-includes/shortcodes.php
 wp-includes/default-filters.php
 wp-includes/http.php
 wp-includes/gettext.php
 wp-includes/l10n.php
 wp-includes/pluggable.php
 wp-includes/category.php
 wp-includes/functions.php
 wp-includes/cache.php
 wp-includes/user.php
 wp-includes/comment-template.php
 wp-includes/vars.php
 wp-includes/bookmark-template.php
 wp-includes/streams.php
 wp-includes/canonical.php
 wp-includes/category-template.php
 wp-includes/capabilities.php
 wp-includes/classes.php
 wp-includes/cron.php
 wp-includes/theme.php
 wp-includes/locale.php
 wp-includes/taxonomy.php
 wp-includes/formatting.php
 wp-includes/link-template.php
 wp-includes/comment.php
 wp-includes/feed.php

Defines 4 functions

  wp_unregister_GLOBALS()
  timer_start()
  timer_stop()
  shutdown_action_hook()

Functions
Functions that are not part of a class:

wp_unregister_GLOBALS()   X-Ref
Turn register globals off.

return: null Will return null if register_globals PHP directive was disabled

timer_start()   X-Ref
PHP 4 standard microtime start capture.

return: bool Always returns true.

timer_stop($display = 0, $precision = 3)   X-Ref
Return and/or display the time from the page start to when function is called.

You can get the results and print them by doing:
<code>
$nTimePageTookToExecute = timer_stop();
echo $nTimePageTookToExecute;
</code>

Or instead, you can do:
<code>
timer_stop(1);
</code>
which will do what the above does. If you need the result, you can assign it to a variable, but
most cases, you only need to echo it.

param: int $display Use '0' or null to not echo anything and 1 to echo the total time
param: int $precision The amount of digits from the right of the decimal to display. Default is 3.
return: float The "second.microsecond" finished time calculation

shutdown_action_hook()   X-Ref
Runs just before PHP shuts down execution.




Generated: Sat Jan 3 08:40:14 2009 Cross-referenced by PHPXref 0.7