Commit Graph

54 Commits

Author SHA1 Message Date
Sergey Biryukov
cbcd3ffef3 Boostrap/Load: Further update the language in wp-config-sample.php.
This restores "That's all, stop editing!" line to its previous format, to avoid breaking external integrations looking for that format specifically.

Follow up to [50915], [50917], [50918].

Props swissspidy, schlessera.
Fixes #37199.
Built from https://develop.svn.wordpress.org/trunk@50946


git-svn-id: http://core.svn.wordpress.org/trunk@50555 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-21 10:40:56 +00:00
Sergey Biryukov
51fe01e66d Docs: Update documentation in wp-config-sample.php per the documentation standards.
See #52628.
Built from https://develop.svn.wordpress.org/trunk@50918


git-svn-id: http://core.svn.wordpress.org/trunk@50527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-16 08:45:03 +00:00
Aaron Jorbin
5a0c9a9801 Boostrap/Load: Have language in wp-config-sample.php better match install instructions.
Help prevent errors from users who are less familiar with php from adding code in side the comment block and thus having their code not work. Therefore, this comment is now a single line.

Follow up to [50915].

Fixes #37199.
Props SergeyBiryukov.



Built from https://develop.svn.wordpress.org/trunk@50917


git-svn-id: http://core.svn.wordpress.org/trunk@50526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-15 22:00:01 +00:00
Aaron Jorbin
bf11362dab Boostrap/Load: Strengthen language in wp-config-sample.php
Make it clearer where custom pieces belong in wp-config.php

Props kraftbj, jorbin.
Fixes #37199.


Built from https://develop.svn.wordpress.org/trunk@50915


git-svn-id: http://core.svn.wordpress.org/trunk@50524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-14 19:35:00 +00:00
Sergey Biryukov
47ed56f38f Code Modernization: Replace dirname( __FILE__ ) calls with __DIR__ magic constant.
This avoids the performance overhead of the function call every time `dirname( __FILE__ )` was used instead of `__DIR__`.

This commit also includes:

* Removing unnecessary parentheses from `include`/`require` statements. These are language constructs, not function calls.
* Replacing `include` statements for several files with `require_once`, for consistency:
 * `wp-admin/admin-header.php`
 * `wp-admin/admin-footer.php`
 * `wp-includes/version.php`

Props ayeshrajans, desrosj, valentinbora, jrf, joostdevalk, netweb.
Fixes #48082.
Built from https://develop.svn.wordpress.org/trunk@47198


git-svn-id: http://core.svn.wordpress.org/trunk@46998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-06 06:33:11 +00:00
Sergey Biryukov
0d8e11db06 Docs: Replace Codex URLs with corresponding HelpHub articles in wp-config-sample.php.
Props sebastienserre.
Fixes #48680.
Built from https://develop.svn.wordpress.org/trunk@46740


git-svn-id: http://core.svn.wordpress.org/trunk@46540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-11-17 11:11:04 +00:00
Gary Pendergast
363cfc4301 General: Replace "Happy blogging" with "Happy publishing".
As of this commit, WordPress is no longer a simple blogging platform. It's now a comprehensive publishing solution.

This also replaces a couple of other "blog" references that were missed previously.

Props igmoweb, Valer1e, audrasjb, pento.
Fixes #41000.


Built from https://develop.svn.wordpress.org/trunk@44455


git-svn-id: http://core.svn.wordpress.org/trunk@44286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-01-08 04:30:50 +00:00
Gary Pendergast
aaf99e6913 Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.


Built from https://develop.svn.wordpress.org/trunk@42343


git-svn-id: http://core.svn.wordpress.org/trunk@42172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-30 23:11:00 +00:00
Dion Hulse
1acedc542f The wp-config-sample.php file is deliberately CRLF to recognise the fact that when it's used, it's likely to be edited on a line-endings unfriendly editor.
See [2370] and [5457]
See #28187


git-svn-id: http://core.svn.wordpress.org/trunk@35925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-12-16 09:58:26 +00:00
Drew Jaynes
59fe6b2368 Lightly clean up and improve inline documentation in wp-config-sample.php.
* Fixes some grammatical and wrapping issues in the file header, and breaks the contents list up into, well, a list.
* Adds a note and Codex link to the DocBlock for the `WP_DEBUG` constant definition on where to find more information about constants used for debugging.

Fixes #28551.

Built from https://develop.svn.wordpress.org/trunk@32479


