Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Updating WP core and themes #189

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- Thanks for contributing to Underscores! Please provide as much information as possible with your Pull Request by filling out the following - this helps make reviewing much quicker! -->

#### Changes proposed in this Pull Request:


#### Related issue(s):
9 changes: 6 additions & 3 deletions util/wordpress.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var https = require('https'),
chalk = require('chalk'),
exec = require('child_process').exec,
EventEmitter = require('events').EventEmitter,
wordpressRepo = "git://github.com/WordPress/WordPress.git";
wordpressRepo = "git://github.com/WordPress/WordPress/releases/tag/4.8.1";

function getLanguage(contentDir, language, callback) {
var files = {
Expand All @@ -18,6 +18,9 @@ function getLanguage(contentDir, language, callback) {
'twentytwelve': path.join('themes', 'twentytwelve-%s.mo'),
'twentythirteen': path.join('themes', 'twentythirteen-%s.mo'),
'twentyfourteen': path.join('themes', 'twentyfourteen-%s.mo'),
'twentyfifteen': path.join('themes', 'twentyfifteen-%s.mo'),
'twentysixteen': path.join('themes', 'twentysixteen-%s.mo'),
'twentyseventeen': path.join('themes', 'twentyseventeen-%s.mo'),
};

var requested = complete = 0, errors = [];
Expand Down Expand Up @@ -248,7 +251,7 @@ function installTheme(generator, config, done) {
};

function setupTheme(generator, config, done) {

console.log(chalk.green('Setting Up Theme'));

var themePath = path.join(config.contentDir, 'themes', config.themeDir),
Expand Down Expand Up @@ -314,7 +317,7 @@ function activateTheme(themeName, callback) {
"UPDATE " + db.prefix + "options",
"SET option_value = "+ mysql.escape(themeName),
"WHERE option_name = 'template'",
"OR option_name = 'stylesheet'"
"OR option_name = 'stylesheet'"
].join('\n');

connection.query(q, function(err, rows, fields) {
Expand Down