Skip to content

Commit b9a8987

Browse files
committed
Initial Intelishift site commit
0 parents  commit b9a8987

File tree

1,042 files changed

+285715
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,042 files changed

+285715
-0
lines changed

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# No need to add the upgrade folder to the repo #
2+
wp-content/upgrade/*
3+
4+
# No need to add the uploads folder to the repo #
5+
wp-content/uploads/*
6+
7+
# No need to add the plugins folder to the repo #
8+
wp-content/plugins/*
9+
10+
# sitemaps not needed locally #
11+
sitemap.xml
12+
sitemap.xml.gz
13+
14+
# no need for these #
15+
readme.html
16+
license.txt
17+
.log
18+
.DS_Store
19+
20+
# Do not include local configuration
21+
wp-config.php

.htaccess

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# BEGIN WordPress
2+
<IfModule mod_rewrite.c>
3+
RewriteEngine On
4+
RewriteBase /
5+
RewriteRule ^index\.php$ - [L]
6+
RewriteCond %{REQUEST_FILENAME} !-f
7+
RewriteCond %{REQUEST_FILENAME} !-d
8+
RewriteRule . /index.php [L]
9+
</IfModule>
10+
# END WordPress

index.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
/**
3+
* Front to the WordPress application. This file doesn't do anything, but loads
4+
* wp-blog-header.php which does and tells WordPress to load the theme.
5+
*
6+
* @package WordPress
7+
*/
8+
9+
/**
10+
* Tells WordPress to load the WordPress theme and output it.
11+
*
12+
* @var bool
13+
*/
14+
define('WP_USE_THEMES', true);
15+
16+
/** Loads the WordPress Environment and Template */
17+
require('./wp-blog-header.php');