git-svn-id: http://core.svn.wordpress.org/trunk@32449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-10 00:06:31 +00:00
Dominik Schilling
64fc7294b6 Use HTTPS URLs for codex.wordpress.org.
see #27115.
Built from https://develop.svn.wordpress.org/trunk@32116


git-svn-id: http://core.svn.wordpress.org/trunk@32095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-12 21:29:32 +00:00
Sergey Biryukov
2c171053ed Remove 'WordPress Language' reference from wp-config-sample.php.
props voldemortensen.
see [29630]. fixes #29562.
Built from https://develop.svn.wordpress.org/trunk@29720


git-svn-id: http://core.svn.wordpress.org/trunk@29494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-09 01:23:18 +00:00
Dominik Schilling
d544610681 Language packs: No WPLANG anymore.
* The WPLANG constant is no longer needed. Remove define('WPLANG', ''); from wp-config-sample.php. Populate WPLANG option based on the WPLANG constant. When get_option('WPLANG') is an empty string it will override WPLANG.
* Introduce translations_api() which is available to communicate with the translation API. Move translation install related functions to a new file.
* Replace mu_dropdown_languages() with wp_dropdown_languages(). wp_dropdown_languages() is now populated by the translation API.
* Remove wp_install_load_language() and allow load_default_textdomain() to switch a core translation.

fixes #13069, #15677, #19760, #28730, #29281. 
Built from https://develop.svn.wordpress.org/trunk@29630


git-svn-id: http://core.svn.wordpress.org/trunk@29404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-08-26 19:59:16 +00:00
Andrew Nacin
de7977d66c Move upgrader_process_complete for core to its proper place in Core_Upgrader.
This means it will be firing as a JS redirect is taking place if the update is from pre-3.4. Acceptable.

props dd32.
fixes #25659.

Built from https://develop.svn.wordpress.org/trunk@25861


git-svn-id: http://core.svn.wordpress.org/trunk@25861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:58:23 +00:00
Drew Jaynes
4d1482cd0d Inline documentation for the WP_Date_Query class in wp-includes/date.php.
- Adds a complete hash notation for the `WP_Date_Query` arguments array.
- Adds missing documentation for the `date_query_valid_columns` and `get_date_sql` filter hooks.

Props aeg0125 for the incremental patches.
Fixes #25552.

Built from https://develop.svn.wordpress.org/trunk@25860


