[wp-hackers] Re: PHP notice warnings

DD32 wordpress at dd32.id.au
Sun Sep 23 05:05:55 GMT 2007


On Sun, 23 Sep 2007 06:30:35 +1000, Computer Guru <computerguru at neosmart.net> wrote:

> I think there are probably some more I haven't looked for yet though....

Many of these are not needed by end users, however:

grep -r define( * | grep -v .svn | grep -v wp-content


index.php:define('WP_USE_THEMES', true);
wp-admin/admin-ajax.php:define('DOING_AJAX', true);
wp-admin/admin.php:	define('WP_IMPORTING', true);
wp-admin/import/blogger.php:define( 'MAX_RESULTS',        50 ); // How many records per GData query
wp-admin/import/blogger.php:define( 'MAX_EXECUTION_TIME', 20 ); // How many seconds to let the script run
wp-admin/import/blogger.php:define( 'STATUS_INTERVAL',     3 ); // How many seconds between status bar updates
wp-admin/install.php:define('WP_INSTALLING', true);
wp-admin/setup-config.php:define('WP_INSTALLING', true);
wp-admin/setup-config.php:	define('DB_NAME', $dbname);
wp-admin/setup-config.php:	define('DB_USER', $uname);
wp-admin/setup-config.php:	define('DB_PASSWORD', $passwrd);
wp-admin/setup-config.php:	define('DB_HOST', $dbhost);
wp-admin/setup-config.php:			case "define('DB_NAME'":
wp-admin/setup-config.php:			case "define('DB_USER'":
wp-admin/setup-config.php:			case "define('DB_PASSW":
wp-admin/setup-config.php:			case "define('DB_HOST'":
wp-admin/upgrade.php:define('WP_INSTALLING', true);
wp-app.php:define('APP_REQUEST', true);
wp-config-sample.php:define('DB_NAME', 'putyourdbnamehere');    // The name of the database
wp-config-sample.php:define('DB_USER', 'usernamehere');     // Your MySQL username
wp-config-sample.php:define('DB_PASSWORD', 'yourpasswordhere'); // ...and password
wp-config-sample.php:define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
wp-config-sample.php:define('DB_CHARSET', 'utf8');
wp-config-sample.php:define('DB_COLLATE', '');
wp-config-sample.php:define('ABSPATH', dirname(__FILE__).'/');
wp-cron.php:define('DOING_CRON', TRUE);
wp-includes/cache.php:define('CACHE_SERIAL_HEADER', "<?php\n/*");
wp-includes/cache.php:define('CACHE_SERIAL_FOOTER', "*/\n?".">");

//These 2 are probably a patch of mine that i dont think is commited.
wp-includes/cache.php:				define( 'DIRECTORY_SEPARATOR', '\\' );
wp-includes/cache.php:				define( 'DIRECTORY_SEPARATOR', '/' );

wp-includes/comment-template.php:	define('COMMENTS_TEMPLATE', true);
wp-includes/compat.php:		define('CASE_LOWER', 0);
wp-includes/compat.php:		define('CASE_UPPER', 1);
wp-includes/kses.php:	define('CUSTOM_TAGS', false);
wp-includes/rewrite.php:define('EP_PERMALINK',  1   );
wp-includes/rewrite.php:define('EP_ATTACHMENT', 2   );
wp-includes/rewrite.php:define('EP_DATE',       4   );
wp-includes/rewrite.php:define('EP_YEAR',       8   );
wp-includes/rewrite.php:define('EP_MONTH',      16  );
wp-includes/rewrite.php:define('EP_DAY',        32  );
wp-includes/rewrite.php:define('EP_ROOT',       64  );
wp-includes/rewrite.php:define('EP_COMMENTS',   128 );
wp-includes/rewrite.php:define('EP_SEARCH',     256 );
wp-includes/rewrite.php:define('EP_CATEGORIES', 512 );
wp-includes/rewrite.php:define('EP_TAGS', 1024 );
wp-includes/rewrite.php:define('EP_AUTHORS',    2048);
wp-includes/rewrite.php:define('EP_PAGES',      4096);
wp-includes/rewrite.php:define('EP_NONE',       0  );
wp-includes/rewrite.php:define('EP_ALL',        8191);
wp-includes/rss.php:define('RSS', 'RSS');
wp-includes/rss.php:define('ATOM', 'Atom');
wp-includes/rss.php:define('MAGPIE_USER_AGENT', 'WordPress/' . $GLOBALS['wp_version']);
wp-includes/rss.php:		define('MAGPIE_INITALIZED', 1);
wp-includes/rss.php:		define('MAGPIE_CACHE_ON', 1);
wp-includes/rss.php:		define('MAGPIE_CACHE_DIR', './cache');
wp-includes/rss.php:		define('MAGPIE_CACHE_AGE', 60*60); // one hour
wp-includes/rss.php:		define('MAGPIE_CACHE_FRESH_ONLY', 0);
wp-includes/rss.php:		define('MAGPIE_DEBUG', 0);
wp-includes/rss.php:		define('MAGPIE_USER_AGENT', $ua);
wp-includes/rss.php:		define('MAGPIE_FETCH_TIME_OUT', 2);	// 2 second timeout
wp-includes/rss.php:		define('MAGPIE_USE_GZIP', true);
wp-includes/wp-db.php:define('EZSQL_VERSION', 'WP1.25');
wp-includes/wp-db.php:define('OBJECT', 'OBJECT', true);
wp-includes/wp-db.php:define('ARRAY_A', 'ARRAY_A', false);
wp-includes/wp-db.php:define('ARRAY_N', 'ARRAY_N', false);
wp-includes/wp-db.php:	define('SAVEQUERIES', false);

wp-settings.php:define('WPINC', 'wp-includes');
wp-settings.php:		define('LANGDIR', WPINC . '/languages'); // no leading slash, no trailing slash
wp-settings.php:	define('COOKIEHASH', $cookiehash);
wp-settings.php:	define('USER_COOKIE', 'wordpressuser_'. COOKIEHASH);
wp-settings.php:	define('PASS_COOKIE', 'wordpresspass_'. COOKIEHASH);
wp-settings.php:	define('TEST_COOKIE', 'wordpress_test_cookie');
wp-settings.php:	define('COOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('home') . '/' ) );
wp-settings.php:	define('SITECOOKIEPATH', preg_replace('|https?://[^/]+|i', '', get_option('siteurl') . '/' ) );
wp-settings.php:	define('COOKIE_DOMAIN', false);
wp-settings.php:define('TEMPLATEPATH', get_template_directory());
wp-settings.php:define('STYLESHEETPATH', get_stylesheet_directory());
xmlrpc.php:define('XMLRPC_REQUEST', true);





More information about the wp-hackers mailing list