Skip to content

Commit a5d1629

Browse files
authored
Merge pull request #13 from wp-portugal/dev
Alteração da estrutura de ficheiros e pastas
2 parents d25df85 + f6e7856 commit a5d1629

File tree

7 files changed

+204
-238
lines changed

7 files changed

+204
-238
lines changed

.github/workflows/update-build-files.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727

2828
steps:
2929

30-
- name: Checkout trunk branch
30+
- name: Checkout english branch
3131
uses: actions/checkout@v4
3232
with:
33-
ref: trunk
33+
ref: english
3434
fetch-depth: 0
3535

36-
- name: Download WordPress build files from Trunk
36+
- name: Download WordPress build files from the repository branch 'trunk'
3737
id: download-files
3838
run: |
3939
mkdir downloads
@@ -43,7 +43,7 @@ jobs:
4343
- name: Check if source files have changed
4444
id: compare-files
4545
run: |
46-
if ! cmp -s downloads/readme.html trunk/readme.html || ! cmp -s downloads/wp-config-sample.php trunk/wp-config-sample.php; then
46+
if ! cmp -s downloads/readme.html en_US/readme.html || ! cmp -s downloads/wp-config-sample.php en_US/wp-config-sample.php; then
4747
echo "The build files have been updated!"
4848
echo "files_changed=true" >> $GITHUB_OUTPUT
4949
else
@@ -71,23 +71,23 @@ jobs:
7171

7272
steps:
7373

74-
- name: Checkout trunk branch
74+
- name: Checkout english branch
7575
uses: actions/checkout@v4
7676
with:
77-
ref: trunk
77+
ref: english
7878
fetch-depth: 0
7979

8080
- name: Get workspace files from artifact
8181
uses: actions/download-artifact@v4
8282
id: download-artifact
8383
with:
8484
name: workspace-files
85-
path: trunk
85+
path: en_US
8686

8787
- name: Commit updated source files
8888
uses: stefanzweifel/git-auto-commit-action@v5
8989
with:
90-
commit_message: Update local files with remote changes from Trunk
90+
commit_message: Update english files according to remote changes in WordPress 'trunk'
9191

9292
- name: Steps debug info
9393
run: |
@@ -105,7 +105,7 @@ jobs:
105105
id: check_pr
106106
run: |
107107
BRANCH=main
108-
RESPONSE=$(curl -X GET -H "Authorization: token $TOKEN" "https://api.github.com/repos/$REPO/pulls?head=$OWNER:trunk")
108+
RESPONSE=$(curl -X GET -H "Authorization: token $TOKEN" "https://api.github.com/repos/$REPO/pulls?head=$OWNER:english")
109109
PR_NUMBER=$(echo "$RESPONSE" | jq -r '.[].number')
110110
if [ -n "$PR_NUMBER" ]; then
111111
echo "PR number found: $PR_NUMBER"
@@ -121,9 +121,9 @@ jobs:
121121
run: |
122122
BRANCH=main
123123
TITLE="Actualizar ficheiros originais em inglês"
124-
BODY="Este pull request automático submete alterações do branch 'trunk' para o 'main'."
124+
BODY="Actualização automática para submeter alterações do branch 'english' para o 'main'."
125125
URL="https://api.github.com/repos/$REPO/pulls"
126-
RESPONSE=$(curl -X POST -H "Authorization: token $TOKEN" -d "{\"title\":\"$TITLE\",\"body\":\"$BODY\",\"head\":\"trunk\",\"base\":\"$BRANCH\"}" $URL)
126+
RESPONSE=$(curl -X POST -H "Authorization: token $TOKEN" -d "{\"title\":\"$TITLE\",\"body\":\"$BODY\",\"head\":\"english\",\"base\":\"$BRANCH\"}" $URL)
127127
echo $RESPONSE
128128
129129
- name: Steps debug info