git-svn-id: http://core.svn.wordpress.org/trunk@25860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-24 22:58:12 +00:00
westi
f00861d35f Apply the missing bits of the patch. Fixes #13891 props TobiasBg and zeo
git-svn-id: http://svn.automattic.com/wordpress/trunk@16131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-01 14:45:11 +00:00
westi
e1be64d2d0 Improve WPLANG example. Fixes #13891 props TobiasBg.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-01 08:23:02 +00:00
wpmuguru
78e8ac0bee shorten header in wp-config-sample, props lloydbudd, fixes #13542
git-svn-id: http://svn.automattic.com/wordpress/trunk@14912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-25 23:47:18 +00:00
dd32
d8846f5ebb Most users edit wp-config-sample.php on a Windows system with a text editor which does not understand LF, Ensure that the file is always CRLF on svn exports. Fixes #12775
git-svn-id: http://svn.automattic.com/wordpress/trunk@13912 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-01 10:47:31 +00:00
nacin
b5fa6854b5 Standardize db config-sample values. fixes #11523
git-svn-id: http://svn.automattic.com/wordpress/trunk@13837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-27 05:42:08 +00:00
nacin
9133e1c25e Add initial WP_DEBUG define to wp-config-sample.php and suggest plugin/theme developers use it. Fixes #12236
git-svn-id: http://svn.automattic.com/wordpress/trunk@13185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-17 20:36:00 +00:00
nacin
5871a56009 Fall back to wp_generate_password() in setup-config.php if HTTPS request for secret keys fails. Also use pretty link to secret-key API, see #12159
git-svn-id: http://svn.automattic.com/wordpress/trunk@13133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-14 02:47:45 +00:00
ryan
a8e393c607 Update keys and salts with random values from api.wordpress.org. Props nacin. see #12159
git-svn-id: http://svn.automattic.com/wordpress/trunk@13026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-08 18:15:44 +00:00
ryan
6da55f7792 Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@12733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-15 22:11:12 +00:00
wpmuguru
4b8c87da92 Add is_subdomain_install() to ms code - Fixes #11796
git-svn-id: http://svn.automattic.com/wordpress/trunk@12674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-08 21:25:01 +00:00
matt
cff2ea75c7 Cast out the lowercase P demons that snuck in. http://www.google.com/search?q=out+out+you+demons+of+stupidity
git-svn-id: http://svn.automattic.com/wordpress/trunk@12341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-08 19:59:34 +00:00
westi
68d8884d6d Improve the Grammar. Fixes #9181 props Viper007Bond.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-28 09:55:07 +00:00
westi
8da10297ba Explain consequences of changing the *_KEY defines. Fixes #9181.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-27 17:14:22 +00:00
ryan
07f593ea54 Eliminate closing ?>'s from wp-config-sample.php. Props Otto42. fixes #6791
git-svn-id: http://svn.automattic.com/wordpress/trunk@10252 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-24 22:51:50 +00:00
ryan
f7db972796 https for secret-key
git-svn-id: http://svn.automattic.com/wordpress/trunk@10209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-16 08:32:35 +00:00
ryan
0f927649f8 Introduce NONCE_SALT and NONCE_KEY
git-svn-id: http://svn.automattic.com/wordpress/trunk@10120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-07 21:31:13 +00:00
westi
df8ad0bc5a Improved phpdoc for wp-config-sample.php fixes #7397 and #7526 props lloydbudd and jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-05 17:53:03 +00:00
ryan
fa2ee97a53 Revert [8655]. see #7526
git-svn-id: http://svn.automattic.com/wordpress/trunk@8790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-01 05:33:56 +00:00
azaozz
9729660f29 wp-config-sample.php inline documentation. Props santosj, fixes #7526
git-svn-id: http://svn.automattic.com/wordpress/trunk@8655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-16 06:16:30 +00:00
ryan
c3045dd2f8 Update sample config to use new cookie keys
git-svn-id: http://svn.automattic.com/wordpress/trunk@8251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-07-03 17:16:10 +00:00
ryan
5b8113578d Allow wp-config.php to exist one level up from WordPress root directory. Props sambauers. fixes #6933
git-svn-id: http://svn.automattic.com/wordpress/trunk@7971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-21 05:59:27 +00:00
ryan
31f09d0b85 Typo fix
git-svn-id: http://svn.automattic.com/wordpress/trunk@7810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-24 17:33:58 +00:00
ryan
b67cfee094 Document new secret-key API in sample config.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-24 17:26:36 +00:00
ryan
42d83376c9 Allow DB salt to be overridden by SECRET_SALT. Add a filter to wp_salt(). see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-24 06:34:12 +00:00
ryan
03a9269b11 Don't fallback to DB info for secret key. Allow expiration grace period for AJAX requests. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-23 00:58:06 +00:00
ryan
29ef8b6f5f New secure cookie protocol. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-16 17:41:59 +00:00
matt
a22990a56e The config file has been deliberately CRLF since [2370] to recognize that most people will be editing this file in a crappy windows editor.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5457 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-05-12 18:29:57 +00:00
rob1n
c2e45c1e08 Update wp-config.php to reference wp-contents/languages instead of wp-includes/languages. Props Nazgul. fixes #4150
git-svn-id: http://svn.automattic.com/wordpress/trunk@5273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-04-15 21:29:41 +00:00
matt
ea34fbf182 People are confusing the part they should edit with the part they shouldn't, so let's make the example values a little more self-evident.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-03-08 18:31:46 +00:00
ryan
09d45db3f7 Make DB_COLLATE blank by default so that MySQL will choose the default collation for the charset. #3517
git-svn-id: http://svn.automattic.com/wordpress/trunk@4867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-02-05 21:37:47 +00:00
ryan
ce0f8b4a66 First cut at mysql utf-8 charset suport. Props to sehh, drupal, and textpattern. fixes #3517
git-svn-id: http://svn.automattic.com/wordpress/trunk@4860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-02-02 00:04:35 +00:00
ryan
c476029674 Set eol style. fixes #3264
git-svn-id: http://svn.automattic.com/wordpress/trunk@4424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2006-10-25 22:55:05 +00:00
matt
fd16cda0a7 Note character restrictions, fixes #910
git-svn-id: http://svn.automattic.com/wordpress/trunk@2745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-08-03 00:46:57 +00:00
matt
f6da723d1f Change to work better on windows
git-svn-id: http://svn.automattic.com/wordpress/trunk@2370 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2005-02-21 06:38:30 +00:00
saxmatt
2a84681941 Eliminating some cruft.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2004-08-30 20:02:10 +00:00