wp-activate.php

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
<?php
2+
/**
3+
* Confirms that the activation key that is sent in an email after a user signs
4+
* up for a new blog matches the key for that user and then displays confirmation.
5+
*
6+
* @package WordPress
7+
*/
8+
9+
/** Define ABSPATH as this file's directory */
10+
define( 'WP_INSTALLING', true );
11+
12+
/** Sets up the WordPress Environment. */
13+
require( dirname(__FILE__) . '/wp-load.php' );
14+
15+
require( './wp-blog-header.php' );
16+
17+
if ( !is_multisite() ) {
18+
wp_redirect( site_url( '/wp-login.php?action=register' ) );
19+
die();
20+
}
21+
22+
if ( is_object( $wp_object_cache ) )
23+
$wp_object_cache->cache_enabled = false;
24+
25+
do_action( 'activate_header' );
26+
27+
/**
28+
* Adds an action hook specific to this page that fires on wp_head
29+
*
30+
* @since MU
31+
*/
32+
function do_activate_header() {
33+
do_action( 'activate_wp_head' );
34+
}
35+
add_action( 'wp_head', 'do_activate_header' );
36+
37+
/**
38+
* Loads styles specific to this page.
39+
*
40+
* @since MU
41+
*/
42+
function wpmu_activate_stylesheet() {
43+
?>
44+
<style type="text/css">
45+
form { margin-top: 2em; }
46+
#submit, #key { width: 90%; font-size: 24px; }
47+
#language { margin-top: .5em; }
48+
.error { background: #f66; }
49+
span.h3 { padding: 0 8px; font-size: 1.3em; font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif; font-weight: bold; color: #333; }
50+
</style>
51+
<?php
52+
}
53+
add_action( 'wp_head', 'wpmu_activate_stylesheet' );
54+
55+
get_header();
56+
?>
57+
58+
<div id="content" class="widecolumn">
59+
<?php if ( empty($_GET['key']) && empty($_POST['key']) ) { ?>
60+
61+
<h2><?php _e('Activation Key Required') ?></h2>
62+
<form name="activateform" id="activateform" method="post" action="<?php echo network_site_url('wp-activate.php'); ?>">
63+
<p>
64+
<label for="key"><?php _e('Activation Key:') ?></label>
65+
<br /><input type="text" name="key" id="key" value="" size="50" />
66+
</p>
67+
<p class="submit">
68+
<input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e('Activate') ?>" />
69+
</p>
70+
</form>
71+
72+
<?php } else {
73+
74+
$key = !empty($_GET['key']) ? $_GET['key'] : $_POST['key'];
75+
$result = wpmu_activate_signup($key);
76+
if ( is_wp_error($result) ) {
77+
if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) {
78+
$signup = $result->get_error_data();
79+
?>
80+
<h2><?php _e('Your account is now active!'); ?></h2>
81+
<?php
82+
echo '<p class="lead-in">';
83+
if ( $signup->domain . $signup->path == '' ) {
84+
printf( __('Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() );
85+
} else {
86+
printf( __('Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of &#8220;%3$s&#8221;. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() );
87+
}
88+
echo '</p>';
89+
} else {
90+
?>
91+
<h2><?php _e('An error occurred during the activation'); ?></h2>
92+
<?php
93+
echo '<p>'.$result->get_error_message().'</p>';
94+
}
95+
} else {
96+
extract($result);
97+
$url = get_blogaddress_by_id( (int) $blog_id);
98+
$user = get_userdata( (int) $user_id);
99+
?>
100+
<h2><?php _e('Your account is now active!'); ?></h2>
101+
102+
<div id="signup-welcome">
103+
<p><span class="h3"><?php _e('Username:'); ?></span> <?php echo $user->user_login ?></p>
104+
<p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $password; ?></p>
105+
</div>
106+
107+
<?php if ( $url != network_home_url('', 'http') ) : ?>
108+
<p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>'), $url, $url . 'wp-login.php' ); ?></p>
109+
<?php else: ?>
110+
<p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?></p>
111+
<?php endif;
112+
}
113+
}
114+
?>
115+
</div>
116+
<script type="text/javascript">
117+
var key_input = document.getElementById('key');
118+
key_input && key_input.focus();
119+
</script>
120+
<?php get_footer(); ?>

wp-admin/about.php

+168
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
<?php
2+
/**
3+
* About This Version administration panel.
4+
*
5+
* @package WordPress
6+
* @subpackage Administration
7+
*/
8+
9+
/** WordPress Administration Bootstrap */
10+
require_once( './admin.php' );
11+
12+
$title = __( 'About' );
13+
14+
list( $display_version ) = explode( '-', $wp_version );
15+
16+
include( ABSPATH . 'wp-admin/admin-header.php' );
17+
?>
18+
<div class="wrap about-wrap">
19+
20+
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
21+
22+
<div class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s is more polished and enjoyable than ever before. We hope you like it.' ), $display_version ); ?></div>
23+
24+
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
25+
26+
<h2 class="nav-tab-wrapper">
27+
<a href="about.php" class="nav-tab nav-tab-active">
28+
<?php _e( 'What&#8217;s New' ); ?>
29+
</a><a href="credits.php" class="nav-tab">
30+
<?php _e( 'Credits' ); ?>
31+
</a><a href="freedoms.php" class="nav-tab">
32+
<?php _e( 'Freedoms' ); ?>
33+
</a>
34+
</h2>
35+
36+
<div class="changelog point-releases">
37+
<h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 1 ); ?></h3>
38+
<p><?php printf( _n( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
39+
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.', 37 ), '3.5.1', number_format_i18n( 37 ) ); ?>
40+
<?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.5.1' ); ?>
41+
</p>
42+
</div>
43+
44+
<div class="changelog">
45+
<h3><?php _e( 'New Media Manager' ); ?></h3>
46+
47+
<div class="feature-section col two-col">
48+
<img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-media.png' ) ); ?>" class="image-100" />
49+
50+
<div>
51+
<h4><?php _e( 'Beautiful Interface' ); ?></h4>
52+
<p><?php _e( 'Adding media has been streamlined with an all-new experience, making it a breeze to upload files and place them into your posts.' ); ?></p>
53+
</div>
54+
<div class="last-feature">
55+
<h4><?php _e( 'Picturesque Galleries' ); ?></h4>
56+
<p><?php _e( 'Creating image galleries is faster with drag and drop reordering, inline caption editing, and simplified controls for layout.' ); ?></p>
57+
</div>
58+
</div>
59+
</div>
60+
61+
<div class="changelog">
62+
<h3><?php _e( 'New Default Theme' ); ?></h3>
63+
64+
<div class="feature-section images-stagger-right">
65+
<img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-twenty-twelve.png' ) ); ?>" class="image-66" />
66+
<h4><?php _e( 'Introducing Twenty Twelve' ); ?></h4>
67+
<p><?php _e( 'The newest default theme for WordPress is simple, flexible, and elegant.' ); ?></p>
68+
<p><?php _e( 'What makes it really shine are the design details, like the gorgeous Open Sans typeface and a fully responsive design that looks great on any device.' ); ?></p>
69+
<p><?php _e( 'Naturally, Twenty Twelve supports all the theme features you’ve come to know and love, but it is also designed to be as great for a website as it is for a blog.' ); ?></p>
70+
</div>
71+
</div>
72+
73+
<div class="changelog">
74+
<h3><?php _e( 'Retina Ready' ); ?></h3>
75+
76+
<div class="feature-section images-stagger-right">
77+
<img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-retina.png' ) ); ?>" class="image-66" />
78+
<h4><?php _e( 'So Sharp You Can&#8217;t See the Pixels' ); ?></h4>
79+
<p><?php _e( 'The WordPress dashboard now looks beautiful on high-resolution screens like those found on the iPad, Kindle Fire HD, Nexus 10, and MacBook Pro with Retina Display. Icons and other visual elements are crystal clear and full of detail.' ); ?></p>
80+
</div>
81+
</div>
82+
83+
<div class="changelog">
84+
<h3><?php _e( 'Smoother Experience' ); ?></h3>
85+
86+
<div class="feature-section images-stagger-right">
87+
<img alt="" src="<?php echo esc_url( admin_url( 'images/screenshots/about-color-picker.png' ) ); ?>" class="image-30" />
88+
<h4><?php _e( 'Better Accessibility' ); ?></h4>
89+
<p><?php _e( 'WordPress supports more usage modes than ever before. Screenreaders, touch devices, and mouseless workflows all have improved ease of use and accessibility.' ); ?></p>
90+
91+
<h4><?php _e( 'More Polish' ); ?></h4>
92+
<p><?php _e( 'A number of screens and controls have been refined. For example, a new color picker makes it easier for you to choose that perfect shade of blue.' ); ?></p>
93+
</div>
94+
</div>
95+
96+
<div class="changelog">
97+
<h3><?php _e( 'Under the Hood' ); ?></h3>
98+
99+
<div class="feature-section col three-col">
100+
<div>
101+
<h4><?php _e( 'Meta Query Additions' ); ?></h4>
102+
<p><?php _e( 'The <code>WP_Comment_Query</code> and <code>WP_User_Query</code> classes now support meta queries just like <code>WP_Query.</code> Meta queries now support querying for objects without a particular meta key.' ); ?></p>
103+
</div>
104+
<div>
105+
<h4><?php _e( 'Post Objects' ); ?></h4>
106+
<p><?php _e( 'Post objects are now instances of a <code>WP_Post</code> class, which improves performance by loading selected properties on demand.' ); ?></p>
107+
</div>
108+
<div class="last-feature">
109+
<h4><?php _e( 'Image Editing API' ); ?></h4>
110+
<p><?php _e( 'The <code>WP_Image_Editor</code> class abstracts image editing functionality such as cropping and scaling, and uses ImageMagick when available.' ); ?></p>
111+
</div>
112+
</div>
113+
114+
<div class="feature-section col three-col">
115+
<div>
116+
<h4><?php _e( 'Multisite Improvements' ); ?></h4>
117+
<p><?php _e( '<code>switch_to_blog()</code> is now significantly faster and more reliable.' ); ?></p>
118+
</div>
119+
<div>
120+
<h4><?php _e( 'XML-RPC API' ); ?></h4>
121+
<p><?php printf( __( 'The <a href="%s">WordPress API</a> is now always enabled, and supports fetching users, editing profiles, managing post revisions, and searching posts.' ), __( 'http://codex.wordpress.org/XML-RPC_WordPress_API' ) ); ?></p>
122+
</div>
123+
<div class="last-feature">
124+
<h4><?php _e( 'External Libraries' ); ?></h4>
125+
<p><?php printf( __( 'WordPress now includes the <a href="%1$s">Underscore</a> and <a href="%2$s">Backbone</a> JavaScript libraries. TinyMCE, jQuery, jQuery UI, and SimplePie have all been updated to the latest versions.' ), 'http://underscorejs.org/', 'http://backbonejs.org/' ); ?></p>
126+
</div>
127+
</div>
128+
</div>
129+
130+
<div class="return-to-dashboard">
131+
<?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
132+
<a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php
133+
is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' );
134+
?></a> |
135+
<?php endif; ?>
136+
<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php
137+
is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
138+
</div>
139+
140+
</div>
141+
<?php
142+
143+
include( ABSPATH . 'wp-admin/admin-footer.php' );
144+
145+
// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
146+
return;
147+
148+
_n_noop( 'Maintenance Release', 'Maintenance Releases' );
149+
_n_noop( 'Security Release', 'Security Releases' );
150+
_n_noop( 'Maintenance and Security Release', 'Maintenance and Security Releases' );
151+
152+
/* translators: 1: WordPress version number. */
153+
_n_noop( '<strong>Version %1$s</strong> addressed a security issue.',
154+
'<strong>Version %1$s</strong> addressed some security issues.' );
155+
156+
/* translators: 1: WordPress version number, 2: plural number of bugs. */
157+
_n_noop( '<strong>Version %1$s</strong> addressed %2$s bug.',
158+
'<strong>Version %1$s</strong> addressed %2$s bugs.' );
159+
160+
/* translators: 1: WordPress version number, 2: plural number of bugs. Singular security issue. */
161+
_n_noop( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
162+
'<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.' );
163+
164+
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
165+
_n_noop( '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
166+
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.' );
167+
168+
__( 'For more information, see <a href="%s">the release notes</a>.' );

0 commit comments

Comments
 (0)