en_US/readme.html

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta name="viewport" content="width=device-width" />
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>WordPress &#8250; ReadMe</title>
7+
<link rel="stylesheet" href="wp-admin/css/install.css?ver=20100228" type="text/css" />
8+
</head>
9+
<body>
10+
<h1 id="logo">
11+
<a href="https://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" /></a>
12+
</h1>
13+
<p style="text-align: center">Semantic Personal Publishing Platform</p>
14+
15+
<h2>First Things First</h2>
16+
<p>Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I am proud to be a part of. Thousands of hours have gone into WordPress, and we are dedicated to making it better every day. Thank you for making it part of your world.</p>
17+
<p style="text-align: right">&#8212; Matt Mullenweg</p>
18+
19+
<h2>Installation: Famous 5-minute install</h2>
20+
<ol>
21+
<li>Unzip the package in an empty directory and upload everything.</li>
22+
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser. It will take you through the process to set up a <code>wp-config.php</code> file with your database connection details.
23+
<ol>
24+
<li>If for some reason this does not work, do not worry. It may not work on all web hosts. Open up <code>wp-config-sample.php</code> with a text editor like WordPad or similar and fill in your database connection details.</li>
25+
<li>Save the file as <code>wp-config.php</code> and upload it.</li>
26+
<li>Open <span class="file"><a href="wp-admin/install.php">wp-admin/install.php</a></span> in your browser.</li>
27+
</ol>
28+
</li>
29+
<li>Once the configuration file is set up, the installer will set up the tables needed for your site. If there is an error, double check your <code>wp-config.php</code> file, and try again. If it fails again, please go to the <a href="https://wordpress.org/support/forums/">WordPress support forums</a> with as much data as you can gather.</li>
30+
<li><strong>If you did not enter a password, note the password given to you.</strong> If you did not provide a username, it will be <code>admin</code>.</li>
31+
<li>The installer should then send you to the <a href="wp-login.php">login page</a>. Sign in with the username and password you chose during the installation. If a password was generated for you, you can then click on &#8220;Profile&#8221; to change the password.</li>
32+
</ol>
33+
34+
<h2>Updating</h2>
35+
<h3>Using the Automatic Updater</h3>
36+
<ol>
37+
<li>Open <span class="file"><a href="wp-admin/update-core.php">wp-admin/update-core.php</a></span> in your browser and follow the instructions.</li>
38+
<li>You wanted more, perhaps? That&#8217;s it!</li>
39+
</ol>
40+
41+
<h3>Updating Manually</h3>
42+
<ol>
43+
<li>Before you update anything, make sure you have backup copies of any files you may have modified such as <code>index.php</code>.</li>
44+
<li>Delete your old WordPress files, saving ones you&#8217;ve modified.</li>
45+
<li>Upload the new files.</li>
46+
<li>Point your browser to <span class="file"><a href="wp-admin/upgrade.php">/wp-admin/upgrade.php</a>.</span></li>
47+
</ol>
48+
49+
<h2>Migrating from other systems</h2>
50+
<p>WordPress can <a href="https://developer.wordpress.org/advanced-administration/wordpress/import/">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php">our import tools</a>.</p>
51+
52+
<h2>System Requirements</h2>
53+
<ul>
54+
<li><a href="https://secure.php.net/">PHP</a> version <strong>7.0</strong> or greater.</li>
55+
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.5.5</strong> or greater.</li>
56+
</ul>
57+
58+
<h3>Recommendations</h3>
59+
<ul>
60+
<li><a href="https://secure.php.net/">PHP</a> version <strong>7.4</strong> or greater.</li>
61+
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>8.0</strong> or greater OR <a href="https://mariadb.org/">MariaDB</a> version <strong>10.4</strong> or greater.</li>
62+
<li>The <a href="https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>
63+
<li><a href="https://wordpress.org/news/2016/12/moving-toward-ssl/">HTTPS</a> support.</li>
64+
<li>A link to <a href="https://wordpress.org/">wordpress.org</a> on your site.</li>
65+
</ul>
66+
67+
<h2>Online Resources</h2>
68+
<p>If you have any questions that are not addressed in this document, please take advantage of WordPress&#8217; numerous online resources:</p>
69+
<dl>
70+
<dt><a href="https://wordpress.org/documentation/">HelpHub</a></dt>
71+
<dd>HelpHub is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.</dd>
72+
<dt><a href="https://wordpress.org/news/">The WordPress Blog</a></dt>
73+
<dd>This is where you&#8217;ll find the latest updates and news related to WordPress. Recent WordPress news appears in your administrative dashboard by default.</dd>
74+
<dt><a href="https://planet.wordpress.org/">WordPress Planet</a></dt>
75+
<dd>The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.</dd>
76+
<dt><a href="https://wordpress.org/support/forums/">WordPress Support Forums</a></dt>
77+
<dd>If you&#8217;ve looked everywhere and still cannot find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.</dd>
78+
<dt><a href="https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/">WordPress <abbr>IRC</abbr> (Internet Relay Chat) Channel</a></dt>
79+
<dd>There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (<a href="https://web.libera.chat/#wordpress">irc.libera.chat #wordpress</a>)</dd>
80+
</dl>
81+
82+
<h2>Final Notes</h2>
83+
<ul>
84+
<li>If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the <a href="https://wordpress.org/support/forums/">Support Forums</a>.</li>
85+
<li>WordPress has a robust plugin <abbr>API</abbr> (Application Programming Interface) that makes extending the code easy. If you are a developer interested in utilizing this, see the <a href="https://developer.wordpress.org/plugins/">Plugin Developer Handbook</a>. You shouldn&#8217;t modify any of the core code.</li>
86+
</ul>
87+
88+
<h2>Share the Love</h2>
89+
<p>WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better&#8212;you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgeable than yourself, or writing the author of a media article that overlooks us.</p>
90+
91+
<p>WordPress is the official continuation of <a href="https://cafelog.com/">b2/caf&#233;log</a>, which came from Michel V. The work has been continued by the <a href="https://wordpress.org/about/">WordPress developers</a>. If you would like to support WordPress, please consider <a href="https://wordpress.org/donate/">donating</a>.</p>
92+
93+
<h2>License</h2>
94+
<p>WordPress is free software, and is released under the terms of the <abbr>GPL</abbr> (GNU General Public License) version 2 or (at your option) any later version. See <a href="license.txt">license.txt</a>.</p>
95+
96+
</body>
97+
</html>

en_US/wp-config-sample.php

+96
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<?php
2+
/**
3+
* The base configuration for WordPress
4+
*
5+
* The wp-config.php creation script uses this file during the installation.
6+
* You don't have to use the website, you can copy this file to "wp-config.php"
7+
* and fill in the values.
8+
*
9+
* This file contains the following configurations:
10+
*
11+
* * Database settings
12+
* * Secret keys
13+
* * Database table prefix
14+
* * ABSPATH
15+
*
16+
* @link https://developer.wordpress.org/advanced-administration/wordpress/wp-config/
17+
*
18+
* @package WordPress
19+
*/
20+
21+
// ** Database settings - You can get this info from your web host ** //
22+
/** The name of the database for WordPress */
23+
define( 'DB_NAME', 'database_name_here' );
24+
25+
/** Database username */
26+
define( 'DB_USER', 'username_here' );
27+
28+
/** Database password */
29+
define( 'DB_PASSWORD', 'password_here' );
30+
31+
/** Database hostname */
32+
define( 'DB_HOST', 'localhost' );
33+
34+
/** Database charset to use in creating database tables. */
35+
define( 'DB_CHARSET', 'utf8' );
36+
37+
/** The database collate type. Don't change this if in doubt. */
38+
define( 'DB_COLLATE', '' );
39+
40+
/**#@+
41+
* Authentication unique keys and salts.
42+
*
43+
* Change these to different unique phrases! You can generate these using
44+
* the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}.
45+
*
46+
* You can change these at any point in time to invalidate all existing cookies.
47+
* This will force all users to have to log in again.
48+
*
49+
* @since 2.6.0
50+
*/
51+
define( 'AUTH_KEY', 'put your unique phrase here' );
52+
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
53+
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
54+
define( 'NONCE_KEY', 'put your unique phrase here' );
55+
define( 'AUTH_SALT', 'put your unique phrase here' );
56+
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
57+
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
58+
define( 'NONCE_SALT', 'put your unique phrase here' );
59+
60+
/**#@-*/
61+
62+
/**
63+
* WordPress database table prefix.
64+
*
65+
* You can have multiple installations in one database if you give each
66+
* a unique prefix. Only numbers, letters, and underscores please!
67+
*/
68+
$table_prefix = 'wp_';
69+
70+
/**
71+
* For developers: WordPress debugging mode.
72+
*
73+
* Change this to true to enable the display of notices during development.
74+
* It is strongly recommended that plugin and theme developers use WP_DEBUG
75+
* in their development environments.
76+
*
77+
* For information on other constants that can be used for debugging,
78+
* visit the documentation.
79+
*
80+
* @link https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
81+
*/
82+
define( 'WP_DEBUG', false );
83+
84+
/* Add any custom values between this line and the "stop editing" line. */
85+
86+
87+
88+
/* That's all, stop editing! Happy publishing. */
89+
90+
/** Absolute path to the WordPress directory. */
91+
if ( ! defined( 'ABSPATH' ) ) {
92+
define( 'ABSPATH', __DIR__ . '/' );
93+
}
94+
95+
/** Sets up WordPress vars and included files. */
96+
require_once ABSPATH . 'wp-settings.php';
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)