Remove the old wp_auto_updates_maybe_update cron event. Schedule the new wp_maybe_auto_update event at 7 a.m. and 7 p.m. in the site's timezone.
see #27704. Built from https://develop.svn.wordpress.org/trunk@25825 git-svn-id: http://core.svn.wordpress.org/trunk@25825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0dbec8fa31
commit
8ae8e01b67
|
@ -13,15 +13,13 @@ $title = __( 'About' );
|
||||||
|
|
||||||
list( $display_version ) = explode( '-', $wp_version );
|
list( $display_version ) = explode( '-', $wp_version );
|
||||||
|
|
||||||
wp_enqueue_script( 'about' );
|
|
||||||
|
|
||||||
include( ABSPATH . 'wp-admin/admin-header.php' );
|
include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
?>
|
?>
|
||||||
<div class="wrap about-wrap">
|
<div class="wrap about-wrap">
|
||||||
|
|
||||||
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
||||||
|
|
||||||
<div class="about-text"><?php printf( __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we’re okay with that.' ), $display_version ); ?></div>
|
<div class="about-text"><?php printf( __( 'Thank you for updating to the latest version. WordPress %s makes your writing experience even better.' ), $display_version ); ?></div>
|
||||||
|
|
||||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||||
|
|
||||||
|
@ -36,81 +34,65 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<div class="changelog">
|
<div class="changelog">
|
||||||
<h3><?php _e( 'Background Updates' ); ?></h3>
|
<h3><?php _e( 'Colorful New Theme' ); ?></h3>
|
||||||
|
|
||||||
<div class="feature-section col three-col about-updates">
|
<div class="feature-section images-stagger-right">
|
||||||
<div class="col-1">
|
<img alt="" src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.6/twentythirteen.png" class="image-66" />
|
||||||
<h4><?php _e( 'Updates While You Sleep' ); ?></h4>
|
<h4><?php _e( 'Introducing Twenty Thirteen' ); ?></h4>
|
||||||
<p><?php _e( 'With WordPress 3.7, you don’t have to lift a finger to apply maintenance and security updates. Most sites are now able to automatically apply these updates in the background, though some configurations may not allow it.' ); ?></p>
|
<p><?php printf( __( "The new default theme puts focus on your content with a colorful, single-column design made for media-rich blogging." ) ); ?></p>
|
||||||
</div>
|
<p><?php _e( 'Inspired by modern art, Twenty Thirteen features quirky details, beautiful typography, and bold, high-contrast colors — all with a flexible layout that looks great on any device, big or small.' ); ?></p>
|
||||||
<div class="col-2">
|
|
||||||
<img alt="" src="<?php echo admin_url( 'images/about-updates-2x.png' ); ?>" />
|
|
||||||
</div>
|
|
||||||
<div class="col-3 last-feature">
|
|
||||||
<h4><?php _e( 'More Reliable Than Ever' ); ?></h4>
|
|
||||||
<p><?php _e( 'The update process has been made even more reliable and secure, with dozens of new checks and safeguards.' ); ?></p>
|
|
||||||
<p><?php _e( 'You’ll still need to click “Update Now” once WordPress 3.8 is released, but we’ve never had more confidence in that beautiful blue button.' ); ?></p>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
if ( current_user_can( 'update_core' ) ) {
|
|
||||||
$future_minor_update = (object) array(
|
|
||||||
'current' => $wp_version . '.1.next.minor',
|
|
||||||
'version' => $wp_version . '.1.next.minor',
|
|
||||||
'php_version' => $required_php_version,
|
|
||||||
'mysql_version' => $required_mysql_version,
|
|
||||||
);
|
|
||||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
|
||||||
$updater = new WP_Automatic_Updater;
|
|
||||||
$can_auto_update = wp_http_supports( 'ssl' ) && $updater->should_update( 'core', $future_minor_update, ABSPATH );
|
|
||||||
|
|
||||||
if ( $can_auto_update ) {
|
|
||||||
echo '<p class="about-auto-update cool">' . __( 'This site <strong>is</strong> able to apply these updates automatically. Cool!' ). '</p>';
|
|
||||||
|
|
||||||
// If the updater is disabled entirely, don't show them anything.
|
|
||||||
} elseif ( ! $updater->is_disabled() ) {
|
|
||||||
echo '<p class="about-auto-update">';
|
|
||||||
// If this is is filtered to false, they won't get emails, so don't claim we will.
|
|
||||||
// Assumption: If the user can update core, they can see what the admin email is.
|
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/includes/class-wp-upgrader.php */
|
|
||||||
if ( apply_filters( 'send_core_update_notification_email', true, $future_minor_update ) ) {
|
|
||||||
printf( __( 'This site <strong>is not</strong> able to apply these updates automatically. But we’ll email %s when there is a new security release.' ), esc_html( get_site_option( 'admin_email' ) ) );
|
|
||||||
} else {
|
|
||||||
_e( 'This site <strong>is not</strong> able to apply these updates automatically.' );
|
|
||||||
}
|
|
||||||
echo '</p>';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="changelog about-passwords">
|
<div class="changelog">
|
||||||
<h3><?php _e( 'Create Stronger Passwords' ); ?></h3>
|
<h3><?php _e( 'Write with Confidence' ); ?></h3>
|
||||||
|
|
||||||
|
<div class="feature-section images-stagger-right">
|
||||||
|
<img alt="" src="<?php echo is_ssl() ? 'https://' : '//s.'; ?>wordpress.org/images/core/3.6/revisions.png" class="image-66" />
|
||||||
|
<h4><?php _e( 'Explore Revisions' ); ?></h4>
|
||||||
|
<p></p>
|
||||||
|
<p><?php _e( 'From the first word you write, WordPress saves every change. Each revision is always at your fingertips. Text is highlighted as you scroll through revisions at lightning speed, so you can see what changes have been made along the way.' ); ?></p>
|
||||||
|
<p><?php _e( 'It’s easy to compare two revisions from any point in time, and to restore a revision and go back to writing. Now you can be confident that no mistake is permanent.' ); ?></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="feature-section col two-col">
|
<div class="feature-section col two-col">
|
||||||
<div>
|
<div>
|
||||||
<p><?php _e( 'Your password is your site’s first line of defense. It’s best to create passwords that are complex, long, and unique. To that end, our password meter has been updated in WordPress 3.7 to recognize common mistakes that can weaken your password: dates, names, keyboard patterns (123456789), and even pop culture references.' ); ?></p>
|
<h4><?php _e( 'Improved Autosaves' ); ?></h4>
|
||||||
<p><strong><?php _e( 'Try it out on the right.' ); ?></strong></p>
|
<p><?php _e( 'Never lose a word you’ve written. Autosaving is now even better; whether your power goes out, your browser crashes, or you lose your internet connection, your content is safe.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="last-feature about-password-meter">
|
<div class="last-feature">
|
||||||
<input type="password" id="pass" size="25" value="" />
|
<h4><?php _e( 'Better Post Locking' ); ?></h4>
|
||||||
<p id="pass-strength-result" ><?php _e( 'Strength indicator' ); ?></p>
|
<p><?php _e( 'Always know who’s editing with live updates that appear in the list of posts. And if someone leaves for lunch with a post open, you can take over where they left off.' ); ?></p>
|
||||||
<?php printf( __( 'Getting the urge to <a href="%s">change your password</a>?' ), esc_url( self_admin_url( 'profile.php' ) ) ); ?>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="changelog">
|
<div class="changelog">
|
||||||
<div class="feature-section col two-col">
|
<h3><?php _e( 'Support for Audio and Video' ); ?></h3>
|
||||||
<div>
|
|
||||||
<h3><?php _e( 'Improved Search Results' ); ?></h3>
|
<div class="feature-section images-stagger-right">
|
||||||
<p><img alt="" src="<?php echo admin_url( 'images/about-search-2x.png' ); ?>" /><?php _e( 'Search results are now ordered by how well the search query matches a post, instead of ordered only by date. For example, when your search terms match a post title, that result will be pushed to the top.' ); ?></p>
|
<div class="video image-66"><?php
|
||||||
</div>
|
$sample_video = ( is_ssl() ? 'https://' : 'http://s.' ) . 'wordpress.org/images/core/3.6/sample-video';
|
||||||
<div class="last-feature">
|
$args = array(
|
||||||
<h3><?php _e( 'Better Global Support' ); ?></h3>
|
'mp4' => "$sample_video.mp4",
|
||||||
<p><img alt="" src="<?php echo admin_url( 'images/about-globe-2x.png' ); ?>" /><?php _e( 'Localized versions of WordPress will receive faster and more complete translations. WordPress 3.7 adds support for automatically installing the right language files and keeping them up to date.' ); ?></p>
|
'ogv' => "$sample_video.ogv",
|
||||||
</div>
|
'width' => 625,
|
||||||
|
'height' => 360,
|
||||||
|
);
|
||||||
|
// Opera 12 (Presto, pre-Chromium) fails to load ogv properly
|
||||||
|
// when combined with ME.js. Works fine in Opera 15.
|
||||||
|
// Don't serve ogv to Opera 12 to avoid complete brokeness.
|
||||||
|
if ( $GLOBALS['is_opera'] )
|
||||||
|
unset( $args['ogv'] );
|
||||||
|
// Our current ME.js API is limited to shortcodes in posts.
|
||||||
|
echo wp_video_shortcode( $args );
|
||||||
|
?></div>
|
||||||
|
<h4><?php _e( 'New Media Player' ); ?></h4>
|
||||||
|
<p><?php _e( 'Share your audio and video with the new built-in HTML5 media player. Upload files using the media manager and embed them in your posts.' ); ?></p>
|
||||||
|
|
||||||
|
<h4><?php _e( 'Embed Music from Spotify, Rdio, and SoundCloud' ); ?></h4>
|
||||||
|
<p><?php _e( 'Embed songs and albums from your favorite artists, or playlists you’ve mixed yourself. It’s as simple as pasting a URL into a post on its own line.' ); ?></p>
|
||||||
|
<p><?php printf( __( '(Love another service? Check out all of the <a href="%s">embeds</a> that WordPress supports.)' ), 'http://codex.wordpress.org/Embeds' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -119,17 +101,35 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
|
|
||||||
<div class="feature-section col three-col">
|
<div class="feature-section col three-col">
|
||||||
<div>
|
<div>
|
||||||
<h4><?php _e( 'More Background Updates (Experimental)' ); ?></h4>
|
<h4><?php _e( 'Audio/Video API' ); ?></h4>
|
||||||
<p><?php _e( 'Want WordPress to always update automatically, even for major feature releases? Want to always keep a certain plugin up to date in the background? WordPress 3.7 comes with fine-grained update controls for developers and systems administrators.' ); ?></p>
|
<p><?php _e( 'The new audio/video APIs give developers access to powerful media metadata, like ID3 tags.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h4><?php _e( 'Advanced Date Queries' ); ?></h4>
|
<h4><?php _e( 'Semantic Markup' ); ?></h4>
|
||||||
<p><?php _e( 'Developers can now query for posts within a date range, or that are older than or newer than a specific point in time. Or get really fancy: all posts written on Friday afternoons? Not a problem.' ); ?></p>
|
<p><?php _e( 'Themes can now choose improved HTML5 markup for comment forms, search forms, and comment lists.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="last-feature">
|
<div class="last-feature">
|
||||||
<h4><?php _e( 'Multisite Improvements' ); ?></h4>
|
<h4><?php _e( 'JavaScript Utilities' ); ?></h4>
|
||||||
<p><?php _e( '<code>wp_get_sites()</code> allows developers to easily get an array of all the sites on your network without resorting to a direct database query — just one of many improvements to multisite in WordPress 3.7.' ); ?></p>
|
<p><?php _e( 'Handy JavaScript utilities ease common tasks like Ajax requests, templating, and Backbone view management.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="feature-section col three-col">
|
||||||
|
<div>
|
||||||
|
<h4><?php _e( 'Shortcode Improvements' ); ?></h4>
|
||||||
|
<p><?php _e( 'Search content for shortcodes with <code>has_shortcode()</code> and adjust shortcode attributes with a new filter.' ); ?></p>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4><?php _e( 'Revision Control' ); ?></h4>
|
||||||
|
<p><?php _e( 'Fine-grained revision controls allow you to keep a different number of revisions for each post type.' ); ?></p>
|
||||||
|
</div>
|
||||||
|
<div class="last-feature">
|
||||||
|
<h4><?php _e( 'External Libraries' ); ?></h4>
|
||||||
|
<p><?php
|
||||||
|
/* translators: placeholders 2, 3 and 4 are version numbers */
|
||||||
|
printf( __( 'New and updated libraries: <a href="%1$s">MediaElement.js</a>, jQuery %2$s, jQuery UI %3$s, jQuery Migrate, Backbone %4$s.' ), 'http://mediaelementjs.com/', '1.10.2', '1.10.3', '1.0' ); ?></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="return-to-dashboard">
|
<div class="return-to-dashboard">
|
||||||
|
|
|
@ -38,7 +38,7 @@ require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
|
||||||
send_nosniff_header();
|
send_nosniff_header();
|
||||||
nocache_headers();
|
nocache_headers();
|
||||||
|
|
||||||
/** This action is documented in wp-admin/admin.php */
|
//duplicate_hook
|
||||||
do_action( 'admin_init' );
|
do_action( 'admin_init' );
|
||||||
|
|
||||||
$core_actions_get = array(
|
$core_actions_get = array(
|
||||||
|
|
|
@ -23,7 +23,7 @@ require_once(ABSPATH . 'wp-admin/includes/admin.php');
|
||||||
|
|
||||||
nocache_headers();
|
nocache_headers();
|
||||||
|
|
||||||
/** This action is documented in wp-admin/admin.php */
|
//duplicate_hook
|
||||||
do_action( 'admin_init' );
|
do_action( 'admin_init' );
|
||||||
|
|
||||||
$action = 'admin_post';
|
$action = 'admin_post';
|
||||||
|
|
|
@ -81,7 +81,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
|
|
||||||
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
||||||
|
|
||||||
<div class="about-text"><?php printf( __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we’re okay with that.' ), $display_version ); ?></div>
|
<div class="about-text"><?php printf( __( 'Thank you for updating to the latest version. WordPress %s makes your writing experience even better.' ), $display_version ); ?></div>
|
||||||
|
|
||||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||||
|
|
||||||
|
|
|
@ -2000,6 +2000,13 @@ h2.nav-tab-wrapper, h3.nav-tab-wrapper {
|
||||||
color: #464646;
|
color: #464646;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section img {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px #ccc solid;
|
||||||
|
-webkit-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.3 );
|
||||||
|
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.3 );
|
||||||
|
}
|
||||||
|
|
||||||
.about-wrap h4.wp-people-group {
|
.about-wrap h4.wp-people-group {
|
||||||
text-shadow: 1px 1px 1px #fff;
|
text-shadow: 1px 1px 1px #fff;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1889,6 +1889,13 @@ h2.nav-tab-wrapper, h3.nav-tab-wrapper {
|
||||||
color: #464646;
|
color: #464646;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section img {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px #ccc solid;
|
||||||
|
-webkit-box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.3 );
|
||||||
|
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.3 );
|
||||||
|
}
|
||||||
|
|
||||||
.about-wrap h4.wp-people-group {
|
.about-wrap h4.wp-people-group {
|
||||||
text-shadow: 1px 1px 1px #fff;
|
text-shadow: 1px 1px 1px #fff;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -486,6 +486,20 @@ table.ie-fixed {
|
||||||
min-width: 400px;
|
min-width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.about-wrap img.element-screenshot {
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section img,
|
||||||
|
.about-wrap .feature-section .image-mask {
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.three-col img {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.available-theme {
|
.available-theme {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
@ -499,21 +513,13 @@ table.ie-fixed {
|
||||||
margin-right: 7px;
|
margin-right: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .three-col.about-updates .col-2 {
|
.about-wrap .three-col-images img {
|
||||||
width: 15%;
|
margin: 0 0.6% 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .about-password-meter input {
|
.about-wrap .three-col-images .last-feature,
|
||||||
width: 98%;
|
.about-wrap .three-col-images .first-feature {
|
||||||
}
|
float: none;
|
||||||
|
|
||||||
.revisions-tickmarks,
|
|
||||||
.revisions-tooltip {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.revisions.pinned .revisions-controls {
|
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* IE6 leftovers */
|
/* IE6 leftovers */
|
||||||
|
@ -620,3 +626,13 @@ table.ie-fixed {
|
||||||
* html #adminmenu div.wp-menu-image {
|
* html #adminmenu div.wp-menu-image {
|
||||||
height: 29px;
|
height: 29px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.revisions-tickmarks,
|
||||||
|
.revisions-tooltip {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.revisions.pinned .revisions-controls {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1706,21 +1706,38 @@ h2 .nav-tab {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section.two-col div,
|
|
||||||
.about-wrap .feature-section.three-col div {
|
.about-wrap .feature-section.three-col div {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
margin-left: 4.999999999%;
|
margin-left: 4.999999999%;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section.col .last-feature {
|
.about-wrap .feature-section.three-col h4 {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.three-col img {
|
||||||
|
margin-right: 5px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section div p img {
|
.about-wrap .feature-section.three-col .last-feature {
|
||||||
float: left;
|
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 10px;
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section img {
|
||||||
|
margin: 0 0 10px 0.7%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.images-stagger-right img,
|
||||||
|
.about-wrap .feature-section.images-stagger-right .video {
|
||||||
|
float: left;
|
||||||
|
margin: 0 2em 12px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.images-stagger-left img {
|
||||||
|
float: right;
|
||||||
|
margin: 0 5px 12px 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap li.wp-person,
|
.about-wrap li.wp-person,
|
||||||
|
@ -1730,6 +1747,25 @@ h2 .nav-tab {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 900px) {
|
||||||
|
.about-wrap .feature-section.images-stagger-right .video.image-66 {
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.about-wrap .feature-section .image-66 {
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.images-stagger-right .image-66 {
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.images-stagger-left .image-66 {
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
23.0 - Misc
|
23.0 - Misc
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2312,7 +2312,7 @@ html.wp-toolbar {
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-core-ui .welcome-panel .button.button-hero {
|
.wp-core-ui .welcome-panel .button.button-hero {
|
||||||
margin: 15px 0 3px;
|
margin: 15px 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome-panel-content {
|
.welcome-panel-content {
|
||||||
|
@ -2378,7 +2378,7 @@ html.wp-toolbar {
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome-panel .welcome-write-blog {
|
.welcome-panel .welcome-write-blog {
|
||||||
background-position: 0 -44px;
|
background-position: 0 -44px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome-panel .welcome-panel-column ul {
|
.welcome-panel .welcome-panel-column ul {
|
||||||
|
@ -2386,8 +2386,8 @@ html.wp-toolbar {
|
||||||
}
|
}
|
||||||
|
|
||||||
.welcome-panel .welcome-panel-column li {
|
.welcome-panel .welcome-panel-column li {
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 870px) {
|
@media screen and (max-width: 870px) {
|
||||||
|
@ -3162,7 +3162,7 @@ ul.category-tabs li,
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-js .category-tabs li.hide-if-no-js {
|
.no-js .category-tabs li.hide-if-no-js {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.category-tabs a,
|
.category-tabs a,
|
||||||
|
@ -5766,16 +5766,6 @@ h2 .nav-tab {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap p.about-notice {
|
|
||||||
background-color: #ffffe0;
|
|
||||||
border: 1px solid #e6db55;
|
|
||||||
margin: 5px 0 15px;
|
|
||||||
padding: 0.4em 0.8em;
|
|
||||||
border-radius: 3px;
|
|
||||||
-webkit-border-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Typography */
|
/* Typography */
|
||||||
|
|
||||||
.about-wrap p {
|
.about-wrap p {
|
||||||
|
@ -5809,8 +5799,8 @@ h2 .nav-tab {
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap h3 {
|
.about-wrap h3 {
|
||||||
font-size: 1.5em;
|
font-size: 24px;
|
||||||
line-height: 1.5em;
|
margin-bottom: 1em;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5883,18 +5873,79 @@ h2 .nav-tab {
|
||||||
|
|
||||||
/* Changelog / Update screen */
|
/* Changelog / Update screen */
|
||||||
|
|
||||||
|
.about-wrap .feature-section img,
|
||||||
|
.about-wrap .feature-section .video {
|
||||||
|
border: none;
|
||||||
|
margin: 0 1.94% 10px 0;
|
||||||
|
-webkit-border-radius: 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section .video video {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section.three-col img {
|
.about-wrap .feature-section.three-col img {
|
||||||
margin: 0.5em 0 0.5em 5px;
|
margin: 0.5em 0 0.5em 5px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ie8 .about-wrap .feature-section.three-col img {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.images-stagger-right img,
|
||||||
|
.about-wrap .feature-section.images-stagger-right .video {
|
||||||
|
float: right;
|
||||||
|
margin: 0 5px 12px 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.images-stagger-left img {
|
||||||
|
float: left;
|
||||||
|
margin: 0 2em 12px 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section .image-100 {
|
||||||
|
margin: 0 0 2em 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section .image-66 {
|
||||||
|
width: 65%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section .image-66.video {
|
||||||
|
max-width: 600px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section .image-50 {
|
||||||
|
max-width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section img.image-30 {
|
||||||
|
max-width: 31.2381%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ie8 .about-wrap .feature-section img {
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .images-stagger-right img.image-30:nth-child(2) {
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section.col {
|
.about-wrap .feature-section.col {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section.col h4 {
|
.about-wrap .feature-section.col h4 {
|
||||||
margin: 0 0 0.6em 0;
|
margin: 0 0 0.6em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.col .last-feature {
|
||||||
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section.two-col div {
|
.about-wrap .feature-section.two-col div {
|
||||||
|
@ -5909,77 +5960,64 @@ h2 .nav-tab {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .three-col.about-updates .col-1,
|
.about-wrap .three-col-images {
|
||||||
.about-wrap .three-col.about-updates .col-3 {
|
text-align: center;
|
||||||
width: 37%;
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .three-col.about-updates .col-2 {
|
.about-wrap .three-col-images img {
|
||||||
width: 16%;
|
margin: 0 0 10px;
|
||||||
margin: 0 5%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .feature-section.col .last-feature {
|
.about-wrap .three-col-images .last-feature {
|
||||||
margin-right: 0;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .three-col.about-updates img {
|
.about-wrap .three-col-images .first-feature {
|
||||||
margin: 0;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .changelog .feature-section {
|
.about-wrap .changelog .feature-section {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.about-wrap .about-passwords {
|
|
||||||
margin: 20px 0;
|
|
||||||
padding: 1px 20px 10px;
|
|
||||||
background-color: #f9f9f9;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .about-auto-update {
|
|
||||||
text-align: center;
|
|
||||||
background-color: #f9f9ef;
|
|
||||||
clear: both;
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .about-auto-update.cool {
|
|
||||||
background-color: #eff9ef;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .about-password-meter input {
|
|
||||||
font-size: 250%;
|
|
||||||
line-height: 1;
|
|
||||||
width: 100%;
|
|
||||||
display: block;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .about-password-meter #pass-strength-result {
|
|
||||||
display: block !important;
|
|
||||||
font-size: 150%;
|
|
||||||
font-weight: normal !important;
|
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 100%;
|
|
||||||
padding: 17px 0;
|
|
||||||
margin-bottom: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .feature-section div p img {
|
|
||||||
float: right;
|
|
||||||
margin-left: 10px;
|
|
||||||
max-width: 20%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-wrap .changelog li {
|
.about-wrap .changelog li {
|
||||||
list-style-type: disc;
|
list-style-type: disc;
|
||||||
margin-left: 3em;
|
margin-left: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 900px) {
|
||||||
|
.about-wrap .feature-section.images-stagger-left img,
|
||||||
|
.about-wrap .feature-section.images-stagger-right img,
|
||||||
|
.about-wrap .feature-section.images-stagger-right .video {
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section .video.image-66 {
|
||||||
|
float: none;
|
||||||
|
width: 98%;
|
||||||
|
max-width: 98%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.images-stagger-right .video.image-66 {
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.about-wrap .feature-section .image-66 {
|
||||||
|
float: none;
|
||||||
|
width: 98%;
|
||||||
|
max-width: 98%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.images-stagger-right .image-66 {
|
||||||
|
margin-left: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-wrap .feature-section.images-stagger-left .image-66 {
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Return to Dashboard Home link */
|
/* Return to Dashboard Home link */
|
||||||
|
|
||||||
|
@ -9257,20 +9295,20 @@ a.widget-control-edit {
|
||||||
(min-resolution: 120dpi) {
|
(min-resolution: 120dpi) {
|
||||||
|
|
||||||
.press-this .tagchecklist span a {
|
.press-this .tagchecklist span a {
|
||||||
background-image: url('../images/xit-2x.gif');
|
background-image: url('../images/xit-2x.gif');
|
||||||
background-size: 20px auto;
|
background-size: 20px auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.js .postbox:hover .handlediv,
|
.js .postbox:hover .handlediv,
|
||||||
.js .stuffbox:hover .handlediv,
|
.js .stuffbox:hover .handlediv,
|
||||||
.widget-top a.widget-action {
|
.widget-top a.widget-action {
|
||||||
background-image: url('../images/arrows-2x.png');
|
background-image: url('../images/arrows-2x.png');
|
||||||
background-size: 15px 123px;
|
background-size: 15px 123px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.widget-top a.widget-action:hover {
|
.widget-top a.widget-action:hover {
|
||||||
background-image: url('../images/arrows-dark-2x.png');
|
background-image: url('../images/arrows-dark-2x.png');
|
||||||
background-size: 15px 123px;
|
background-size: 15px 123px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-com-count {
|
.post-com-count {
|
||||||
|
@ -9329,8 +9367,8 @@ a.widget-control-edit {
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-full-overlay .collapse-sidebar-arrow {
|
.wp-full-overlay .collapse-sidebar-arrow {
|
||||||
background-image: url('../images/arrows-2x.png');
|
background-image: url('../images/arrows-2x.png');
|
||||||
background-size: 15px 123px;
|
background-size: 15px 123px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pressthis a span {
|
.pressthis a span {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -386,7 +386,7 @@ if ( current_theme_supports( 'custom-background', 'default-color' ) )
|
||||||
$thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' );
|
$thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' );
|
||||||
set_theme_mod('background_image_thumb', esc_url_raw( $thumbnail[0] ) );
|
set_theme_mod('background_image_thumb', esc_url_raw( $thumbnail[0] ) );
|
||||||
|
|
||||||
/** This action is documented in wp-admin/custom-header.php */
|
//duplicate_hook
|
||||||
do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication
|
do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication
|
||||||
$this->updated = true;
|
$this->updated = true;
|
||||||
}
|
}
|
||||||
|
@ -412,7 +412,7 @@ if ( current_theme_supports( 'custom-background', 'default-color' ) )
|
||||||
public function wp_set_background_image() {
|
public function wp_set_background_image() {
|
||||||
if ( ! current_user_can('edit_theme_options') || ! isset( $_POST['attachment_id'] ) ) exit;
|
if ( ! current_user_can('edit_theme_options') || ! isset( $_POST['attachment_id'] ) ) exit;
|
||||||
$attachment_id = absint($_POST['attachment_id']);
|
$attachment_id = absint($_POST['attachment_id']);
|
||||||
/** This filter is documented in wp-admin/includes/media.php */
|
//duplicate_hook
|
||||||
$sizes = array_keys(apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) ));
|
$sizes = array_keys(apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) ));
|
||||||
$size = 'thumbnail';
|
$size = 'thumbnail';
|
||||||
if ( in_array( $_POST['size'], $sizes ) )
|
if ( in_array( $_POST['size'], $sizes ) )
|
||||||
|
|
|
@ -712,7 +712,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||||
if ( ! $image || is_wp_error( $image ) )
|
if ( ! $image || is_wp_error( $image ) )
|
||||||
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
|
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
//duplicate_hook
|
||||||
$image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication
|
$image = apply_filters( 'wp_create_file_in_uploads', $image, $attachment_id ); // For replication
|
||||||
|
|
||||||
$url = str_replace(basename($url), basename($image), $url);
|
$url = str_replace(basename($url), basename($image), $url);
|
||||||
|
@ -854,7 +854,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||||
if ( ! $cropped || is_wp_error( $cropped ) )
|
if ( ! $cropped || is_wp_error( $cropped ) )
|
||||||
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
|
wp_die( __( 'Image could not be processed. Please go back and try again.' ), __( 'Image Processing Error' ) );
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
//duplicate_hook
|
||||||
$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication
|
$cropped = apply_filters( 'wp_create_file_in_uploads', $cropped, $attachment_id ); // For replication
|
||||||
|
|
||||||
$parent = get_post($attachment_id);
|
$parent = get_post($attachment_id);
|
||||||
|
@ -887,18 +887,12 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?>
|
||||||
// cleanup
|
// cleanup
|
||||||
$medium = str_replace( basename( $original ), 'midsize-' . basename( $original ), $original );
|
$medium = str_replace( basename( $original ), 'midsize-' . basename( $original ), $original );
|
||||||
if ( file_exists( $medium ) ) {
|
if ( file_exists( $medium ) ) {
|
||||||
/**
|
//duplicate_hook
|
||||||
* Filter the path of the file to delete.
|
|
||||||
*
|
|
||||||
* @since 2.1.0
|
|
||||||
*
|
|
||||||
* @param string $medium Path to the file to delete.
|
|
||||||
*/
|
|
||||||
@unlink( apply_filters( 'wp_delete_file', $medium ) );
|
@unlink( apply_filters( 'wp_delete_file', $medium ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( empty( $_POST['create-new-attachment'] ) && empty( $_POST['skip-cropping'] ) ) {
|
if ( empty( $_POST['create-new-attachment'] ) && empty( $_POST['skip-cropping'] ) ) {
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
//duplicate_hook
|
||||||
@unlink( apply_filters( 'wp_delete_file', $original ) );
|
@unlink( apply_filters( 'wp_delete_file', $original ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,6 @@ add_action( 'customize_controls_print_scripts', 'print_head_scripts', 20
|
||||||
add_action( 'customize_controls_print_footer_scripts', '_wp_footer_scripts' );
|
add_action( 'customize_controls_print_footer_scripts', '_wp_footer_scripts' );
|
||||||
add_action( 'customize_controls_print_styles', 'print_admin_styles', 20 );
|
add_action( 'customize_controls_print_styles', 'print_admin_styles', 20 );
|
||||||
|
|
||||||
/**
|
|
||||||
* Fires when Customizer controls are initialized, before scripts are enqueued.
|
|
||||||
*
|
|
||||||
* @since 3.4.0
|
|
||||||
*/
|
|
||||||
do_action( 'customize_controls_init' );
|
do_action( 'customize_controls_init' );
|
||||||
|
|
||||||
wp_enqueue_script( 'customize-controls' );
|
wp_enqueue_script( 'customize-controls' );
|
||||||
|
@ -43,11 +38,6 @@ wp_enqueue_style( 'customize-controls' );
|
||||||
|
|
||||||
wp_enqueue_script( 'accordion' );
|
wp_enqueue_script( 'accordion' );
|
||||||
|
|
||||||
/**
|
|
||||||
* Enqueue Customizer control scripts.
|
|
||||||
*
|
|
||||||
* @since 3.4.0
|
|
||||||
*/
|
|
||||||
do_action( 'customize_controls_enqueue_scripts' );
|
do_action( 'customize_controls_enqueue_scripts' );
|
||||||
|
|
||||||
// Let's roll.
|
// Let's roll.
|
||||||
|
@ -76,18 +66,7 @@ $body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '
|
||||||
$admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) );
|
$admin_title = sprintf( __( '%1$s — WordPress' ), strip_tags( sprintf( __( 'Customize %s' ), $wp_customize->theme()->display('Name') ) ) );
|
||||||
?><title><?php echo $admin_title; ?></title><?php
|
?><title><?php echo $admin_title; ?></title><?php
|
||||||
|
|
||||||
/**
|
|
||||||
* Print Customizer control styles.
|
|
||||||
*
|
|
||||||
* @since 3.4.0
|
|
||||||
*/
|
|
||||||
do_action( 'customize_controls_print_styles' );
|
do_action( 'customize_controls_print_styles' );
|
||||||
|
|
||||||
/**
|
|
||||||
* Print Customizer control scripts.
|
|
||||||
*
|
|
||||||
* @since 3.4.0
|
|
||||||
*/
|
|
||||||
do_action( 'customize_controls_print_scripts' );
|
do_action( 'customize_controls_print_scripts' );
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
|
@ -150,11 +129,6 @@ do_action( 'customize_controls_print_scripts' );
|
||||||
<div id="customize-preview" class="wp-full-overlay-main"></div>
|
<div id="customize-preview" class="wp-full-overlay-main"></div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
|
||||||
* Print Customizer control scripts in the footer.
|
|
||||||
*
|
|
||||||
* @since 3.4.0
|
|
||||||
*/
|
|
||||||
do_action( 'customize_controls_print_footer_scripts' );
|
do_action( 'customize_controls_print_footer_scripts' );
|
||||||
|
|
||||||
// If the frontend and the admin are served from the same domain, load the
|
// If the frontend and the admin are served from the same domain, load the
|
||||||
|
@ -172,13 +146,6 @@ do_action( 'customize_controls_print_scripts' );
|
||||||
if ( is_ssl() && ! $cross_domain )
|
if ( is_ssl() && ! $cross_domain )
|
||||||
$allowed_urls[] = home_url( '/', 'https' );
|
$allowed_urls[] = home_url( '/', 'https' );
|
||||||
|
|
||||||
/**
|
|
||||||
* Filter the list of URLs allowed to be clicked and followed in the Customizer preview.
|
|
||||||
*
|
|
||||||
* @since 3.4.0
|
|
||||||
*
|
|
||||||
* @param array $allowed_urls An array of allowed URLs.
|
|
||||||
*/
|
|
||||||
$allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) );
|
$allowed_urls = array_unique( apply_filters( 'customize_allowed_urls', $allowed_urls ) );
|
||||||
|
|
||||||
$fallback_url = add_query_arg( array(
|
$fallback_url = add_query_arg( array(
|
||||||
|
|
|
@ -239,9 +239,9 @@ do_action( 'add_meta_boxes_' . $post_type, $post );
|
||||||
* @param WP_Post $post Post object.
|
* @param WP_Post $post Post object.
|
||||||
*/
|
*/
|
||||||
do_action( 'do_meta_boxes', $post_type, 'normal', $post );
|
do_action( 'do_meta_boxes', $post_type, 'normal', $post );
|
||||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
//duplicate_hook
|
||||||
do_action( 'do_meta_boxes', $post_type, 'advanced', $post );
|
do_action( 'do_meta_boxes', $post_type, 'advanced', $post );
|
||||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
//duplicate_hook
|
||||||
do_action( 'do_meta_boxes', $post_type, 'side', $post );
|
do_action( 'do_meta_boxes', $post_type, 'side', $post );
|
||||||
|
|
||||||
add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
|
add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
|
||||||
|
|
|
@ -33,11 +33,8 @@ add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', null,
|
||||||
do_action('add_meta_boxes', 'link', $link);
|
do_action('add_meta_boxes', 'link', $link);
|
||||||
do_action('add_meta_boxes_link', $link);
|
do_action('add_meta_boxes_link', $link);
|
||||||
|
|
||||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
|
||||||
do_action('do_meta_boxes', 'link', 'normal', $link);
|
do_action('do_meta_boxes', 'link', 'normal', $link);
|
||||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
|
||||||
do_action('do_meta_boxes', 'link', 'advanced', $link);
|
do_action('do_meta_boxes', 'link', 'advanced', $link);
|
||||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
|
||||||
do_action('do_meta_boxes', 'link', 'side', $link);
|
do_action('do_meta_boxes', 'link', 'side', $link);
|
||||||
|
|
||||||
add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
|
add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
|
||||||
|
|
|
@ -19,7 +19,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
|
|
||||||
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
<h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1>
|
||||||
|
|
||||||
<div class="about-text"><?php printf( __( 'Thank you for updating to WordPress 3.7! You might not notice a thing, and we’re okay with that.' ), $display_version ); ?></div>
|
<div class="about-text"><?php printf( __( 'Thank you for updating to the latest version. WordPress %s makes your writing experience even better.' ), $display_version ); ?></div>
|
||||||
|
|
||||||
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
|
||||||
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 10 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB |
|
@ -190,7 +190,7 @@ function wp_ajax_autocomplete_user() {
|
||||||
if ( ! is_multisite() || ! current_user_can( 'promote_users' ) || wp_is_large_network( 'users' ) )
|
if ( ! is_multisite() || ! current_user_can( 'promote_users' ) || wp_is_large_network( 'users' ) )
|
||||||
wp_die( -1 );
|
wp_die( -1 );
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/user-new.php */
|
//duplicate_hook
|
||||||
if ( ! is_super_admin() && ! apply_filters( 'autocomplete_users_for_site_admins', false ) )
|
if ( ! is_super_admin() && ! apply_filters( 'autocomplete_users_for_site_admins', false ) )
|
||||||
wp_die( -1 );
|
wp_die( -1 );
|
||||||
|
|
||||||
|
@ -2002,7 +2002,7 @@ function wp_ajax_save_attachment_compat() {
|
||||||
if ( 'attachment' != $post['post_type'] )
|
if ( 'attachment' != $post['post_type'] )
|
||||||
wp_send_json_error();
|
wp_send_json_error();
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/includes/media.php */
|
//duplicate_hook
|
||||||
$post = apply_filters( 'attachment_fields_to_save', $post, $attachment_data );
|
$post = apply_filters( 'attachment_fields_to_save', $post, $attachment_data );
|
||||||
|
|
||||||
if ( isset( $post['errors'] ) ) {
|
if ( isset( $post['errors'] ) ) {
|
||||||
|
@ -2105,7 +2105,7 @@ function wp_ajax_send_attachment_to_editor() {
|
||||||
$html = stripslashes_deep( $_POST['html'] );
|
$html = stripslashes_deep( $_POST['html'] );
|
||||||
}
|
}
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/includes/media.php */
|
//duplicate_hook
|
||||||
$html = apply_filters( 'media_send_to_editor', $html, $id, $attachment );
|
$html = apply_filters( 'media_send_to_editor', $html, $id, $attachment );
|
||||||
|
|
||||||
wp_send_json_success( $html );
|
wp_send_json_success( $html );
|
||||||
|
@ -2146,7 +2146,7 @@ function wp_ajax_send_link_to_editor() {
|
||||||
&& ( 'audio' == $ext_type || 'video' == $ext_type ) )
|
&& ( 'audio' == $ext_type || 'video' == $ext_type ) )
|
||||||
$type = $ext_type;
|
$type = $ext_type;
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/includes/media.php */
|
//duplicate_hook
|
||||||
$html = apply_filters( $type . '_send_to_editor_url', $html, $src, $title );
|
$html = apply_filters( $type . '_send_to_editor_url', $html, $src, $title );
|
||||||
|
|
||||||
wp_send_json_success( $html );
|
wp_send_json_success( $html );
|
||||||
|
|
|
@ -540,10 +540,8 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
$level++;
|
$level++;
|
||||||
$find_main_page = (int) $parent->post_parent;
|
$find_main_page = (int) $parent->post_parent;
|
||||||
|
|
||||||
if ( !isset( $parent_name ) ) {
|
if ( !isset( $parent_name ) )
|
||||||
/** This filter is documented in wp-includes/post-template.php */
|
|
||||||
$parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID );
|
$parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -591,7 +591,7 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
*/
|
*/
|
||||||
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
|
class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
protected $messages = array();
|
private $messages = array();
|
||||||
|
|
||||||
function request_filesystem_credentials( $error = false, $context = '' ) {
|
function request_filesystem_credentials( $error = false, $context = '' ) {
|
||||||
if ( $context )
|
if ( $context )
|
||||||
|
@ -599,6 +599,7 @@ class Automatic_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
// TODO: fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version
|
// TODO: fix up request_filesystem_credentials(), or split it, to allow us to request a no-output version
|
||||||
// This will output a credentials form in event of failure, We don't want that, so just hide with a buffer
|
// This will output a credentials form in event of failure, We don't want that, so just hide with a buffer
|
||||||
ob_start();
|
ob_start();
|
||||||
|
set_current_screen( 'tools' ); // Only here to avoid PHP Notices from screen_icon() which is used within that HTML
|
||||||
$result = parent::request_filesystem_credentials( $error );
|
$result = parent::request_filesystem_credentials( $error );
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
return $result;
|
return $result;
|
||||||
|
|
|
@ -1097,14 +1097,6 @@ class Theme_Upgrader extends WP_Upgrader {
|
||||||
}
|
}
|
||||||
|
|
||||||
add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
|
add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
|
||||||
|
|
||||||
/**
|
|
||||||
* Language pack upgrader, for updating translations of plugins, themes, and core.
|
|
||||||
*
|
|
||||||
* @package WordPress
|
|
||||||
* @subpackage Upgrader
|
|
||||||
* @since 3.7.0
|
|
||||||
*/
|
|
||||||
class Language_Pack_Upgrader extends WP_Upgrader {
|
class Language_Pack_Upgrader extends WP_Upgrader {
|
||||||
|
|
||||||
var $result;
|
var $result;
|
||||||
|
@ -1316,8 +1308,6 @@ class Core_Upgrader extends WP_Upgrader {
|
||||||
function upgrade( $current, $args = array() ) {
|
function upgrade( $current, $args = array() ) {
|
||||||
global $wp_filesystem, $wp_version;
|
global $wp_filesystem, $wp_version;
|
||||||
|
|
||||||
$start_time = time();
|
|
||||||
|
|
||||||
$defaults = array(
|
$defaults = array(
|
||||||
'pre_check_md5' => true,
|
'pre_check_md5' => true,
|
||||||
'attempt_rollback' => false,
|
'attempt_rollback' => false,
|
||||||
|
@ -1371,7 +1361,7 @@ class Core_Upgrader extends WP_Upgrader {
|
||||||
// Copy update-core.php from the new version into place.
|
// Copy update-core.php from the new version into place.
|
||||||
if ( !$wp_filesystem->copy($working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true) ) {
|
if ( !$wp_filesystem->copy($working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true) ) {
|
||||||
$wp_filesystem->delete($working_dir, true);
|
$wp_filesystem->delete($working_dir, true);
|
||||||
return new WP_Error( 'copy_failed_for_update_core_file', __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ), 'wp-admin/includes/update-core.php' );
|
return new WP_Error( 'copy_failed_for_update_core_file', $this->strings['copy_failed'] );
|
||||||
}
|
}
|
||||||
$wp_filesystem->chmod($wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE);
|
$wp_filesystem->chmod($wp_dir . 'wp-admin/includes/update-core.php', FS_CHMOD_FILE);
|
||||||
|
|
||||||
|
@ -1404,52 +1394,15 @@ class Core_Upgrader extends WP_Upgrader {
|
||||||
|
|
||||||
$rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) );
|
$rollback_result = $this->upgrade( $current, array_merge( $parsed_args, array( 'do_rollback' => true ) ) );
|
||||||
|
|
||||||
$original_result = $result;
|
$result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], array( 'rollback' => $rollback_result, 'update' => $result ) );
|
||||||
$result = new WP_Error( 'rollback_was_required', $this->strings['rollback_was_required'], (object) array( 'update' => $original_result, 'rollback' => $rollback_result ) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'core' ) );
|
|
||||||
|
|
||||||
// Clear the current updates
|
|
||||||
delete_site_transient( 'update_core' );
|
|
||||||
|
|
||||||
if ( ! $parsed_args['do_rollback'] ) {
|
|
||||||
$stats = array(
|
|
||||||
'update_type' => $current->response,
|
|
||||||
'success' => true,
|
|
||||||
'fs_method' => $wp_filesystem->method,
|
|
||||||
'fs_method_forced' => defined( 'FS_METHOD' ) || has_filter( 'filesystem_method' ),
|
|
||||||
'time_taken' => time() - $start_time,
|
|
||||||
'attempted' => $current->version,
|
|
||||||
);
|
|
||||||
|
|
||||||
if ( is_wp_error( $result ) ) {
|
|
||||||
$stats['success'] = false;
|
|
||||||
// Did a rollback occur?
|
|
||||||
if ( ! empty( $try_rollback ) ) {
|
|
||||||
$stats['error_code'] = $original_result->get_error_code();
|
|
||||||
$stats['error_data'] = $original_result->get_error_data();
|
|
||||||
// Was the rollback successful? If not, collect its error too.
|
|
||||||
$stats['rollback'] = ! is_wp_error( $rollback_result );
|
|
||||||
if ( is_wp_error( $rollback_result ) ) {
|
|
||||||
$stats['rollback_code'] = $rollback_result->get_error_code();
|
|
||||||
$stats['rollback_data'] = $rollback_result->get_error_data();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$stats['error_code'] = $result->get_error_code();
|
|
||||||
$stats['error_data'] = $result->get_error_data();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
wp_version_check( $stats );
|
|
||||||
}
|
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determines if this WordPress Core version should update to $offered_ver or not
|
// Determines if this WordPress Core version should update to $offered_ver or not
|
||||||
static function should_update_to_version( $offered_ver /* x.y.z */ ) {
|
static function should_upgrade_to_version( $offered_ver /* x.y.z */ ) {
|
||||||
include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
|
include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
|
||||||
|
|
||||||
$current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y
|
$current_branch = implode( '.', array_slice( preg_split( '/[.-]/', $wp_version ), 0, 2 ) ); // x.y
|
||||||
|
@ -1484,23 +1437,6 @@ class Core_Upgrader extends WP_Upgrader {
|
||||||
if ( version_compare( $wp_version, $offered_ver, '>' ) )
|
if ( version_compare( $wp_version, $offered_ver, '>' ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
$failure_data = get_site_option( 'auto_core_update_failed' );
|
|
||||||
if ( $failure_data ) {
|
|
||||||
// If this was a critical update failure, cannot update.
|
|
||||||
if ( ! empty( $failure_data['critical'] ) )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Don't claim we can update on update-core.php if we have a non-critical failure logged.
|
|
||||||
if ( $wp_version == $failure_data['current'] && false !== strpos( $offered_ver, '.1.next.minor' ) )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// Cannot update if we're retrying the same A to B update that caused a non-critical failure.
|
|
||||||
// Some non-critical failures do allow retries, like download_failed.
|
|
||||||
// 3.7.1 => 3.7.2 resulted in files_not_writable, if we are still on 3.7.1 and still trying to update to 3.7.2.
|
|
||||||
if ( empty( $failure_data['retry'] ) && $wp_version == $failure_data['current'] && $offered_ver == $failure_data['attempted'] )
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 3: 3.7-alpha-25000 -> 3.7-alpha-25678 -> 3.7-beta1 -> 3.7-beta2
|
// 3: 3.7-alpha-25000 -> 3.7-alpha-25678 -> 3.7-beta1 -> 3.7-beta2
|
||||||
if ( $current_is_development_version ) {
|
if ( $current_is_development_version ) {
|
||||||
if ( ! apply_filters( 'allow_dev_auto_core_updates', $upgrade_dev ) )
|
if ( ! apply_filters( 'allow_dev_auto_core_updates', $upgrade_dev ) )
|
||||||
|
@ -1615,27 +1551,15 @@ class File_Upload_Upgrader {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The WordPress automatic background updater.
|
* WordPress automatic background upgrader.
|
||||||
*
|
*
|
||||||
* @package WordPress
|
|
||||||
* @subpackage Upgrader
|
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
*/
|
*/
|
||||||
class WP_Automatic_Updater {
|
class WP_Automatic_Upgrader {
|
||||||
|
|
||||||
/**
|
|
||||||
* Tracks update results during processing.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected $update_results = array();
|
protected $update_results = array();
|
||||||
|
|
||||||
/**
|
function is_disabled() {
|
||||||
* Whether the entire automatic updater is disabled.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*/
|
|
||||||
public function is_disabled() {
|
|
||||||
// Background updates are disabled if you don't want file changes.
|
// Background updates are disabled if you don't want file changes.
|
||||||
if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS )
|
if ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS )
|
||||||
return true;
|
return true;
|
||||||
|
@ -1644,39 +1568,15 @@ class WP_Automatic_Updater {
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// More fine grained control can be done through the WP_AUTO_UPDATE_CORE constant and filters.
|
// More fine grained control can be done through the WP_AUTO_UPDATE_CORE constant and filters.
|
||||||
$disabled = defined( 'AUTOMATIC_UPDATER_DISABLED' ) && AUTOMATIC_UPDATER_DISABLED;
|
$disabled = defined( 'AUTOMATIC_UPDATES_DISABLED' ) && AUTOMATIC_UPDATES_DISABLED;
|
||||||
|
|
||||||
/**
|
return apply_filters( 'auto_upgrader_disabled', $disabled );
|
||||||
* Filter whether to entirely disable background updates.
|
|
||||||
*
|
|
||||||
* There are more fine-grained filters and controls for selective disabling.
|
|
||||||
* This filter parallels the AUTOMATIC_UPDATER_DISABLED constant in name.
|
|
||||||
*
|
|
||||||
* This also disables update notification emails. That may change in the future.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
* @param bool $disabled Whether the updater should be disabled.
|
|
||||||
*/
|
|
||||||
return apply_filters( 'automatic_updater_disabled', $disabled );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check for version control checkouts.
|
* Check for GIT/SVN checkouts.
|
||||||
*
|
|
||||||
* Checks for Subversion, Git, Mercurial, and Bazaar. It recursively looks up the
|
|
||||||
* filesystem to the top of the drive, erring on the side of detecting a VCS
|
|
||||||
* checkout somewhere.
|
|
||||||
*
|
|
||||||
* ABSPATH is always checked in addition to whatever $context is (which may be the
|
|
||||||
* wp-content directory, for example). The underlying assumption is that if you are
|
|
||||||
* using version control *anywhere*, then you should be making decisions for
|
|
||||||
* how things get updated.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param string $context The filesystem path to check, in addition to ABSPATH.
|
|
||||||
*/
|
*/
|
||||||
public function is_vcs_checkout( $context ) {
|
function is_vcs_checkout( $context ) {
|
||||||
$context_dirs = array( untrailingslashit( $context ) );
|
$context_dirs = array( untrailingslashit( $context ) );
|
||||||
if ( $context !== ABSPATH )
|
if ( $context !== ABSPATH )
|
||||||
$context_dirs[] = untrailingslashit( ABSPATH );
|
$context_dirs[] = untrailingslashit( ABSPATH );
|
||||||
|
@ -1688,13 +1588,7 @@ class WP_Automatic_Updater {
|
||||||
// Walk up from $context_dir to the root.
|
// Walk up from $context_dir to the root.
|
||||||
do {
|
do {
|
||||||
$check_dirs[] = $context_dir;
|
$check_dirs[] = $context_dir;
|
||||||
|
} while ( $context_dir != dirname( $context_dir ) && $context_dir = dirname( $context_dir ) );
|
||||||
// Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here.
|
|
||||||
if ( $context_dir == dirname( $context_dir ) )
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Continue one level at a time.
|
|
||||||
} while ( $context_dir = dirname( $context_dir ) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$check_dirs = array_unique( $check_dirs );
|
$check_dirs = array_unique( $check_dirs );
|
||||||
|
@ -1706,73 +1600,43 @@ class WP_Automatic_Updater {
|
||||||
break 2;
|
break 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return apply_filters( 'auto_upgrade_is_vcs_checkout', $checkout, $context );
|
||||||
/**
|
|
||||||
* Filter whether the automatic updater should consider a filesystem location to be potentially
|
|
||||||
* managed by a version control system.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param bool $checkout Whether a VCS checkout was discovered at $context or ABSPATH, or anywhere higher.
|
|
||||||
* @param string $context The filesystem context (a path) against which filesystem status should be checked.
|
|
||||||
*/
|
|
||||||
return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests to see if we can and should update a specific item.
|
* Tests to see if we can and should upgrade a specific item.
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'.
|
|
||||||
* @param object $item The update offer.
|
|
||||||
* @param string $context The filesystem context (a path) against which filesystem access and status
|
|
||||||
* should be checked.
|
|
||||||
*/
|
*/
|
||||||
public function should_update( $type, $item, $context ) {
|
function should_upgrade( $type, $item, $context ) {
|
||||||
// Used to see if WP_Filesystem is set up to allow unattended updates.
|
|
||||||
$skin = new Automatic_Upgrader_Skin;
|
|
||||||
|
|
||||||
if ( $this->is_disabled() )
|
if ( $this->is_disabled() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// If we can't do an auto core update, we may still be able to email the user.
|
// Checks to see if WP_Filesystem is set up to allow unattended upgrades.
|
||||||
if ( ! $skin->request_filesystem_credentials( false, $context ) || $this->is_vcs_checkout( $context ) ) {
|
$skin = new Automatic_Upgrader_Skin;
|
||||||
if ( 'core' == $type )
|
if ( ! $skin->request_filesystem_credentials( false, $context ) )
|
||||||
$this->send_core_update_notification_email( $item );
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if ( $this->is_vcs_checkout( $context ) )
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// Next up, do we actually have it enabled for this type of update?
|
||||||
|
switch ( $type ) {
|
||||||
|
case 'language':
|
||||||
|
$upgrade = ! empty( $item->autoupdate );
|
||||||
|
break;
|
||||||
|
case 'core':
|
||||||
|
$upgrade = Core_Upgrader::should_upgrade_to_version( $item->current );
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
case 'plugin':
|
||||||
|
case 'theme':
|
||||||
|
$upgrade = false;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next up, is this an item we can update?
|
// And does the user / plugins want it?
|
||||||
if ( 'core' == $type )
|
// Plugins may filter on 'auto_upgrade_plugin', and check the 2nd param, $item, to only enable it for certain Plugins/Themes
|
||||||
$update = Core_Upgrader::should_update_to_version( $item->current );
|
if ( ! apply_filters( 'auto_upgrade_' . $type, $upgrade, $item ) )
|
||||||
else
|
|
||||||
$update = ! empty( $item->autoupdate );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Filter whether to automatically update core, a plugin, a theme, or a language.
|
|
||||||
*
|
|
||||||
* The dynamic portion of the hook name, $type, refers to the type of update
|
|
||||||
* being checked. Can be 'core', 'theme', 'plugin', or 'translation'.
|
|
||||||
*
|
|
||||||
* Generally speaking, plugins, themes, and major core versions are not updated by default,
|
|
||||||
* while translations and minor and development versions for core are updated by default.
|
|
||||||
*
|
|
||||||
* See the filters allow_dev_auto_core_updates, allow_minor_auto_core_updates, and
|
|
||||||
* allow_major_auto_core_updates more straightforward filters to adjust core updates.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param bool $update Whether to update.
|
|
||||||
* @param object $item The update offer.
|
|
||||||
*/
|
|
||||||
$update = apply_filters( 'auto_update_' . $type, $update, $item );
|
|
||||||
|
|
||||||
if ( ! $update ) {
|
|
||||||
if ( 'core' == $type )
|
|
||||||
$this->send_core_update_notification_email( $item );
|
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
// If it's a core update, are we actually compatible with its requirements?
|
// If it's a core update, are we actually compatible with its requirements?
|
||||||
if ( 'core' == $type ) {
|
if ( 'core' == $type ) {
|
||||||
|
@ -1791,61 +1655,13 @@ class WP_Automatic_Updater {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
function upgrade( $type, $item ) {
|
||||||
* Notifies an administrator of a core update.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param object $item The update offer.
|
|
||||||
*/
|
|
||||||
protected function send_core_update_notification_email( $item ) {
|
|
||||||
$notify = true;
|
|
||||||
$notified = get_site_option( 'auto_core_update_notified' );
|
|
||||||
|
|
||||||
// Don't notify if we've already notified the same email address of the same version.
|
$skin = new Automatic_Upgrader_Skin();
|
||||||
if ( $notified && $notified['email'] == get_site_option( 'admin_email' ) && $notified['version'] == $item->current )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// See if we need to notify users of a core update.
|
|
||||||
$notify = ! empty( $item->notify_email );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether to notify the site administrator of a new core update.
|
|
||||||
*
|
|
||||||
* By default, administrators are notified when the update offer received from WordPress.org
|
|
||||||
* sets a particular flag. This allows for discretion in if and when to notify.
|
|
||||||
*
|
|
||||||
* This filter only fires once per release -- if the same email address was already
|
|
||||||
* notified of the same new version, we won't repeatedly email the administrator.
|
|
||||||
*
|
|
||||||
* This filter is also used on about.php to check if a plugin has disabled these notifications.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param bool $notify Whether the site administrator is notified.
|
|
||||||
* @param object $item The update offer.
|
|
||||||
*/
|
|
||||||
if ( ! apply_filters( 'send_core_update_notification_email', $notify, $item ) )
|
|
||||||
return false;
|
|
||||||
|
|
||||||
$this->send_email( 'manual', $item );
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Update an item, if appropriate.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param string $type The type of update being checked: 'core', 'theme', 'plugin', 'translation'.
|
|
||||||
* @param object $item The update offer.
|
|
||||||
*/
|
|
||||||
public function update( $type, $item ) {
|
|
||||||
$skin = new Automatic_Upgrader_Skin;
|
|
||||||
|
|
||||||
switch ( $type ) {
|
switch ( $type ) {
|
||||||
case 'core':
|
case 'core':
|
||||||
// The Core upgrader doesn't use the Upgrader's skin during the actual main part of the upgrade, instead, firing a filter.
|
// The Core upgrader doesn't use the Upgrader's skin during the actual main part of the upgrade, instead, firing a filter
|
||||||
add_filter( 'update_feedback', array( $skin, 'feedback' ) );
|
add_filter( 'update_feedback', array( $skin, 'feedback' ) );
|
||||||
$upgrader = new Core_Upgrader( $skin );
|
$upgrader = new Core_Upgrader( $skin );
|
||||||
$context = ABSPATH;
|
$context = ABSPATH;
|
||||||
|
@ -1858,14 +1674,14 @@ class WP_Automatic_Updater {
|
||||||
$upgrader = new Theme_Upgrader( $skin );
|
$upgrader = new Theme_Upgrader( $skin );
|
||||||
$context = get_theme_root( $item );
|
$context = get_theme_root( $item );
|
||||||
break;
|
break;
|
||||||
case 'translation':
|
case 'language':
|
||||||
$upgrader = new Language_Pack_Upgrader( $skin );
|
$upgrader = new Language_Pack_Upgrader( $skin );
|
||||||
$context = WP_CONTENT_DIR; // WP_LANG_DIR;
|
$context = WP_CONTENT_DIR; // WP_LANG_DIR;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Determine whether we can and should perform this update.
|
// Determine whether we can and should perform this upgrade.
|
||||||
if ( ! $this->should_update( $type, $item, $context ) )
|
if ( ! $this->should_upgrade( $type, $item, $context ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
switch ( $type ) {
|
switch ( $type ) {
|
||||||
|
@ -1883,7 +1699,7 @@ class WP_Automatic_Updater {
|
||||||
$item_name = $plugin_data['Name'];
|
$item_name = $plugin_data['Name'];
|
||||||
$skin->feedback( __( 'Updating plugin: %s' ), $item_name );
|
$skin->feedback( __( 'Updating plugin: %s' ), $item_name );
|
||||||
break;
|
break;
|
||||||
case 'translation':
|
case 'language':
|
||||||
$language_item_name = $upgrader->get_name_for_update( $item );
|
$language_item_name = $upgrader->get_name_for_update( $item );
|
||||||
$item_name = sprintf( __( 'Translations for %s' ), $language_item_name );
|
$item_name = sprintf( __( 'Translations for %s' ), $language_item_name );
|
||||||
$skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) );
|
$skin->feedback( sprintf( __( 'Updating translations for %1$s (%2$s)…' ), $language_item_name, $item->language ) );
|
||||||
|
@ -1917,38 +1733,20 @@ class WP_Automatic_Updater {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Kicks off the background update process, looping through all pending updates.
|
* Kicks off a upgrade request for each item in the upgrade "queue"
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*/
|
*/
|
||||||
public function run() {
|
function run() {
|
||||||
global $wpdb, $wp_version;
|
$lock_name = 'auto_upgrader.lock';
|
||||||
|
if ( get_site_option( $lock_name ) ) {
|
||||||
if ( $this->is_disabled() )
|
// Test to see if it was set more than an hour ago, if so, cleanup.
|
||||||
return;
|
if ( get_site_option( $lock_name ) < ( time() - HOUR_IN_SECONDS ) )
|
||||||
|
delete_site_option( $lock_name );
|
||||||
if ( ! is_main_network() || ! is_main_site() )
|
else // The process is already locked
|
||||||
return;
|
|
||||||
|
|
||||||
$lock_name = 'auto_updater.lock';
|
|
||||||
|
|
||||||
// Try to lock
|
|
||||||
$lock_result = $wpdb->query( $wpdb->prepare( "INSERT IGNORE INTO `$wpdb->options` ( `option_name`, `option_value`, `autoload` ) VALUES (%s, %s, 'no') /* LOCK */", $lock_name, time() ) );
|
|
||||||
|
|
||||||
if ( ! $lock_result ) {
|
|
||||||
$lock_result = get_option( $lock_name );
|
|
||||||
|
|
||||||
// If we couldn't create a lock, and there isn't a lock, bail
|
|
||||||
if ( ! $lock_result )
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Check to see if the lock is still valid
|
|
||||||
if ( $lock_result > ( time() - HOUR_IN_SECONDS ) )
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Lock upgrades for us for half an hour
|
||||||
// Update the lock, as by this point we've definately got a lock, just need to fire the actions
|
if ( ! add_site_option( $lock_name, microtime( true ), HOUR_IN_SECONDS / 2 ) )
|
||||||
update_option( $lock_name, time() );
|
return;
|
||||||
|
|
||||||
// Don't automatically run these thins, as we'll handle it ourselves
|
// Don't automatically run these thins, as we'll handle it ourselves
|
||||||
remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
|
remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
|
||||||
|
@ -1961,7 +1759,7 @@ class WP_Automatic_Updater {
|
||||||
$plugin_updates = get_site_transient( 'update_plugins' );
|
$plugin_updates = get_site_transient( 'update_plugins' );
|
||||||
if ( $plugin_updates && !empty( $plugin_updates->response ) ) {
|
if ( $plugin_updates && !empty( $plugin_updates->response ) ) {
|
||||||
foreach ( array_keys( $plugin_updates->response ) as $plugin ) {
|
foreach ( array_keys( $plugin_updates->response ) as $plugin ) {
|
||||||
$this->update( 'plugin', $plugin );
|
$this->upgrade( 'plugin', $plugin );
|
||||||
}
|
}
|
||||||
// Force refresh of plugin update information
|
// Force refresh of plugin update information
|
||||||
wp_clean_plugins_cache();
|
wp_clean_plugins_cache();
|
||||||
|
@ -1972,21 +1770,42 @@ class WP_Automatic_Updater {
|
||||||
$theme_updates = get_site_transient( 'update_themes' );
|
$theme_updates = get_site_transient( 'update_themes' );
|
||||||
if ( $theme_updates && !empty( $theme_updates->response ) ) {
|
if ( $theme_updates && !empty( $theme_updates->response ) ) {
|
||||||
foreach ( array_keys( $theme_updates->response ) as $theme ) {
|
foreach ( array_keys( $theme_updates->response ) as $theme ) {
|
||||||
$this->update( 'theme', $theme );
|
$this->upgrade( 'theme', $theme );
|
||||||
}
|
}
|
||||||
// Force refresh of theme update information
|
// Force refresh of theme update information
|
||||||
wp_clean_themes_cache();
|
wp_clean_themes_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next, Process any core update
|
// Next, Process any core upgrade
|
||||||
wp_version_check(); // Check for Core updates
|
wp_version_check(); // Check for Core updates
|
||||||
|
$extra_update_stats = array();
|
||||||
$core_update = find_core_auto_update();
|
$core_update = find_core_auto_update();
|
||||||
|
|
||||||
if ( $core_update )
|
if ( $core_update ) {
|
||||||
$this->update( 'core', $core_update );
|
$start_time = time();
|
||||||
|
|
||||||
// Clean up, and check for any pending translations
|
$core_update_result = $this->upgrade( 'core', $core_update );
|
||||||
// (Core_Upgrader checks for core updates)
|
delete_site_transient( 'update_core' );
|
||||||
|
|
||||||
|
$extra_update_stats['success'] = is_wp_error( $core_update_result ) ? $core_update_result->get_error_code() : true;
|
||||||
|
$extra_update_stats['error_data'] = is_wp_error( $core_update_result ) ? $core_update_result->get_error_data() : '';
|
||||||
|
|
||||||
|
if ( is_wp_error( $core_update_result ) && 'rollback_was_required' == $core_update_result->get_error_code() ) {
|
||||||
|
$rollback_data = $core_update_result->get_error_data();
|
||||||
|
$extra_update_stats['success'] = is_wp_error( $rollback_data['update'] ) ? $rollback_data['update']->get_error_code() : $rollback_data['update'];
|
||||||
|
$extra_update_stats['error_data'] = is_wp_error( $rollback_data['update'] ) ? $rollback_data['update']->get_error_data() : '';
|
||||||
|
$extra_update_stats['rollback'] = is_wp_error( $rollback_data['rollback'] ) ? $rollback_data['rollback']->get_error_code() : true; // If it's not a WP_Error, the rollback was successful.
|
||||||
|
$extra_update_stats['rollback_data'] = is_wp_error( $rollback_data['rollback'] ) ? $rollback_data['rollback']->get_error_data() : '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$extra_update_stats['fs_method'] = $GLOBALS['wp_filesystem']->method;
|
||||||
|
$extra_update_stats['fs_method_forced'] = defined( 'FS_METHOD' ) || has_filter( 'filesystem_method' );
|
||||||
|
$extra_update_stats['time_taken'] = ( time() - $start_time );
|
||||||
|
$extra_update_stats['attempted'] = $core_update->version;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cleanup, and check for any pending translations
|
||||||
|
wp_version_check( $extra_update_stats ); // check for Core updates
|
||||||
wp_update_themes(); // Check for Theme updates
|
wp_update_themes(); // Check for Theme updates
|
||||||
wp_update_plugins(); // Check for Plugin updates
|
wp_update_plugins(); // Check for Plugin updates
|
||||||
|
|
||||||
|
@ -1994,7 +1813,7 @@ class WP_Automatic_Updater {
|
||||||
$language_updates = wp_get_translation_updates();
|
$language_updates = wp_get_translation_updates();
|
||||||
if ( $language_updates ) {
|
if ( $language_updates ) {
|
||||||
foreach ( $language_updates as $update ) {
|
foreach ( $language_updates as $update ) {
|
||||||
$this->update( 'translation', $update );
|
$this->upgrade( 'language', $update );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear existing caches
|
// Clear existing caches
|
||||||
|
@ -2007,304 +1826,21 @@ class WP_Automatic_Updater {
|
||||||
wp_update_plugins(); // Check for Plugin updates
|
wp_update_plugins(); // Check for Plugin updates
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send debugging email to all development installs.
|
$this->send_debug_email();
|
||||||
if ( ! empty( $this->update_results ) ) {
|
|
||||||
$development_version = false !== strpos( $wp_version, '-' );
|
|
||||||
/**
|
|
||||||
* Filter whether to send a debugging email for each automatic background update.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
* @param bool $development_version By default, emails are sent if the install is a development version.
|
|
||||||
* Return false to avoid the email.
|
|
||||||
*/
|
|
||||||
if ( apply_filters( 'automatic_updates_send_debug_email', $development_version ) )
|
|
||||||
$this->send_debug_email();
|
|
||||||
|
|
||||||
if ( ! empty( $this->update_results['core'] ) )
|
|
||||||
$this->after_core_update( $this->update_results['core'][0] );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Clear the lock
|
// Clear the lock
|
||||||
delete_option( $lock_name );
|
delete_site_option( $lock_name );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
function send_debug_email() {
|
||||||
* If we tried to perform a core update, check if we should send an email,
|
|
||||||
* and if we need to avoid processing future updates.
|
|
||||||
*
|
|
||||||
* @param object $update_result The result of the core update. Includes the update offer and result.
|
|
||||||
*/
|
|
||||||
protected function after_core_update( $update_result ) {
|
|
||||||
global $wp_version;
|
|
||||||
|
|
||||||
$core_update = $update_result->item;
|
if ( empty( $this->update_results ) )
|
||||||
$result = $update_result->result;
|
|
||||||
|
|
||||||
if ( ! is_wp_error( $result ) ) {
|
|
||||||
$this->send_email( 'success', $core_update );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$error_code = $result->get_error_code();
|
|
||||||
|
|
||||||
// Any of these WP_Error codes are critical failures, as in they occurred after we started to copy core files.
|
|
||||||
// We should not try to perform a background update again until there is a successful one-click update performed by the user.
|
|
||||||
$critical = false;
|
|
||||||
if ( $error_code === 'disk_full' || false !== strpos( $error_code, '__copy_dir' ) ) {
|
|
||||||
$critical = true;
|
|
||||||
} elseif ( $error_code === 'rollback_was_required' && is_wp_error( $result->get_error_data()->rollback ) ) {
|
|
||||||
// A rollback is only critical if it failed too.
|
|
||||||
$critical = true;
|
|
||||||
$rollback_result = $result->get_error_data()->rollback;
|
|
||||||
} elseif ( false !== strpos( $error_code, 'do_rollback' ) ) {
|
|
||||||
$critical = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $critical ) {
|
|
||||||
$critical_data = array(
|
|
||||||
'attempted' => $core_update->current,
|
|
||||||
'current' => $wp_version,
|
|
||||||
'error_code' => $error_code,
|
|
||||||
'error_data' => $result->get_error_data(),
|
|
||||||
'timestamp' => time(),
|
|
||||||
'critical' => true,
|
|
||||||
);
|
|
||||||
if ( isset( $rollback_result ) ) {
|
|
||||||
$critical_data['rollback_code'] = $rollback_result->get_error_code();
|
|
||||||
$critical_data['rollback_data'] = $rollback_result->get_error_data();
|
|
||||||
}
|
|
||||||
update_site_option( 'auto_core_update_failed', $critical_data );
|
|
||||||
$this->send_email( 'critical', $core_update, $result );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Any other WP_Error code (like download_failed or files_not_writable) occurs before
|
|
||||||
* we tried to copy over core files. Thus, the failures are early and graceful.
|
|
||||||
*
|
|
||||||
* We should avoid trying to perform a background update again for the same version.
|
|
||||||
* But we can try again if another version is released.
|
|
||||||
*
|
|
||||||
* For certain 'transient' failures, like download_failed, we should allow retries.
|
|
||||||
* In fact, let's schedule a special update for an hour from now. (It's possible
|
|
||||||
* the issue could actually be on WordPress.org's side.) If that one fails, then email.
|
|
||||||
*/
|
|
||||||
$send = true;
|
|
||||||
$transient_failures = array( 'incompatible_archive', 'download_failed', 'insane_distro' );
|
|
||||||
if ( in_array( $error_code, $transient_failures ) && ! get_site_option( 'auto_core_update_failed' ) ) {
|
|
||||||
wp_schedule_single_event( time() + HOUR_IN_SECONDS, 'wp_maybe_auto_update' );
|
|
||||||
$send = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$n = get_site_option( 'auto_core_update_notified' );
|
|
||||||
// Don't notify if we've already notified the same email address of the same version of the same notification type.
|
|
||||||
if ( $n && 'fail' == $n['type'] && $n['email'] == get_site_option( 'admin_email' ) && $n['version'] == $core_update->current )
|
|
||||||
$send = false;
|
|
||||||
|
|
||||||
update_site_option( 'auto_core_update_failed', array(
|
|
||||||
'attempted' => $core_update->current,
|
|
||||||
'current' => $wp_version,
|
|
||||||
'error_code' => $error_code,
|
|
||||||
'error_data' => $result->get_error_data(),
|
|
||||||
'timestamp' => time(),
|
|
||||||
'retry' => in_array( $error_code, $transient_failures ),
|
|
||||||
) );
|
|
||||||
|
|
||||||
if ( $send )
|
|
||||||
$this->send_email( 'fail', $core_update, $result );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sends an email upon the completion or failure of a background core update.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param string $type The type of email to send. Can be one of 'success', 'fail', 'manual', 'critical'.
|
|
||||||
* @param object $core_update The update offer that was attempted.
|
|
||||||
* @param mixed $result Optional. The result for the core update. Can be WP_Error.
|
|
||||||
*/
|
|
||||||
protected function send_email( $type, $core_update, $result = null ) {
|
|
||||||
update_site_option( 'auto_core_update_notified', array(
|
|
||||||
'type' => $type,
|
|
||||||
'email' => get_site_option( 'admin_email' ),
|
|
||||||
'version' => $core_update->current,
|
|
||||||
'timestamp' => time(),
|
|
||||||
) );
|
|
||||||
|
|
||||||
$next_user_core_update = get_preferred_from_update_core();
|
|
||||||
// If the update transient is empty, use the update we just performed
|
|
||||||
if ( ! $next_user_core_update )
|
|
||||||
$next_user_core_update = $core_update;
|
|
||||||
$newer_version_available = ( 'upgrade' == $next_user_core_update->response && version_compare( $next_user_core_update->version, $core_update, '>' ) );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Filter whether to send an email following an automatic background core update.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param bool $send Whether to send the email. Default true.
|
|
||||||
* @param string $type The type of email to send. Can be one of 'success', 'fail', 'critical'.
|
|
||||||
* @param object $core_update The update offer that was attempted.
|
|
||||||
* @param mixed $result The result for the core update. Can be WP_Error.
|
|
||||||
*/
|
|
||||||
if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) )
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
switch ( $type ) {
|
$upgrade_count = 0;
|
||||||
case 'success' : // We updated.
|
foreach ( $this->update_results as $type => $upgrades )
|
||||||
/* translators: 1: Site name, 2: WordPress version number. */
|
$upgrade_count += count( $upgrades );
|
||||||
$subject = __( '[%1$s] Your site has updated to WordPress %2$s' );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'fail' : // We tried to update but couldn't.
|
|
||||||
case 'manual' : // We can't update (and made no attempt).
|
|
||||||
/* translators: 1: Site name, 2: WordPress version number. */
|
|
||||||
$subject = __( '[%1$s] WordPress %2$s is available. Please update!' );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'critical' : // We tried to update, started to copy files, then things went wrong.
|
|
||||||
/* translators: 1: Site name. */
|
|
||||||
$subject = __( '[%1$s] URGENT: Your site may be down due to a failed update' );
|
|
||||||
break;
|
|
||||||
|
|
||||||
default :
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// If the auto update is not to the latest version, say that the current version of WP is available instead.
|
|
||||||
$version = 'success' === $type ? $core_update->current : $next_user_core_update->current;
|
|
||||||
$subject = sprintf( $subject, wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), $version );
|
|
||||||
|
|
||||||
$body = '';
|
|
||||||
|
|
||||||
switch ( $type ) {
|
|
||||||
case 'success' :
|
|
||||||
$body .= sprintf( __( 'Howdy! Your site at %1$s has been updated automatically to WordPress %2$s.' ), home_url(), $core_update->current );
|
|
||||||
$body .= "\n\n";
|
|
||||||
if ( ! $newer_version_available )
|
|
||||||
$body .= __( 'No further action is needed on your part.' ) . ' ';
|
|
||||||
|
|
||||||
// Can only reference the About screen if their update was successful.
|
|
||||||
list( $about_version ) = explode( '-', $core_update->current, 2 );
|
|
||||||
$body .= sprintf( __( "For more on version %s, see the About WordPress screen:" ), $about_version );
|
|
||||||
$body .= "\n" . admin_url( 'about.php' );
|
|
||||||
|
|
||||||
if ( $newer_version_available ) {
|
|
||||||
$body .= "\n\n" . sprintf( __( 'WordPress %s is also now available.' ), $next_user_core_update->current ) . ' ';
|
|
||||||
$body .= __( 'Updating is easy and only takes a few moments:' );
|
|
||||||
$body .= "\n" . network_admin_url( 'update-core.php' );
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'fail' :
|
|
||||||
case 'manual' :
|
|
||||||
$body .= sprintf( __( 'Please update your site at %1$s to WordPress %2$s.' ), home_url(), $next_user_core_update->current );
|
|
||||||
|
|
||||||
$body .= "\n\n";
|
|
||||||
|
|
||||||
// Don't show this message if there is a newer version available.
|
|
||||||
// Potential for confusion, and also not useful for them to know at this point.
|
|
||||||
if ( 'fail' == $type && ! $newer_version_available )
|
|
||||||
$body .= __( 'We tried but were unable to update your site automatically.' ) . ' ';
|
|
||||||
|
|
||||||
$body .= __( 'Updating is easy and only takes a few moments:' );
|
|
||||||
$body .= "\n" . network_admin_url( 'update-core.php' );
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'critical' :
|
|
||||||
if ( $newer_version_available )
|
|
||||||
$body .= sprintf( __( 'Your site at %1$s experienced a critical failure while trying to update WordPress to version %2$s.' ), home_url(), $core_update->current );
|
|
||||||
else
|
|
||||||
$body .= sprintf( __( 'Your site at %1$s experienced a critical failure while trying to update to the latest version of WordPress, %2$s.' ), home_url(), $core_update->current );
|
|
||||||
|
|
||||||
$body .= "\n\n" . __( "This means your site may be offline or broken. Don't panic; this can be fixed." );
|
|
||||||
|
|
||||||
$body .= "\n\n" . __( "Please check out your site now. It's possible that everything is working. If it says you need to update, you should do so:" );
|
|
||||||
$body .= "\n" . network_admin_url( 'update-core.php' );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Updates are important!
|
|
||||||
if ( $type != 'success' || $newer_version_available )
|
|
||||||
$body .= "\n\n" . __( 'Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.' );
|
|
||||||
|
|
||||||
// Add a note about the support forums to all emails.
|
|
||||||
$body .= "\n\n" . __( 'If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.' );
|
|
||||||
$body .= "\n" . __( 'http://wordpress.org/support/' );
|
|
||||||
|
|
||||||
// If things are successful and we're now on the latest, mention plugins and themes if any are out of date.
|
|
||||||
if ( $type == 'success' && ! $newer_version_available && ( get_plugin_updates() || get_theme_updates() ) ) {
|
|
||||||
$body .= "\n\n" . __( 'You also have some plugins or themes with updates available. Update them now:' );
|
|
||||||
$body .= "\n" . network_admin_url();
|
|
||||||
}
|
|
||||||
|
|
||||||
$body .= "\n\n" . __( 'The WordPress Team' ) . "\n";
|
|
||||||
|
|
||||||
if ( 'critical' == $type && is_wp_error( $result ) ) {
|
|
||||||
$body .= "\n***\n\n";
|
|
||||||
$body .= sprintf( __( 'Your site was running version %s.' ), $GLOBALS['wp_version'] );
|
|
||||||
$body .= ' ' . __( 'We have some data that describes the error your site encountered.' );
|
|
||||||
$body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' );
|
|
||||||
|
|
||||||
// If we had a rollback and we're still critical, then the rollback failed too.
|
|
||||||
// Loop through all errors (the main WP_Error, the update result, the rollback result) for code, data, etc.
|
|
||||||
if ( 'rollback_was_required' == $result->get_error_code() )
|
|
||||||
$errors = array( $result, $result->get_error_data()->update, $result->get_error_data()->rollback );
|
|
||||||
else
|
|
||||||
$errors = array( $result );
|
|
||||||
|
|
||||||
foreach ( $errors as $error ) {
|
|
||||||
if ( ! is_wp_error( $error ) )
|
|
||||||
continue;
|
|
||||||
$error_code = $error->get_error_code();
|
|
||||||
$body .= "\n\n" . sprintf( __( "Error code: %s" ), $error_code );
|
|
||||||
if ( 'rollback_was_required' == $error_code )
|
|
||||||
continue;
|
|
||||||
if ( $error->get_error_message() )
|
|
||||||
$body .= "\n" . $error->get_error_message();
|
|
||||||
$error_data = $error->get_error_data();
|
|
||||||
if ( $error_data )
|
|
||||||
$body .= "\n" . implode( ', ', (array) $error_data );
|
|
||||||
}
|
|
||||||
$body .= "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
$to = get_site_option( 'admin_email' );
|
|
||||||
$headers = '';
|
|
||||||
|
|
||||||
$email = compact( 'to', 'subject', 'body', 'headers' );
|
|
||||||
/**
|
|
||||||
* Filter the email sent following an automatic background core update.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param array $email {
|
|
||||||
* Array of email arguments that will be passed to wp_mail().
|
|
||||||
*
|
|
||||||
* @type string $to The email recipient. An array of emails can be returned, as handled by wp_mail().
|
|
||||||
* @type string $subject The email's subject.
|
|
||||||
* @type string $body The email message body.
|
|
||||||
* @type string $headers Any email headers, defaults to no headers.
|
|
||||||
* }
|
|
||||||
* @param string $type The type of email being sent. Can be one of 'success', 'fail', 'manual', 'critical'.
|
|
||||||
* @param object $core_update The update offer that was attempted.
|
|
||||||
* @param mixed $result The result for the core update. Can be WP_Error.
|
|
||||||
*/
|
|
||||||
$email = apply_filters( 'auto_core_update_email', $email, $type, $core_update, $result );
|
|
||||||
|
|
||||||
wp_mail( $email['to'], $email['subject'], $email['body'], $email['headers'] );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Prepares and sends an email of a full log of background update results, useful for debugging and geekery.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*/
|
|
||||||
protected function send_debug_email() {
|
|
||||||
$update_count = 0;
|
|
||||||
foreach ( $this->update_results as $type => $updates )
|
|
||||||
$update_count += count( $updates );
|
|
||||||
|
|
||||||
$body = array();
|
$body = array();
|
||||||
$failures = 0;
|
$failures = 0;
|
||||||
|
@ -2323,8 +1859,8 @@ class WP_Automatic_Updater {
|
||||||
$body[] = '';
|
$body[] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Plugins, Themes, Translations
|
// Plugins, Themes, Languages
|
||||||
foreach ( array( 'plugin', 'theme', 'translation' ) as $type ) {
|
foreach ( array( 'plugin', 'theme', 'language' ) as $type ) {
|
||||||
if ( ! isset( $this->update_results[ $type ] ) )
|
if ( ! isset( $this->update_results[ $type ] ) )
|
||||||
continue;
|
continue;
|
||||||
$success_items = wp_list_filter( $this->update_results[ $type ], array( 'result' => true ) );
|
$success_items = wp_list_filter( $this->update_results[ $type ], array( 'result' => true ) );
|
||||||
|
@ -2351,9 +1887,7 @@ class WP_Automatic_Updater {
|
||||||
$body[] = 'BETA TESTING?';
|
$body[] = 'BETA TESTING?';
|
||||||
$body[] = '=============';
|
$body[] = '=============';
|
||||||
$body[] = '';
|
$body[] = '';
|
||||||
$body[] = 'This debugging email is sent when you are using a development version of WordPress.';
|
$body[] = 'If you think these failures might be due to a bug in WordPress 3.7, could you report it?';
|
||||||
$body[] = '';
|
|
||||||
$body[] = 'If you think these failures might be due to a bug in WordPress, could you report it?';
|
|
||||||
$body[] = ' * Open a thread in the support forums: http://wordpress.org/support/forum/alphabeta';
|
$body[] = ' * Open a thread in the support forums: http://wordpress.org/support/forum/alphabeta';
|
||||||
$body[] = " * Or, if you're comfortable writing a bug report: http://core.trac.wordpress.org/";
|
$body[] = " * Or, if you're comfortable writing a bug report: http://core.trac.wordpress.org/";
|
||||||
$body[] = '';
|
$body[] = '';
|
||||||
|
@ -2364,31 +1898,20 @@ class WP_Automatic_Updater {
|
||||||
$subject = sprintf( '[%s] Background updates have finished', get_bloginfo( 'name' ) );
|
$subject = sprintf( '[%s] Background updates have finished', get_bloginfo( 'name' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
$body[] = 'UPDATE LOG';
|
$body[] = 'UPGRADE LOG';
|
||||||
$body[] = '==========';
|
$body[] = '===========';
|
||||||
$body[] = '';
|
$body[] = '';
|
||||||
|
|
||||||
foreach ( array( 'core', 'plugin', 'theme', 'translation' ) as $type ) {
|
foreach ( array( 'core', 'plugin', 'theme', 'language' ) as $type ) {
|
||||||
if ( ! isset( $this->update_results[ $type ] ) )
|
if ( ! isset( $this->update_results[ $type ] ) )
|
||||||
continue;
|
continue;
|
||||||
foreach ( $this->update_results[ $type ] as $update ) {
|
foreach ( $this->update_results[ $type ] as $upgrade ) {
|
||||||
$body[] = $update->name;
|
$body[] = $upgrade->name;
|
||||||
$body[] = str_repeat( '-', strlen( $update->name ) );
|
$body[] = str_repeat( '-', strlen( $upgrade->name ) );
|
||||||
foreach ( $update->messages as $message )
|
foreach ( $upgrade->messages as $message )
|
||||||
$body[] = " " . html_entity_decode( str_replace( '…', '...', $message ) );
|
$body[] = " " . html_entity_decode( str_replace( '…', '...', $message ) );
|
||||||
if ( is_wp_error( $update->result ) ) {
|
if ( is_wp_error( $upgrade->result ) )
|
||||||
$results = array( 'update' => $update->result );
|
$body[] = ' Error: [' . $upgrade->result->get_error_code() . '] ' . $upgrade->result->get_error_message();
|
||||||
// If we rolled back, we want to know an error that occurred then too.
|
|
||||||
if ( 'rollback_was_required' === $update->result->get_error_code() )
|
|
||||||
$results = (array) $update->result->get_error_data();
|
|
||||||
foreach ( $results as $result_type => $result ) {
|
|
||||||
if ( ! is_wp_error( $result ) )
|
|
||||||
continue;
|
|
||||||
$body[] = ' ' . ( 'rollback' === $result_type ? 'Rollback ' : '' ) . 'Error: [' . $result->get_error_code() . '] ' . $result->get_error_message();
|
|
||||||
if ( $result->get_error_data() )
|
|
||||||
$body[] = ' ' . implode( ', ', (array) $result->get_error_data() );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$body[] = '';
|
$body[] = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -142,9 +142,7 @@ function wp_dashboard_setup() {
|
||||||
if ( $update )
|
if ( $update )
|
||||||
update_option( 'dashboard_widget_options', $widget_options );
|
update_option( 'dashboard_widget_options', $widget_options );
|
||||||
|
|
||||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
|
||||||
do_action('do_meta_boxes', $screen->id, 'normal', '');
|
do_action('do_meta_boxes', $screen->id, 'normal', '');
|
||||||
/** This action is documented in wp-admin/edit-form-advanced.php */
|
|
||||||
do_action('do_meta_boxes', $screen->id, 'side', '');
|
do_action('do_meta_boxes', $screen->id, 'side', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -367,7 +367,6 @@ function export_wp( $args = array() ) {
|
||||||
$is_sticky = is_sticky( $post->ID ) ? 1 : 0;
|
$is_sticky = is_sticky( $post->ID ) ? 1 : 0;
|
||||||
?>
|
?>
|
||||||
<item>
|
<item>
|
||||||
<?php /** This filter is documented in wp-includes/feed.php */ ?>
|
|
||||||
<title><?php echo apply_filters( 'the_title_rss', $post->post_title ); ?></title>
|
<title><?php echo apply_filters( 'the_title_rss', $post->post_title ); ?></title>
|
||||||
<link><?php the_permalink_rss() ?></link>
|
<link><?php the_permalink_rss() ?></link>
|
||||||
<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
|
<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
|
||||||
|
|
|
@ -622,11 +622,9 @@ function _unzip_file_ziparchive($file, $to, $needed_dirs = array() ) {
|
||||||
* A disk that has zero free bytes has bigger problems.
|
* A disk that has zero free bytes has bigger problems.
|
||||||
* Require we have enough space to unzip the file and copy its contents, with a 10% buffer.
|
* Require we have enough space to unzip the file and copy its contents, with a 10% buffer.
|
||||||
*/
|
*/
|
||||||
if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
|
$available_space = disk_free_space( WP_CONTENT_DIR );
|
||||||
$available_space = @disk_free_space( WP_CONTENT_DIR );
|
if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space )
|
||||||
if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space )
|
return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) );
|
||||||
return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
$needed_dirs = array_unique($needed_dirs);
|
$needed_dirs = array_unique($needed_dirs);
|
||||||
foreach ( $needed_dirs as $dir ) {
|
foreach ( $needed_dirs as $dir ) {
|
||||||
|
@ -724,11 +722,9 @@ function _unzip_file_pclzip($file, $to, $needed_dirs = array()) {
|
||||||
* A disk that has zero free bytes has bigger problems.
|
* A disk that has zero free bytes has bigger problems.
|
||||||
* Require we have enough space to unzip the file and copy its contents, with a 10% buffer.
|
* Require we have enough space to unzip the file and copy its contents, with a 10% buffer.
|
||||||
*/
|
*/
|
||||||
if ( defined( 'DOING_CRON' ) && DOING_CRON ) {
|
$available_space = disk_free_space( WP_CONTENT_DIR );
|
||||||
$available_space = @disk_free_space( WP_CONTENT_DIR );
|
if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space )
|
||||||
if ( $available_space && ( $uncompressed_size * 2.1 ) > $available_space )
|
return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) );
|
||||||
return new WP_Error( 'disk_full_unzip_file', __( 'Could not copy files. You may have run out of disk space.' ), compact( 'uncompressed_size', 'available_space' ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
$needed_dirs = array_unique($needed_dirs);
|
$needed_dirs = array_unique($needed_dirs);
|
||||||
foreach ( $needed_dirs as $dir ) {
|
foreach ( $needed_dirs as $dir ) {
|
||||||
|
|
|
@ -499,7 +499,6 @@ function wp_restore_image($post_id) {
|
||||||
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
|
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
|
||||||
// delete only if it's edited image
|
// delete only if it's edited image
|
||||||
if ( preg_match('/-e[0-9]{13}\./', $parts['basename']) ) {
|
if ( preg_match('/-e[0-9]{13}\./', $parts['basename']) ) {
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
|
||||||
$delpath = apply_filters('wp_delete_file', $file);
|
$delpath = apply_filters('wp_delete_file', $file);
|
||||||
@unlink($delpath);
|
@unlink($delpath);
|
||||||
}
|
}
|
||||||
|
@ -523,7 +522,6 @@ function wp_restore_image($post_id) {
|
||||||
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
|
if ( defined('IMAGE_EDIT_OVERWRITE') && IMAGE_EDIT_OVERWRITE ) {
|
||||||
// delete only if it's edited image
|
// delete only if it's edited image
|
||||||
if ( preg_match('/-e[0-9]{13}-/', $meta['sizes'][$default_size]['file']) ) {
|
if ( preg_match('/-e[0-9]{13}-/', $meta['sizes'][$default_size]['file']) ) {
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
|
||||||
$delpath = apply_filters( 'wp_delete_file', path_join($parts['dirname'], $meta['sizes'][$default_size]['file']) );
|
$delpath = apply_filters( 'wp_delete_file', path_join($parts['dirname'], $meta['sizes'][$default_size]['file']) );
|
||||||
@unlink($delpath);
|
@unlink($delpath);
|
||||||
}
|
}
|
||||||
|
@ -724,7 +722,6 @@ function wp_save_image( $post_id ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $delete ) {
|
if ( $delete ) {
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
|
||||||
$delpath = apply_filters('wp_delete_file', $new_path);
|
$delpath = apply_filters('wp_delete_file', $new_path);
|
||||||
@unlink( $delpath );
|
@unlink( $delpath );
|
||||||
}
|
}
|
||||||
|
|
|
@ -677,7 +677,13 @@ function choose_primary_blog() {
|
||||||
<th scope="row" colspan="2" class="th-full">
|
<th scope="row" colspan="2" class="th-full">
|
||||||
<?php
|
<?php
|
||||||
$signup_url = network_site_url( 'wp-signup.php' );
|
$signup_url = network_site_url( 'wp-signup.php' );
|
||||||
/** This filter is documented in wp-login.php */
|
/**
|
||||||
|
* Filter the site signup URL.
|
||||||
|
*
|
||||||
|
* @since MU
|
||||||
|
*
|
||||||
|
* @param string $signup_url The site signup URL.
|
||||||
|
*/
|
||||||
?>
|
?>
|
||||||
<a href="<?php echo apply_filters( 'wp_signup_location', $signup_url ); ?>"><?php _e( 'Create a New Site' ); ?></a>
|
<a href="<?php echo apply_filters( 'wp_signup_location', $signup_url ); ?>"><?php _e( 'Create a New Site' ); ?></a>
|
||||||
</th>
|
</th>
|
||||||
|
|
|
@ -308,7 +308,7 @@ class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
|
||||||
if ( ! empty( $item->label ) ) {
|
if ( ! empty( $item->label ) ) {
|
||||||
$title = $item->label;
|
$title = $item->label;
|
||||||
} elseif ( isset( $item->post_type ) ) {
|
} elseif ( isset( $item->post_type ) ) {
|
||||||
/** This filter is documented in wp-includes/post-template.php */
|
//duplicate_hook
|
||||||
$title = apply_filters( 'the_title', $item->post_title, $item->ID );
|
$title = apply_filters( 'the_title', $item->post_title, $item->ID );
|
||||||
if ( ! empty( $item->front_or_home ) && _x( 'Home', 'nav menu home label' ) !== $title )
|
if ( ! empty( $item->front_or_home ) && _x( 'Home', 'nav menu home label' ) !== $title )
|
||||||
$title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $title );
|
$title = sprintf( _x( 'Home: %s', 'nav menu front page title' ), $title );
|
||||||
|
|
|
@ -270,7 +270,6 @@ function edit_post( $post_data = null ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$attachment_data = isset( $post_data['attachments'][ $post_ID ] ) ? $post_data['attachments'][ $post_ID ] : array();
|
$attachment_data = isset( $post_data['attachments'][ $post_ID ] ) ? $post_data['attachments'][ $post_ID ] : array();
|
||||||
/** This filter is documented in wp-admin/includes/media.php */
|
|
||||||
$post_data = apply_filters( 'attachment_fields_to_save', $post_data, $attachment_data );
|
$post_data = apply_filters( 'attachment_fields_to_save', $post_data, $attachment_data );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
|
||||||
*/
|
*/
|
||||||
$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : '';
|
$content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : '';
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/includes/revision.php */
|
//duplicate_hook
|
||||||
$content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' );
|
$content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' );
|
||||||
|
|
||||||
$diff = wp_text_diff( $content_from, $content_to, array( 'show_split_view' => true ) );
|
$diff = wp_text_diff( $content_from, $content_to, array( 'show_split_view' => true ) );
|
||||||
|
|
|
@ -546,24 +546,8 @@ function populate_options() {
|
||||||
|
|
||||||
// delete obsolete magpie stuff
|
// delete obsolete magpie stuff
|
||||||
$wpdb->query("DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'");
|
$wpdb->query("DELETE FROM $wpdb->options WHERE option_name REGEXP '^rss_[0-9a-f]{32}(_ts)?$'");
|
||||||
|
// clear transient data
|
||||||
// Deletes all expired transients.
|
$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '\_transient\_%' OR option_name LIKE '\_site\_transient\_%'" );
|
||||||
// The multi-table delete syntax is used to delete the transient record from table a,
|
|
||||||
// and the corresponding transient_timeout record from table b.
|
|
||||||
$time = time();
|
|
||||||
$wpdb->query("DELETE a, b FROM $wpdb->options a, $wpdb->options b WHERE
|
|
||||||
a.option_name LIKE '\_transient\_%' AND
|
|
||||||
a.option_name NOT LIKE '\_transient\_timeout\_%' AND
|
|
||||||
b.option_name = CONCAT( '_transient_timeout_', SUBSTRING( a.option_name, 12 ) )
|
|
||||||
AND b.option_value < $time");
|
|
||||||
|
|
||||||
if ( is_main_site() && is_main_network() ) {
|
|
||||||
$wpdb->query("DELETE a, b FROM $wpdb->options a, $wpdb->options b WHERE
|
|
||||||
a.option_name LIKE '\_site\_transient\_%' AND
|
|
||||||
a.option_name NOT LIKE '\_site\_transient\_timeout\_%' AND
|
|
||||||
b.option_name = CONCAT( '_site_transient_timeout_', SUBSTRING( a.option_name, 17 ) )
|
|
||||||
AND b.option_value < $time");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -561,7 +561,6 @@ $_old_files = array(
|
||||||
// 3.7
|
// 3.7
|
||||||
'wp-admin/js/cat.js',
|
'wp-admin/js/cat.js',
|
||||||
'wp-admin/js/cat.min.js',
|
'wp-admin/js/cat.min.js',
|
||||||
'wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.min.js',
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -662,7 +661,7 @@ function update_core($from, $to) {
|
||||||
$versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php';
|
$versions_file = trailingslashit( $wp_filesystem->wp_content_dir() ) . 'upgrade/version-current.php';
|
||||||
if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) {
|
if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $versions_file ) ) {
|
||||||
$wp_filesystem->delete( $from, true );
|
$wp_filesystem->delete( $from, true );
|
||||||
return new WP_Error( 'copy_failed_for_version_file', __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ), 'wp-includes/version.php' );
|
return new WP_Error( 'copy_failed_for_version_file', __( 'Could not copy file.' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
$wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE );
|
$wp_filesystem->chmod( $versions_file, FS_CHMOD_FILE );
|
||||||
|
@ -730,7 +729,7 @@ function update_core($from, $to) {
|
||||||
$error_data = version_compare( $old_wp_version, '3.7-beta2', '>' ) ? array_keys( $files_not_writable ) : '';
|
$error_data = version_compare( $old_wp_version, '3.7-beta2', '>' ) ? array_keys( $files_not_writable ) : '';
|
||||||
|
|
||||||
if ( $files_not_writable )
|
if ( $files_not_writable )
|
||||||
return new WP_Error( 'files_not_writable', __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ), implode( ', ', $error_data ) );
|
return new WP_Error( 'files_not_writable', __( 'Could not copy file.' ), $error_data );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -774,7 +773,7 @@ function update_core($from, $to) {
|
||||||
|
|
||||||
// If we don't have enough free space, it isn't worth trying again.
|
// If we don't have enough free space, it isn't worth trying again.
|
||||||
// Unlikely to be hit due to the check in unzip_file().
|
// Unlikely to be hit due to the check in unzip_file().
|
||||||
$available_space = @disk_free_space( ABSPATH );
|
$available_space = disk_free_space( ABSPATH );
|
||||||
if ( $available_space && $total_size >= $available_space ) {
|
if ( $available_space && $total_size >= $available_space ) {
|
||||||
$result = new WP_Error( 'disk_full', __( 'There is not enough free disk space to complete the update.' ) );
|
$result = new WP_Error( 'disk_full', __( 'There is not enough free disk space to complete the update.' ) );
|
||||||
} else {
|
} else {
|
||||||
|
@ -807,10 +806,6 @@ function update_core($from, $to) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_filters( 'update_feedback', __( 'Disabling Maintenance mode…' ) );
|
|
||||||
// Remove maintenance file, we're done with potential site-breaking changes
|
|
||||||
$wp_filesystem->delete( $maintenance_file );
|
|
||||||
|
|
||||||
// 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, preventing installation of Twenty Twelve.
|
// 3.5 -> 3.5+ - an empty twentytwelve directory was created upon upgrade to 3.5 for some users, preventing installation of Twenty Twelve.
|
||||||
if ( '3.5' == $old_wp_version ) {
|
if ( '3.5' == $old_wp_version ) {
|
||||||
if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' ) && ! file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css' ) ) {
|
if ( is_dir( WP_CONTENT_DIR . '/themes/twentytwelve' ) && ! file_exists( WP_CONTENT_DIR . '/themes/twentytwelve/style.css' ) ) {
|
||||||
|
@ -865,6 +860,7 @@ function update_core($from, $to) {
|
||||||
|
|
||||||
// Handle $result error from the above blocks
|
// Handle $result error from the above blocks
|
||||||
if ( is_wp_error($result) ) {
|
if ( is_wp_error($result) ) {
|
||||||
|
$wp_filesystem->delete($maintenance_file);
|
||||||
$wp_filesystem->delete($from, true);
|
$wp_filesystem->delete($from, true);
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
@ -891,13 +887,16 @@ function update_core($from, $to) {
|
||||||
else
|
else
|
||||||
delete_option('update_core');
|
delete_option('update_core');
|
||||||
|
|
||||||
|
apply_filters( 'update_feedback', __( 'Disabling Maintenance mode…' ) );
|
||||||
|
// Remove maintenance file, we're done.
|
||||||
|
$wp_filesystem->delete($maintenance_file);
|
||||||
|
|
||||||
|
// Has to be in here, rather than the Upgrader as the filter below will override and kill the process before themes get updated on major updates
|
||||||
|
do_action( 'upgrader_process_complete', null, array( 'action' => 'update', 'type' => 'core' ) );
|
||||||
|
|
||||||
// If we made it this far:
|
// If we made it this far:
|
||||||
do_action( '_core_updated_successfully', $wp_version );
|
do_action( '_core_updated_successfully', $wp_version );
|
||||||
|
|
||||||
// Clear the option that blocks auto updates after failures, now that we've been successful.
|
|
||||||
if ( function_exists( 'delete_site_option' ) )
|
|
||||||
delete_site_option( 'auto_core_update_failed' );
|
|
||||||
|
|
||||||
return $wp_version;
|
return $wp_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -77,12 +77,12 @@ function find_core_auto_update() {
|
||||||
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||||
|
|
||||||
$auto_update = false;
|
$auto_update = false;
|
||||||
$upgrader = new WP_Automatic_Updater;
|
$upgrader = new WP_Automatic_Upgrader;
|
||||||
foreach ( $updates->updates as $update ) {
|
foreach ( $updates->updates as $update ) {
|
||||||
if ( 'autoupdate' != $update->response )
|
if ( 'autoupdate' != $update->response )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( ! $upgrader->should_update( 'core', $update, ABSPATH ) )
|
if ( ! $upgrader->should_upgrade( 'core', $update, ABSPATH ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if ( ! $auto_update || version_compare( $update->current, $auto_update->current, '>' ) )
|
if ( ! $auto_update || version_compare( $update->current, $auto_update->current, '>' ) )
|
||||||
|
@ -344,27 +344,8 @@ function wp_theme_update_row( $theme_key, $theme ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function maintenance_nag() {
|
function maintenance_nag() {
|
||||||
include ABSPATH . WPINC . '/version.php'; // include an unmodified $wp_version
|
|
||||||
global $upgrading;
|
global $upgrading;
|
||||||
$nag = isset( $upgrading );
|
if ( ! isset( $upgrading ) )
|
||||||
if ( ! $nag ) {
|
|
||||||
$failed = get_site_option( 'auto_core_update_failed' );
|
|
||||||
/*
|
|
||||||
* If an update failed critically, we may have copied over version.php but not other files.
|
|
||||||
* In that case, if the install claims we're running the version we attempted, nag.
|
|
||||||
* This is serious enough to err on the side of nagging.
|
|
||||||
*
|
|
||||||
* If we simply failed to update before we tried to copy any files, then assume things are
|
|
||||||
* OK if they are now running the latest.
|
|
||||||
*
|
|
||||||
* This flag is cleared whenever a successful update occurs using Core_Upgrader.
|
|
||||||
*/
|
|
||||||
$comparison = ! empty( $failed['critical'] ) ? '>=' : '>';
|
|
||||||
if ( version_compare( $failed['attempted'], $wp_version, '>=' ) )
|
|
||||||
$nag = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( ! $nag )
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ( current_user_can('update_core') )
|
if ( current_user_can('update_core') )
|
||||||
|
@ -375,4 +356,3 @@ function maintenance_nag() {
|
||||||
echo "<div class='update-nag'>$msg</div>";
|
echo "<div class='update-nag'>$msg</div>";
|
||||||
}
|
}
|
||||||
add_action( 'admin_notices', 'maintenance_nag' );
|
add_action( 'admin_notices', 'maintenance_nag' );
|
||||||
add_action( 'network_admin_notices', 'maintenance_nag' );
|
|
||||||
|
|
|
@ -1229,20 +1229,6 @@ function upgrade_370() {
|
||||||
*/
|
*/
|
||||||
function upgrade_network() {
|
function upgrade_network() {
|
||||||
global $wp_current_db_version, $wpdb;
|
global $wp_current_db_version, $wpdb;
|
||||||
|
|
||||||
// Always
|
|
||||||
if ( is_main_network() ) {
|
|
||||||
// Deletes all expired transients.
|
|
||||||
// The multi-table delete syntax is used to delete the transient record from table a,
|
|
||||||
// and the corresponding transient_timeout record from table b.
|
|
||||||
$time = time();
|
|
||||||
$wpdb->query("DELETE a, b FROM $wpdb->sitemeta a, $wpdb->sitemeta b WHERE
|
|
||||||
a.meta_key LIKE '\_site\_transient\_%' AND
|
|
||||||
a.meta_key NOT LIKE '\_site\_transient\_timeout\_%' AND
|
|
||||||
b.meta_key = CONCAT( '_site_transient_timeout_', SUBSTRING( a.meta_key, 17 ) )
|
|
||||||
AND b.meta_value < $time");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 2.8
|
// 2.8
|
||||||
if ( $wp_current_db_version < 11549 ) {
|
if ( $wp_current_db_version < 11549 ) {
|
||||||
$wpmu_sitewide_plugins = get_site_option( 'wpmu_sitewide_plugins' );
|
$wpmu_sitewide_plugins = get_site_option( 'wpmu_sitewide_plugins' );
|
||||||
|
|
|
@ -1,80 +0,0 @@
|
||||||
(function($){
|
|
||||||
var password = 'Gosh, WordPress is grand.',
|
|
||||||
$input = $('#pass'),
|
|
||||||
shouldAnimate = true,
|
|
||||||
timesForAnimation = [280, 300, 305, 310, 315, 325, 330, 345, 360, 370, 380, 400, 450, 500, 600],
|
|
||||||
resultsCache = {},
|
|
||||||
indicatorString = $('#pass-strength-result').text();
|
|
||||||
|
|
||||||
function updateResult(){
|
|
||||||
var strength;
|
|
||||||
|
|
||||||
if ( typeof( resultsCache[ $input.val() ]) === 'undefined') {
|
|
||||||
strength = wp.passwordStrength.meter($input.val(), [], $input.val());
|
|
||||||
resultsCache[ $input.val() ] = strength;
|
|
||||||
} else {
|
|
||||||
strength = resultsCache[ $input.val() ];
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#pass-strength-result').removeClass('short bad good strong');
|
|
||||||
switch ( strength ) {
|
|
||||||
case 2:
|
|
||||||
$('#pass-strength-result').addClass('bad').html( pwsL10n['bad'] );
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
$('#pass-strength-result').addClass('good').html( pwsL10n['good'] );
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
$('#pass-strength-result').addClass('strong').html( pwsL10n['strong'] );
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
$('#pass-strength-result').addClass('short').html( pwsL10n['short'] );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function resetMeter(){
|
|
||||||
$input.val('');
|
|
||||||
$('#pass-strength-result').text(indicatorString);
|
|
||||||
$('#pass-strength-result').removeClass('short bad good strong');
|
|
||||||
}
|
|
||||||
|
|
||||||
function animate(){
|
|
||||||
if (shouldAnimate === false)
|
|
||||||
return;
|
|
||||||
if ($input.val().length < password.length){
|
|
||||||
$input.val( password.substr(0, $input.val().length + 1) );
|
|
||||||
updateResult();
|
|
||||||
|
|
||||||
// Look like real typing by changing the speed new letters are added each time
|
|
||||||
setTimeout( animate, ( timesForAnimation[ Math.floor( Math.random() * timesForAnimation.length ) ] ) );
|
|
||||||
} else {
|
|
||||||
resetMeter();
|
|
||||||
|
|
||||||
// When we reset, let's wait a bit longer than normal to start again
|
|
||||||
setTimeout(animate, 700);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function begin(){
|
|
||||||
// we async load zxcvbn, so we need to make sure it's loaded before starting
|
|
||||||
if (typeof(zxcvbn) !== 'undefined')
|
|
||||||
animate();
|
|
||||||
else
|
|
||||||
setTimeout(begin,800);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Turn off the animation on focus
|
|
||||||
$input.on('focus', function(){
|
|
||||||
shouldAnimate = false;
|
|
||||||
resetMeter();
|
|
||||||
});
|
|
||||||
|
|
||||||
// Act like a normal password strength meter
|
|
||||||
$input.on('keyup', function(){
|
|
||||||
updateResult();
|
|
||||||
});
|
|
||||||
|
|
||||||
// Start the animation
|
|
||||||
begin();
|
|
||||||
|
|
||||||
})(jQuery);
|
|
|
@ -1 +0,0 @@
|
||||||
!function(a){function b(){var b;switch("undefined"==typeof j[g.val()]?(b=wp.passwordStrength.meter(g.val(),[],g.val()),j[g.val()]=b):b=j[g.val()],a("#pass-strength-result").removeClass("short bad good strong"),b){case 2:a("#pass-strength-result").addClass("bad").html(pwsL10n.bad);break;case 3:a("#pass-strength-result").addClass("good").html(pwsL10n.good);break;case 4:a("#pass-strength-result").addClass("strong").html(pwsL10n.strong);break;default:a("#pass-strength-result").addClass("short").html(pwsL10n["short"])}}function c(){g.val(""),a("#pass-strength-result").text(k),a("#pass-strength-result").removeClass("short bad good strong")}function d(){h!==!1&&(g.val().length<f.length?(g.val(f.substr(0,g.val().length+1)),b(),setTimeout(d,i[Math.floor(Math.random()*i.length)])):(c(),setTimeout(d,700)))}function e(){"undefined"!=typeof zxcvbn?d():setTimeout(e,800)}var f="Gosh, WordPress is grand.",g=a("#pass"),h=!0,i=[280,300,305,310,315,325,330,345,360,370,380,400,450,500,600],j={},k=a("#pass-strength-result").text();g.on("focus",function(){h=!1,c()}),g.on("keyup",function(){b()}),e()}(jQuery);
|
|
|
@ -14,7 +14,7 @@ var passwordStrength;
|
||||||
if ( ! $.isArray( blacklist ) )
|
if ( ! $.isArray( blacklist ) )
|
||||||
blacklist = [ blacklist.toString() ];
|
blacklist = [ blacklist.toString() ];
|
||||||
|
|
||||||
if (password1 != password2 && password2 && password2.length > 0)
|
if (password1 != password2 && password2.length > 0)
|
||||||
return 5;
|
return 5;
|
||||||
|
|
||||||
var result = zxcvbn( password1, blacklist );
|
var result = zxcvbn( password1, blacklist );
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
window.wp=window.wp||{};var passwordStrength;!function(a){wp.passwordStrength={meter:function(b,c,d){if(a.isArray(c)||(c=[c.toString()]),b!=d&&d&&d.length>0)return 5;var e=zxcvbn(b,c);return e.score},userInputBlacklist:function(){var b,c,d,e,f=[],g=[],h=["user_login","first_name","last_name","nickname","display_name","email","url","description","weblog_title","admin_email"];for(f.push(document.title),f.push(document.URL),c=h.length,b=0;c>b;b++)e=a("#"+h[b]),0!=e.length&&(f.push(e[0].defaultValue),f.push(e.val()));for(d=f.length,b=0;d>b;b++)f[b]&&(g=g.concat(f[b].replace(/\W/g," ").split(" ")));return g=a.grep(g,function(b,c){return""==b||4>b.length?!1:a.inArray(b,g)===c})}},passwordStrength=wp.passwordStrength.meter}(jQuery);
|
window.wp=window.wp||{};var passwordStrength;!function(a){wp.passwordStrength={meter:function(b,c,d){if(a.isArray(c)||(c=[c.toString()]),b!=d&&d.length>0)return 5;var e=zxcvbn(b,c);return e.score},userInputBlacklist:function(){var b,c,d,e,f=[],g=[],h=["user_login","first_name","last_name","nickname","display_name","email","url","description","weblog_title","admin_email"];for(f.push(document.title),f.push(document.URL),c=h.length,b=0;c>b;b++)e=a("#"+h[b]),0!=e.length&&(f.push(e[0].defaultValue),f.push(e.val()));for(d=f.length,b=0;d>b;b++)f[b]&&(g=g.concat(f[b].replace(/\W/g," ").split(" ")));return g=a.grep(g,function(b,c){return""==b||4>b.length?!1:a.inArray(b,g)===c})}},passwordStrength=wp.passwordStrength.meter}(jQuery);
|
|
@ -5,6 +5,7 @@
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** WordPress Administration Bootstrap */
|
/** WordPress Administration Bootstrap */
|
||||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||||
|
|
||||||
|
@ -76,13 +77,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
|
||||||
<label for="thread_comments">
|
<label for="thread_comments">
|
||||||
<input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> />
|
<input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> />
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Filter the maximum depth of threaded/nested comments.
|
|
||||||
*
|
|
||||||
* @since 2.7.0.
|
|
||||||
*
|
|
||||||
* @param int $10 The maximum depth of threaded comments. Default 10.
|
|
||||||
*/
|
|
||||||
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );
|
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );
|
||||||
|
|
||||||
$thread_comments_depth = '</label><label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">';
|
$thread_comments_depth = '</label><label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">';
|
||||||
|
@ -224,17 +219,7 @@ $avatar_defaults = array(
|
||||||
'monsterid' => __('MonsterID (Generated)'),
|
'monsterid' => __('MonsterID (Generated)'),
|
||||||
'retro' => __('Retro (Generated)')
|
'retro' => __('Retro (Generated)')
|
||||||
);
|
);
|
||||||
/**
|
$avatar_defaults = apply_filters('avatar_defaults', $avatar_defaults);
|
||||||
* Filter the default avatars.
|
|
||||||
*
|
|
||||||
* Avatars are stored in key/value pairs, where the key is option value,
|
|
||||||
* and the name is the displayed avatar name.
|
|
||||||
*
|
|
||||||
* @since 2.6.0
|
|
||||||
*
|
|
||||||
* @param array $avatar_defaults Array of default avatars.
|
|
||||||
*/
|
|
||||||
$avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults );
|
|
||||||
$default = get_option('avatar_default');
|
$default = get_option('avatar_default');
|
||||||
if ( empty($default) )
|
if ( empty($default) )
|
||||||
$default = 'mystery';
|
$default = 'mystery';
|
||||||
|
@ -250,14 +235,7 @@ foreach ( $avatar_defaults as $default_key => $default_name ) {
|
||||||
$avatar_list .= ' ' . $default_name . '</label>';
|
$avatar_list .= ' ' . $default_name . '</label>';
|
||||||
$avatar_list .= '<br />';
|
$avatar_list .= '<br />';
|
||||||
}
|
}
|
||||||
/**
|
echo apply_filters('default_avatar_select', $avatar_list);
|
||||||
* Filter the HTML output of the default avatar list.
|
|
||||||
*
|
|
||||||
* @since 2.6.0
|
|
||||||
*
|
|
||||||
* @param string $avatar_list HTML markup of the avatar list.
|
|
||||||
*/
|
|
||||||
echo apply_filters( 'default_avatar_select', $avatar_list );
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</fieldset></td>
|
</fieldset></td>
|
||||||
|
|
|
@ -229,14 +229,13 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend>
|
<fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend>
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Filter the default date formats.
|
$date_formats = array_unique( apply_filters( 'date_formats', array(
|
||||||
*
|
__('F j, Y'),
|
||||||
* @since 2.7.0
|
'Y/m/d',
|
||||||
*
|
'm/d/Y',
|
||||||
* @param array $default_date_formats Array of default date formats.
|
'd/m/Y',
|
||||||
*/
|
) ) );
|
||||||
$date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y' ), 'Y/m/d', 'm/d/Y', 'd/m/Y' ) ) );
|
|
||||||
|
|
||||||
$custom = true;
|
$custom = true;
|
||||||
|
|
||||||
|
@ -263,14 +262,12 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend>
|
<fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend>
|
||||||
<?php
|
<?php
|
||||||
/**
|
|
||||||
* Filter the default time formats.
|
$time_formats = array_unique( apply_filters( 'time_formats', array(
|
||||||
*
|
__('g:i a'),
|
||||||
* @since 2.7.0
|
'g:i A',
|
||||||
*
|
'H:i',
|
||||||
* @param array $default_time_formats Array of default time formats.
|
) ) );
|
||||||
*/
|
|
||||||
$time_formats = array_unique( apply_filters( 'time_formats', array( __( 'g:i a' ), 'g:i A', 'H:i' ) ) );
|
|
||||||
|
|
||||||
$custom = true;
|
$custom = true;
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ get_current_screen()->add_help_tab( array(
|
||||||
'content' => '<p>' . __('Press This is a bookmarklet that makes it easy to blog about something you come across on the web. You can use it to just grab a link, or to post an excerpt. Press This will even allow you to choose from images included on the page and use them in your post. Just drag the Press This link on this screen to your bookmarks bar in your browser, and you’ll be on your way to easier content creation. Clicking on it while on another website opens a popup window with all these options.') . '</p>',
|
'content' => '<p>' . __('Press This is a bookmarklet that makes it easy to blog about something you come across on the web. You can use it to just grab a link, or to post an excerpt. Press This will even allow you to choose from images included on the page and use them in your post. Just drag the Press This link on this screen to your bookmarks bar in your browser, and you’ll be on your way to easier content creation. Clicking on it while on another website opens a popup window with all these options.') . '</p>',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/options.php */
|
//duplicate_hook
|
||||||
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
|
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
|
||||||
get_current_screen()->add_help_tab( array(
|
get_current_screen()->add_help_tab( array(
|
||||||
'id' => 'options-postemail',
|
'id' => 'options-postemail',
|
||||||
|
@ -131,7 +131,7 @@ do_settings_fields('writing', 'remote_publishing'); // A deprecated section.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/** This filter is documented in wp-admin/options.php */
|
//duplicate_hook
|
||||||
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
|
if ( apply_filters( 'enable_post_by_email_configuration', true ) ) {
|
||||||
?>
|
?>
|
||||||
<h3 class="title"><?php _e('Post via e-mail') ?></h3>
|
<h3 class="title"><?php _e('Post via e-mail') ?></h3>
|
||||||
|
@ -168,7 +168,7 @@ wp_dropdown_categories(array('hide_empty' => 0, 'name' => 'default_email_categor
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/** This filter is documented in wp-admin/options-writing.php */
|
//duplicate_hook
|
||||||
if ( apply_filters( 'enable_update_services_configuration', true ) ) {
|
if ( apply_filters( 'enable_update_services_configuration', true ) ) {
|
||||||
?>
|
?>
|
||||||
<h3 class="title"><?php _e('Update Services') ?></h3>
|
<h3 class="title"><?php _e('Update Services') ?></h3>
|
||||||
|
|
|
@ -148,14 +148,14 @@ function core_upgrade_preamble() {
|
||||||
|
|
||||||
if ( wp_http_supports( 'ssl' ) ) {
|
if ( wp_http_supports( 'ssl' ) ) {
|
||||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||||
$upgrader = new WP_Automatic_Updater;
|
$upgrader = new WP_Automatic_Upgrader;
|
||||||
$future_minor_update = (object) array(
|
$future_minor_update = (object) array(
|
||||||
'current' => $wp_version . '.1.next.minor',
|
'current' => $wp_version . '.1-update-core.php',
|
||||||
'version' => $wp_version . '.1.next.minor',
|
'version' => $wp_version . '.1-update-core.php',
|
||||||
'php_version' => $required_php_version,
|
'php_version' => $required_php_version,
|
||||||
'mysql_version' => $required_mysql_version,
|
'mysql_version' => $required_mysql_version,
|
||||||
);
|
);
|
||||||
$should_auto_update = $upgrader->should_update( 'core', $future_minor_update, ABSPATH );
|
$should_auto_update = $upgrader->should_upgrade( 'core', $future_minor_update, ABSPATH );
|
||||||
if ( $should_auto_update )
|
if ( $should_auto_update )
|
||||||
echo ' ' . __( 'Future security updates will be applied automatically.' );
|
echo ' ' . __( 'Future security updates will be applied automatically.' );
|
||||||
}
|
}
|
||||||
|
@ -172,8 +172,8 @@ function core_upgrade_preamble() {
|
||||||
|
|
||||||
if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) {
|
if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) {
|
||||||
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
|
||||||
$upgrader = new WP_Automatic_Updater;
|
$upgrader = new WP_Automatic_Upgrader;
|
||||||
if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) )
|
if ( wp_http_supports( 'ssl' ) && $upgrader->should_upgrade( 'core', $updates[0], ABSPATH ) )
|
||||||
echo '<div class="updated inline"><p><strong>BETA TESTERS:</strong> This site is set up to install updates of future beta versions automatically.</p></div>';
|
echo '<div class="updated inline"><p><strong>BETA TESTERS:</strong> This site is set up to install updates of future beta versions automatically.</p></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -335,7 +335,7 @@ if ( current_user_can( 'create_users') ) {
|
||||||
?>
|
?>
|
||||||
<p><?php _e('Create a brand new user and add them to this site.'); ?></p>
|
<p><?php _e('Create a brand new user and add them to this site.'); ?></p>
|
||||||
<?php
|
<?php
|
||||||
/** This action is documented in wp-admin/user-new.php */
|
//duplicate_hook
|
||||||
?>
|
?>
|
||||||
<form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action('user_new_form_tag');?>>
|
<form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action('user_new_form_tag');?>>
|
||||||
<input name="action" type="hidden" value="createuser" />
|
<input name="action" type="hidden" value="createuser" />
|
||||||
|
@ -427,7 +427,7 @@ if ( apply_filters( 'show_password_fields', true ) ) : ?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
/** This action is documented in wp-admin/user-new.php */
|
//duplicate_hook
|
||||||
do_action( 'user_new_form', 'add-new-user' );
|
do_action( 'user_new_form', 'add-new-user' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
<div id="author-info">
|
<div id="author-info">
|
||||||
<div id="author-avatar">
|
<div id="author-avatar">
|
||||||
<?php
|
<?php
|
||||||
/** This filter is documented in author.php */
|
//duplicate_hook
|
||||||
echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) );
|
echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) );
|
||||||
?>
|
?>
|
||||||
</div><!-- #author-avatar -->
|
</div><!-- #author-avatar -->
|
||||||
|
|
|
@ -528,7 +528,7 @@ function twentyeleven_get_first_url() {
|
||||||
if ( ! $has_url )
|
if ( ! $has_url )
|
||||||
$has_url = twentyeleven_url_grabber();
|
$has_url = twentyeleven_url_grabber();
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/link-template.php */
|
//duplicate_hook
|
||||||
return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
|
return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget {
|
||||||
ob_start();
|
ob_start();
|
||||||
extract( $args, EXTR_SKIP );
|
extract( $args, EXTR_SKIP );
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/default-widgets.php */
|
//duplicate_hook
|
||||||
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Ephemera', 'twentyeleven' ) : $instance['title'], $instance, $this->id_base);
|
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Ephemera', 'twentyeleven' ) : $instance['title'], $instance, $this->id_base);
|
||||||
|
|
||||||
if ( ! isset( $instance['number'] ) )
|
if ( ! isset( $instance['number'] ) )
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# This file is distributed under the GNU General Public License v2 or later.
|
# This file is distributed under the GNU General Public License v2 or later.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Twenty Eleven 1.7\n"
|
"Project-Id-Version: Twenty Eleven 1.6\n"
|
||||||
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyeleven\n"
|
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyeleven\n"
|
||||||
"POT-Creation-Date: 2013-10-24 19:42:42+00:00\n"
|
"POT-Creation-Date: 2013-08-01 18:14:10+00:00\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -57,22 +57,22 @@ msgstr ""
|
||||||
msgid "Blog Archives"
|
msgid "Blog Archives"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: archive.php:57 author.php:86 category.php:59 index.php:37 search.php:44
|
#: archive.php:57 author.php:74 category.php:50 index.php:37 search.php:42
|
||||||
#: tag.php:60
|
#: tag.php:50
|
||||||
msgid "Nothing Found"
|
msgid "Nothing Found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: archive.php:61 author.php:90 category.php:63 index.php:41 tag.php:64
|
#: archive.php:61 author.php:78 category.php:54 index.php:41 tag.php:54
|
||||||
msgid ""
|
msgid ""
|
||||||
"Apologies, but no results were found for the requested archive. Perhaps "
|
"Apologies, but no results were found for the requested archive. Perhaps "
|
||||||
"searching will help find a related post."
|
"searching will help find a related post."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: author.php:29
|
#: author.php:28
|
||||||
msgid "Author Archives: %s"
|
msgid "Author Archives: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: author.php:60 content-single.php:63
|
#: author.php:49 content-single.php:60
|
||||||
msgid "About %s"
|
msgid "About %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -85,91 +85,91 @@ msgid ""
|
||||||
"This post is password protected. Enter the password to view any comments."
|
"This post is password protected. Enter the password to view any comments."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: comments.php:34
|
#: comments.php:33
|
||||||
msgid "One thought on “%2$s”"
|
msgid "One thought on “%2$s”"
|
||||||
msgid_plural "%1$s thoughts on “%2$s”"
|
msgid_plural "%1$s thoughts on “%2$s”"
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#: comments.php:41 comments.php:62
|
#: comments.php:40 comments.php:60
|
||||||
msgid "Comment navigation"
|
msgid "Comment navigation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: comments.php:42 comments.php:63
|
#: comments.php:41 comments.php:61
|
||||||
msgid "← Older Comments"
|
msgid "← Older Comments"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: comments.php:43 comments.php:64
|
#: comments.php:42 comments.php:62
|
||||||
msgid "Newer Comments →"
|
msgid "Newer Comments →"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: comments.php:74
|
#: comments.php:71
|
||||||
msgid "Comments are closed."
|
msgid "Comments are closed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:19
|
#: content-aside.php:17
|
||||||
msgid "Aside"
|
msgid "Aside"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:24 content-image.php:23 content-link.php:24
|
#: content-aside.php:22 content-image.php:21 content-link.php:22
|
||||||
#: content-quote.php:24 content-status.php:24 content.php:30
|
#: content-quote.php:24 content-status.php:21 content.php:30
|
||||||
msgid "Reply"
|
msgid "Reply"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:24 content-image.php:23 content-link.php:24
|
#: content-aside.php:22 content-image.php:21 content-link.php:22
|
||||||
#: content-quote.php:24 content-status.php:24 content.php:30
|
#: content-quote.php:24 content-status.php:21 content.php:30
|
||||||
msgctxt "comments number"
|
msgctxt "comments number"
|
||||||
msgid "1"
|
msgid "1"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:24 content-image.php:23 content-link.php:24
|
#: content-aside.php:22 content-image.php:21 content-link.php:22
|
||||||
#: content-quote.php:24 content-status.php:24 content.php:30
|
#: content-quote.php:24 content-status.php:21 content.php:30
|
||||||
msgctxt "comments number"
|
msgctxt "comments number"
|
||||||
msgid "%"
|
msgid "%"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:35 content-gallery.php:34 content-image.php:29
|
#: content-aside.php:33 content-gallery.php:32 content-image.php:27
|
||||||
#: content-link.php:35 content-quote.php:35 content-status.php:48
|
#: content-link.php:33 content-quote.php:35 content-status.php:34
|
||||||
#: content.php:41 functions.php:375
|
#: content.php:41 functions.php:345
|
||||||
msgid "Continue reading <span class=\"meta-nav\">→</span>"
|
msgid "Continue reading <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:36 content-featured.php:23 content-gallery.php:52
|
#: content-aside.php:34 content-featured.php:23 content-gallery.php:50
|
||||||
#: content-image.php:30 content-intro.php:18 content-link.php:36
|
#: content-image.php:28 content-intro.php:18 content-link.php:34
|
||||||
#: content-page.php:18 content-quote.php:36 content-single.php:24
|
#: content-page.php:18 content-quote.php:36 content-single.php:24
|
||||||
#: content-status.php:49 content.php:42 image.php:97
|
#: content-status.php:35 content.php:42 image.php:90
|
||||||
msgid "Pages:"
|
msgid "Pages:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:44 content-gallery.php:85 content-image.php:66
|
#: content-aside.php:42 content-gallery.php:83 content-image.php:64
|
||||||
#: content-link.php:44 content-quote.php:69 content-status.php:57
|
#: content-link.php:42 content-quote.php:69 content-status.php:43
|
||||||
#: content.php:79 showcase.php:202
|
#: content.php:79 showcase.php:201
|
||||||
msgid "Leave a reply"
|
msgid "Leave a reply"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:44 content-gallery.php:85 content-image.php:66
|
#: content-aside.php:42 content-gallery.php:83 content-image.php:64
|
||||||
#: content-link.php:44 content-quote.php:69 content-status.php:57
|
#: content-link.php:42 content-quote.php:69 content-status.php:43
|
||||||
#: content.php:79 showcase.php:202
|
#: content.php:79 showcase.php:201
|
||||||
msgid "<b>1</b> Reply"
|
msgid "<b>1</b> Reply"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:44 content-gallery.php:85 content-image.php:66
|
#: content-aside.php:42 content-gallery.php:83 content-image.php:64
|
||||||
#: content-link.php:44 content-quote.php:69 content-status.php:57
|
#: content-link.php:42 content-quote.php:69 content-status.php:43
|
||||||
#: content.php:79 showcase.php:202
|
#: content.php:79 showcase.php:201
|
||||||
msgid "<b>%</b> Replies"
|
msgid "<b>%</b> Replies"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:46 content-featured.php:45 content-gallery.php:88
|
#: content-aside.php:44 content-featured.php:45 content-gallery.php:86
|
||||||
#: content-image.php:70 content-intro.php:19 content-link.php:46
|
#: content-image.php:68 content-intro.php:19 content-link.php:44
|
||||||
#: content-page.php:21 content-quote.php:72 content-single.php:52
|
#: content-page.php:21 content-quote.php:72 content-single.php:52
|
||||||
#: content-status.php:59 content.php:82 functions.php:606 functions.php:634
|
#: content-status.php:45 content.php:82 functions.php:543 functions.php:571
|
||||||
#: image.php:41
|
#: image.php:41
|
||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: used between list items, there is a space after the comma
|
#. translators: used between list items, there is a space after the comma
|
||||||
#: content-featured.php:29 content-featured.php:38 content-gallery.php:60
|
#: content-featured.php:29 content-featured.php:38 content-gallery.php:58
|
||||||
#: content-gallery.php:70 content-image.php:49 content-image.php:58
|
#: content-gallery.php:68 content-image.php:47 content-image.php:56
|
||||||
#: content-quote.php:44 content-quote.php:54 content-single.php:30
|
#: content-quote.php:44 content-quote.php:54 content-single.php:30
|
||||||
#: content-single.php:33 content.php:51 content.php:63
|
#: content-single.php:33 content.php:51 content.php:63
|
||||||
msgid ", "
|
msgid ", "
|
||||||
|
@ -187,35 +187,35 @@ msgid ""
|
||||||
"\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
"\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-gallery.php:19
|
#: content-gallery.php:17
|
||||||
msgid "Gallery"
|
msgid "Gallery"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-gallery.php:45
|
#: content-gallery.php:43
|
||||||
msgid "This gallery contains <a %1$s>%2$s photo</a>."
|
msgid "This gallery contains <a %1$s>%2$s photo</a>."
|
||||||
msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
|
msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#: content-gallery.php:46 showcase.php:121
|
#: content-gallery.php:44 showcase.php:120
|
||||||
msgid "Permalink to %s"
|
msgid "Permalink to %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-gallery.php:64 content-image.php:53 content-quote.php:48
|
#: content-gallery.php:62 content-image.php:51 content-quote.php:48
|
||||||
#: content.php:55
|
#: content.php:55
|
||||||
msgid "<span class=\"%1$s\">Posted in</span> %2$s"
|
msgid "<span class=\"%1$s\">Posted in</span> %2$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-gallery.php:76 content-image.php:61 content-quote.php:60
|
#: content-gallery.php:74 content-image.php:59 content-quote.php:60
|
||||||
#: content.php:69
|
#: content.php:69
|
||||||
msgid "<span class=\"%1$s\">Tagged</span> %2$s"
|
msgid "<span class=\"%1$s\">Tagged</span> %2$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-image.php:18
|
#: content-image.php:16
|
||||||
msgid "Image"
|
msgid "Image"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-image.php:36
|
#: content-image.php:34
|
||||||
msgid ""
|
msgid ""
|
||||||
"<a href=\"%1$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%2$s"
|
"<a href=\"%1$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%2$s"
|
||||||
"\">%3$s</time></a><span class=\"by-author\"> <span class=\"sep\"> by </span> "
|
"\">%3$s</time></a><span class=\"by-author\"> <span class=\"sep\"> by </span> "
|
||||||
|
@ -223,11 +223,11 @@ msgid ""
|
||||||
"\" rel=\"author\">%6$s</a></span></span>"
|
"\" rel=\"author\">%6$s</a></span></span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-image.php:41 functions.php:672
|
#: content-image.php:39 functions.php:608
|
||||||
msgid "View all posts by %s"
|
msgid "View all posts by %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-link.php:19
|
#: content-link.php:17
|
||||||
msgid "Link"
|
msgid "Link"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -254,11 +254,11 @@ msgid ""
|
||||||
"\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
"\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-single.php:67
|
#: content-single.php:64
|
||||||
msgid "View all posts by %s <span class=\"meta-nav\">→</span>"
|
msgid "View all posts by %s <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-status.php:19
|
#: content-status.php:16
|
||||||
msgid "Status"
|
msgid "Status"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -266,17 +266,17 @@ msgstr ""
|
||||||
msgid "Featured"
|
msgid "Featured"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. #-#-#-#-# twentyeleven.pot (Twenty Eleven 1.7) #-#-#-#-#
|
#. #-#-#-#-# twentyeleven.pot (Twenty Eleven 1.6) #-#-#-#-#
|
||||||
#. Author URI of the plugin/theme
|
#. Author URI of the plugin/theme
|
||||||
#: footer.php:28
|
#: footer.php:27
|
||||||
msgid "http://wordpress.org/"
|
msgid "http://wordpress.org/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: footer.php:28
|
#: footer.php:27
|
||||||
msgid "Semantic Personal Publishing Platform"
|
msgid "Semantic Personal Publishing Platform"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: footer.php:28
|
#: footer.php:27
|
||||||
msgid "Proudly powered by %s"
|
msgid "Proudly powered by %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -285,108 +285,108 @@ msgid "Primary Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:184
|
#: functions.php:164
|
||||||
msgid "Wheel"
|
msgid "Wheel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:190
|
#: functions.php:170
|
||||||
msgid "Shore"
|
msgid "Shore"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:196
|
#: functions.php:176
|
||||||
msgid "Trolley"
|
msgid "Trolley"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:202
|
#: functions.php:182
|
||||||
msgid "Pine Cone"
|
msgid "Pine Cone"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:208
|
#: functions.php:188
|
||||||
msgid "Chessboard"
|
msgid "Chessboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:214
|
#: functions.php:194
|
||||||
msgid "Lanterns"
|
msgid "Lanterns"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:220
|
#: functions.php:200
|
||||||
msgid "Willow"
|
msgid "Willow"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:226
|
#: functions.php:206
|
||||||
msgid "Hanoi Plant"
|
msgid "Hanoi Plant"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:443
|
#: functions.php:394
|
||||||
msgid "Main Sidebar"
|
msgid "Main Sidebar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:452
|
#: functions.php:403
|
||||||
msgid "Showcase Sidebar"
|
msgid "Showcase Sidebar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:454
|
#: functions.php:405
|
||||||
msgid "The sidebar for the optional Showcase Template"
|
msgid "The sidebar for the optional Showcase Template"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:462
|
#: functions.php:413
|
||||||
msgid "Footer Area One"
|
msgid "Footer Area One"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:464 functions.php:474 functions.php:484
|
#: functions.php:415 functions.php:425 functions.php:435
|
||||||
msgid "An optional widget area for your site footer"
|
msgid "An optional widget area for your site footer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:472
|
#: functions.php:423
|
||||||
msgid "Footer Area Two"
|
msgid "Footer Area Two"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:482
|
#: functions.php:433
|
||||||
msgid "Footer Area Three"
|
msgid "Footer Area Three"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:506 single.php:18
|
#: functions.php:453 single.php:18
|
||||||
msgid "Post navigation"
|
msgid "Post navigation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:507
|
#: functions.php:454
|
||||||
msgid "<span class=\"meta-nav\">←</span> Older posts"
|
msgid "<span class=\"meta-nav\">←</span> Older posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:508
|
#: functions.php:455
|
||||||
msgid "Newer posts <span class=\"meta-nav\">→</span>"
|
msgid "Newer posts <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:606
|
#: functions.php:543
|
||||||
msgid "Pingback:"
|
msgid "Pingback:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: 1: comment author, 2: date and time
|
#. translators: 1: comment author, 2: date and time
|
||||||
#: functions.php:623
|
#: functions.php:560
|
||||||
msgid "%1$s on %2$s <span class=\"says\">said:</span>"
|
msgid "%1$s on %2$s <span class=\"says\">said:</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: 1: date, 2: time
|
#. translators: 1: date, 2: time
|
||||||
#: functions.php:629
|
#: functions.php:566
|
||||||
msgid "%1$s at %2$s"
|
msgid "%1$s at %2$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:638
|
#: functions.php:575
|
||||||
msgid "Your comment is awaiting moderation."
|
msgid "Your comment is awaiting moderation."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:647
|
#: functions.php:584
|
||||||
msgid "Reply <span>↓</span>"
|
msgid "Reply <span>↓</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:666
|
#: functions.php:602
|
||||||
msgid ""
|
msgid ""
|
||||||
"<span class=\"sep\">Posted on </span><a href=\"%1$s\" title=\"%2$s\" rel="
|
"<span class=\"sep\">Posted on </span><a href=\"%1$s\" title=\"%2$s\" rel="
|
||||||
"\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></"
|
"\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></"
|
||||||
|
@ -395,19 +395,19 @@ msgid ""
|
||||||
"\"author\">%7$s</a></span></span>"
|
"\"author\">%7$s</a></span></span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: header.php:43
|
#: header.php:45
|
||||||
msgid "Page %s"
|
msgid "Page %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: header.php:133
|
#: header.php:129
|
||||||
msgid "Main menu"
|
msgid "Main menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: header.php:135
|
#: header.php:131
|
||||||
msgid "Skip to primary content"
|
msgid "Skip to primary content"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: header.php:136
|
#: header.php:132
|
||||||
msgid "Skip to secondary content"
|
msgid "Skip to secondary content"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -431,23 +431,23 @@ msgid ""
|
||||||
"in <a href=\"%6$s\" title=\"Return to %7$s\" rel=\"gallery\">%8$s</a>"
|
"in <a href=\"%6$s\" title=\"Return to %7$s\" rel=\"gallery\">%8$s</a>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:56 inc/theme-options.php:530
|
#: inc/theme-options.php:55 inc/theme-options.php:474
|
||||||
msgid "Color Scheme"
|
msgid "Color Scheme"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:62 inc/theme-options.php:547
|
#: inc/theme-options.php:61 inc/theme-options.php:491
|
||||||
msgid "Link Color"
|
msgid "Link Color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:63
|
#: inc/theme-options.php:62
|
||||||
msgid "Default Layout"
|
msgid "Default Layout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:95 inc/theme-options.php:96
|
#: inc/theme-options.php:94 inc/theme-options.php:95
|
||||||
msgid "Theme Options"
|
msgid "Theme Options"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:111
|
#: inc/theme-options.php:110
|
||||||
msgid ""
|
msgid ""
|
||||||
"Some themes provide customization options that are grouped together on a "
|
"Some themes provide customization options that are grouped together on a "
|
||||||
"Theme Options screen. If you change themes, options may change or disappear, "
|
"Theme Options screen. If you change themes, options may change or disappear, "
|
||||||
|
@ -455,14 +455,14 @@ msgid ""
|
||||||
"following Theme Options:"
|
"following Theme Options:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:113
|
#: inc/theme-options.php:112
|
||||||
msgid ""
|
msgid ""
|
||||||
"<strong>Color Scheme</strong>: You can choose a color palette of \"Light"
|
"<strong>Color Scheme</strong>: You can choose a color palette of \"Light"
|
||||||
"\" (light background with dark text) or \"Dark\" (dark background with light "
|
"\" (light background with dark text) or \"Dark\" (dark background with light "
|
||||||
"text) for your site."
|
"text) for your site."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:114
|
#: inc/theme-options.php:113
|
||||||
msgid ""
|
msgid ""
|
||||||
"<strong>Link Color</strong>: You can choose the color used for text links on "
|
"<strong>Link Color</strong>: You can choose the color used for text links on "
|
||||||
"your site. You can enter the HTML color or hex code, or you can choose "
|
"your site. You can enter the HTML color or hex code, or you can choose "
|
||||||
|
@ -470,104 +470,104 @@ msgid ""
|
||||||
"wheel."
|
"wheel."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:115
|
#: inc/theme-options.php:114
|
||||||
msgid ""
|
msgid ""
|
||||||
"<strong>Default Layout</strong>: You can choose if you want your site’"
|
"<strong>Default Layout</strong>: You can choose if you want your site’"
|
||||||
"s default layout to have a sidebar on the left, the right, or not at all."
|
"s default layout to have a sidebar on the left, the right, or not at all."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:117
|
#: inc/theme-options.php:116
|
||||||
msgid ""
|
msgid ""
|
||||||
"Remember to click \"Save Changes\" to save any changes you have made to the "
|
"Remember to click \"Save Changes\" to save any changes you have made to the "
|
||||||
"theme options."
|
"theme options."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:119
|
#: inc/theme-options.php:118
|
||||||
msgid "For more information:"
|
msgid "For more information:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:120
|
#: inc/theme-options.php:119
|
||||||
msgid ""
|
msgid ""
|
||||||
"<a href=\"http://codex.wordpress.org/Appearance_Theme_Options_Screen\" "
|
"<a href=\"http://codex.wordpress.org/Appearance_Theme_Options_Screen\" "
|
||||||
"target=\"_blank\">Documentation on Theme Options</a>"
|
"target=\"_blank\">Documentation on Theme Options</a>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:121
|
#: inc/theme-options.php:120
|
||||||
msgid ""
|
msgid ""
|
||||||
"<a href=\"http://wordpress.org/support/\" target=\"_blank\">Support Forums</"
|
"<a href=\"http://wordpress.org/support/\" target=\"_blank\">Support Forums</"
|
||||||
"a>"
|
"a>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:128
|
#: inc/theme-options.php:127
|
||||||
msgid "Overview"
|
msgid "Overview"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:150
|
#: inc/theme-options.php:149
|
||||||
msgid "Light"
|
msgid "Light"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:156
|
#: inc/theme-options.php:155
|
||||||
msgid "Dark"
|
msgid "Dark"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:181
|
#: inc/theme-options.php:173
|
||||||
msgid "Content on left"
|
msgid "Content on left"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:186
|
#: inc/theme-options.php:178
|
||||||
msgid "Content on right"
|
msgid "Content on right"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:191
|
#: inc/theme-options.php:183
|
||||||
msgid "One-column, no sidebar"
|
msgid "One-column, no sidebar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:298
|
#: inc/theme-options.php:273
|
||||||
msgid "Select a Color"
|
msgid "Select a Color"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:301
|
#: inc/theme-options.php:276
|
||||||
msgid "Default color: %s"
|
msgid "Default color: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:337
|
#: inc/theme-options.php:312
|
||||||
msgid "%s Theme Options"
|
msgid "%s Theme Options"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/theme-options.php:554
|
#: inc/theme-options.php:498
|
||||||
msgid "Layout"
|
msgid "Layout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/widgets.php:23
|
#: inc/widgets.php:19
|
||||||
msgid ""
|
msgid ""
|
||||||
"Use this widget to list your recent Aside, Status, Quote, and Link posts"
|
"Use this widget to list your recent Aside, Status, Quote, and Link posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/widgets.php:24
|
#: inc/widgets.php:20
|
||||||
msgid "Twenty Eleven Ephemera"
|
msgid "Twenty Eleven Ephemera"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/widgets.php:59
|
#: inc/widgets.php:52
|
||||||
msgid "Ephemera"
|
msgid "Ephemera"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/widgets.php:98 inc/widgets.php:107
|
#: inc/widgets.php:91 inc/widgets.php:100
|
||||||
msgid "0 <span class=\"reply\">comments →</span>"
|
msgid "0 <span class=\"reply\">comments →</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/widgets.php:98 inc/widgets.php:107
|
#: inc/widgets.php:91 inc/widgets.php:100
|
||||||
msgid "1 <span class=\"reply\">comment →</span>"
|
msgid "1 <span class=\"reply\">comment →</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/widgets.php:98 inc/widgets.php:107
|
#: inc/widgets.php:91 inc/widgets.php:100
|
||||||
msgid "% <span class=\"reply\">comments →</span>"
|
msgid "% <span class=\"reply\">comments →</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/widgets.php:170
|
#: inc/widgets.php:150
|
||||||
msgid "Title:"
|
msgid "Title:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/widgets.php:173
|
#: inc/widgets.php:153
|
||||||
msgid "Number of posts to show:"
|
msgid "Number of posts to show:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -575,7 +575,7 @@ msgstr ""
|
||||||
msgid "Search Results for: %s"
|
msgid "Search Results for: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.php:48
|
#: search.php:46
|
||||||
msgid ""
|
msgid ""
|
||||||
"Sorry, but nothing matched your search criteria. Please try again with some "
|
"Sorry, but nothing matched your search criteria. Please try again with some "
|
||||||
"different keywords."
|
"different keywords."
|
||||||
|
@ -585,15 +585,15 @@ msgstr ""
|
||||||
msgid "Search"
|
msgid "Search"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: showcase.php:78
|
#: showcase.php:77
|
||||||
msgid "Featured Post"
|
msgid "Featured Post"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: showcase.php:151
|
#: showcase.php:150
|
||||||
msgid "Featuring: %s"
|
msgid "Featuring: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: showcase.php:161
|
#: showcase.php:160
|
||||||
msgid "Recent Posts"
|
msgid "Recent Posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Theme URI: http://wordpress.org/themes/twentyeleven
|
||||||
Author: the WordPress team
|
Author: the WordPress team
|
||||||
Author URI: http://wordpress.org/
|
Author URI: http://wordpress.org/
|
||||||
Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats.
|
Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats.
|
||||||
Version: 1.7
|
Version: 1.6
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-width, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
|
Tags: dark, light, white, black, gray, one-column, two-columns, left-sidebar, right-sidebar, fixed-width, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
|
||||||
|
|
|
@ -278,7 +278,7 @@ a:focus {
|
||||||
|
|
||||||
a:active,
|
a:active,
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #55d737;
|
color: #5ff23d;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -118,14 +118,14 @@ endif; // twentyfourteen_setup
|
||||||
add_action( 'after_setup_theme', 'twentyfourteen_setup' );
|
add_action( 'after_setup_theme', 'twentyfourteen_setup' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adjust content_width value for image attachment template.
|
* Adjust content_width value for full-width and attachment templates.
|
||||||
*
|
*
|
||||||
* @since Twenty Fourteen 1.0
|
* @since Twenty Fourteen 1.0
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function twentyfourteen_content_width() {
|
function twentyfourteen_content_width() {
|
||||||
if ( is_attachment() && wp_attachment_is_image() )
|
if ( is_attachment() )
|
||||||
$GLOBALS['content_width'] = 810;
|
$GLOBALS['content_width'] = 810;
|
||||||
}
|
}
|
||||||
add_action( 'template_redirect', 'twentyfourteen_content_width' );
|
add_action( 'template_redirect', 'twentyfourteen_content_width' );
|
||||||
|
@ -239,7 +239,7 @@ function twentyfourteen_scripts() {
|
||||||
if ( is_active_sidebar( 'sidebar-3' ) )
|
if ( is_active_sidebar( 'sidebar-3' ) )
|
||||||
wp_enqueue_script( 'jquery-masonry' );
|
wp_enqueue_script( 'jquery-masonry' );
|
||||||
|
|
||||||
wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20131011', true );
|
wp_enqueue_script( 'twentyfourteen-theme', get_template_directory_uri() . '/js/theme.js', array( 'jquery' ), '20130820', true );
|
||||||
|
|
||||||
// Add Lato font used in the main stylesheet.
|
// Add Lato font used in the main stylesheet.
|
||||||
wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );
|
wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );
|
||||||
|
@ -374,11 +374,6 @@ function twentyfourteen_body_classes( $classes ) {
|
||||||
if ( is_multi_author() )
|
if ( is_multi_author() )
|
||||||
$classes[] = 'group-blog';
|
$classes[] = 'group-blog';
|
||||||
|
|
||||||
if ( get_header_image() )
|
|
||||||
$classes[] = 'header-image';
|
|
||||||
else
|
|
||||||
$classes[] = 'masthead-fixed';
|
|
||||||
|
|
||||||
if ( is_archive() || is_search() || is_home() )
|
if ( is_archive() || is_search() || is_home() )
|
||||||
$classes[] = 'list-view';
|
$classes[] = 'list-view';
|
||||||
|
|
||||||
|
|
|
@ -39,17 +39,21 @@
|
||||||
<div class="header-main">
|
<div class="header-main">
|
||||||
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
||||||
|
|
||||||
<div class="search-toggle">
|
<div class="header-extra">
|
||||||
<a href="#search-container" class="screen-reader-text"><?php _e( 'Search', 'twentyfourteen' ); ?></a>
|
<div class="search-toggle">
|
||||||
|
<a href="#search-container"><?php _e( 'Search', 'twentyfourteen' ); ?></a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav id="primary-navigation" class="site-navigation primary-navigation" role="navigation">
|
<nav role="navigation" class="site-navigation primary-navigation">
|
||||||
<h1 class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></h1>
|
<h1 class="screen-reader-text"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></h1>
|
||||||
<a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
|
<a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a></a>
|
||||||
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
|
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="mobile-navigations" class="hide"></div>
|
||||||
|
|
||||||
<div id="search-container" class="search-box-wrapper hide">
|
<div id="search-container" class="search-box-wrapper hide">
|
||||||
<div class="search-box clear">
|
<div class="search-box clear">
|
||||||
<?php get_search_form(); ?>
|
<?php get_search_form(); ?>
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
||||||
width="5px" height="5px" viewBox="0 0 5 5" enable-background="new 0 0 5 5" xml:space="preserve">
|
|
||||||
<g>
|
|
||||||
<polygon points="1,0 0,1 0,5 5,0 "/>
|
|
||||||
<polygon points="5,5 5,1 1,5 "/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 322 B |
|
@ -1,7 +0,0 @@
|
||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
||||||
width="5px" height="5px" viewBox="0 0 5 5" enable-background="new 0 0 5 5" xml:space="preserve">
|
|
||||||
<g>
|
|
||||||
<polygon fill="#FFFFFF" points="1,0 0,1 0,5 5,0 "/>
|
|
||||||
<polygon fill="#FFFFFF" points="5,5 5,1 1,5 "/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 352 B |
|
@ -55,8 +55,8 @@ add_action( 'customize_preview_init', 'twentyfourteen_customize_preview_js' );
|
||||||
function twentyfourteen_generate_accent_colors( $color ) {
|
function twentyfourteen_generate_accent_colors( $color ) {
|
||||||
$color = sanitize_hex_color( $color );
|
$color = sanitize_hex_color( $color );
|
||||||
|
|
||||||
set_theme_mod( 'accent_lighter', twentyfourteen_adjust_color( $color, 29 ) );
|
set_theme_mod( 'accent_lighter', twentyfourteen_adjust_color( $color, 14 ) );
|
||||||
set_theme_mod( 'accent_much_lighter', twentyfourteen_adjust_color( $color, 49 ) );
|
set_theme_mod( 'accent_much_lighter', twentyfourteen_adjust_color( $color, 71 ) );
|
||||||
|
|
||||||
return $color;
|
return $color;
|
||||||
}
|
}
|
||||||
|
@ -115,30 +115,41 @@ function twentyfourteen_customizer_styles() {
|
||||||
$accent_much_lighter = get_theme_mod( 'accent_much_lighter' );
|
$accent_much_lighter = get_theme_mod( 'accent_much_lighter' );
|
||||||
|
|
||||||
$css = '/* Custom accent color. */
|
$css = '/* Custom accent color. */
|
||||||
|
h1 a:hover,
|
||||||
|
h2 a:hover,
|
||||||
|
h3 a:hover,
|
||||||
|
h4 a:hover,
|
||||||
|
h5 a:hover,
|
||||||
|
h6 a:hover,
|
||||||
a,
|
a,
|
||||||
|
.entry-title a:hover,
|
||||||
|
.cat-links a:hover,
|
||||||
|
.site-content .post-navigation a:hover,
|
||||||
|
.site-content .image-navigation a:hover,
|
||||||
|
.comment-author a:hover,
|
||||||
|
.comment-metadata a:hover,
|
||||||
|
.comment-list .trackback a:hover,
|
||||||
|
.comment-list .pingback a:hover,
|
||||||
.paging-navigation .page-numbers.current,
|
.paging-navigation .page-numbers.current,
|
||||||
|
.content-sidebar.widget-area a:hover,
|
||||||
.content-sidebar .widget_twentyfourteen_ephemera .post-format-archive-link {
|
.content-sidebar .widget_twentyfourteen_ephemera .post-format-archive-link {
|
||||||
color: ' . $accent_color . ';
|
color: ' . $accent_color . ';
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
.contributor-posts-link,
|
html input[type="button"],
|
||||||
input[type="button"],
|
|
||||||
input[type="reset"],
|
input[type="reset"],
|
||||||
input[type="submit"],
|
input[type="submit"],
|
||||||
.search-toggle,
|
|
||||||
.hentry .mejs-controls .mejs-time-rail .mejs-time-current,
|
.hentry .mejs-controls .mejs-time-rail .mejs-time-current,
|
||||||
|
.header-extra,
|
||||||
|
.search-toggle,
|
||||||
|
.primary-navigation ul ul,
|
||||||
|
.primary-navigation li:hover > a,
|
||||||
|
.page-links a:hover,
|
||||||
.widget_calendar tbody a {
|
.widget_calendar tbody a {
|
||||||
background-color: ' . $accent_color . ';
|
background-color: ' . $accent_color . ';
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 782px) {
|
|
||||||
.primary-navigation ul ul,
|
|
||||||
.primary-navigation li:hover > a {
|
|
||||||
background-color: ' . $accent_color . ';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
::-moz-selection {
|
::-moz-selection {
|
||||||
background: ' . $accent_color . ';
|
background: ' . $accent_color . ';
|
||||||
}
|
}
|
||||||
|
@ -147,64 +158,47 @@ function twentyfourteen_customizer_styles() {
|
||||||
background: ' . $accent_color . ';
|
background: ' . $accent_color . ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page-links a:hover,
|
||||||
.paging-navigation .page-numbers.current {
|
.paging-navigation .page-numbers.current {
|
||||||
border-color: ' . $accent_color . ';
|
border-color: ' . $accent_color . ';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generated variant of custom accent color: slightly lighter. */
|
/* Generated variant of custom accent color: slightly lighter. */
|
||||||
button:hover,
|
|
||||||
button:focus,
|
|
||||||
.contributor-posts-link:hover,
|
|
||||||
input[type="button"]:hover,
|
|
||||||
input[type="button"]:focus,
|
|
||||||
input[type="reset"]:hover,
|
|
||||||
input[type="reset"]:focus,
|
|
||||||
input[type="submit"]:hover,
|
|
||||||
input[type="submit"]:focus,
|
|
||||||
.search-toggle:hover,
|
.search-toggle:hover,
|
||||||
.search-toggle.active,
|
.search-toggle.active,
|
||||||
.search-box,
|
.search-box,
|
||||||
.primary-navigation ul ul a:hover,
|
button:hover,
|
||||||
|
html input[type="button"]:hover,
|
||||||
|
input[type="reset"]:hover,
|
||||||
|
input[type="submit"]:hover,
|
||||||
|
button:focus,
|
||||||
|
html input[type="button"]:focus,
|
||||||
|
input[type="reset"]:focus,
|
||||||
|
input[type="submit"]:focus,
|
||||||
.widget_calendar tbody a:hover {
|
.widget_calendar tbody a:hover {
|
||||||
background-color: ' . $accent_lighter . ';
|
background-color: ' . $accent_lighter . ';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Generated variant of custom accent color: much lighter. */
|
/* Generated variant of custom accent color: much lighter. */
|
||||||
button:active,
|
button:active,
|
||||||
.contributor-posts-link:active,
|
html input[type="button"]:active,
|
||||||
input[type="button"]:active,
|
|
||||||
input[type="reset"]:active,
|
input[type="reset"]:active,
|
||||||
input[type="submit"]:active,
|
input[type="submit"]:active {
|
||||||
.page-links a:hover {
|
|
||||||
background-color: ' . $accent_much_lighter . ';
|
background-color: ' . $accent_much_lighter . ';
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover,
|
a:hover,
|
||||||
a:focus,
|
a:focus,
|
||||||
a:active,
|
a:active,
|
||||||
.site-navigation .current_page_item > a,
|
.primary-navigation li.current_page_item > a,
|
||||||
.site-navigation .current_page_ancestor > a,
|
.primary-navigation li.current-menu-item > a,
|
||||||
.site-navigation .current-menu-item > a,
|
|
||||||
.site-navigation .current-menu-ancestor > a,
|
|
||||||
.secondary-navigation a:hover,
|
.secondary-navigation a:hover,
|
||||||
.entry-title a:hover,
|
#secondary .current_page_item > a,
|
||||||
.cat-links a:hover,
|
#secondary .current-menu-item > a,
|
||||||
.post-navigation a:hover,
|
.featured-content a:hover,
|
||||||
.image-navigation a:hover,
|
.featured-content .more-link,
|
||||||
.comment-author a:hover,
|
.widget-area a:hover {
|
||||||
.comment-list .pingback a:hover,
|
|
||||||
.comment-list .trackback a:hover,
|
|
||||||
.comment-metadata a:hover,
|
|
||||||
.footer-sidebar a:hover,
|
|
||||||
.primary-sidebar a:hover,
|
|
||||||
.content-sidebar .widget_twentyfourteen_ephemera .post-format-archive-link:hover,
|
|
||||||
.featured-content a:hover {
|
|
||||||
color: ' . $accent_much_lighter . ';
|
color: ' . $accent_much_lighter . ';
|
||||||
}
|
|
||||||
|
|
||||||
.page-links a:hover,
|
|
||||||
.paging-navigation a:hover {
|
|
||||||
border-color: ' . $accent_much_lighter . ';
|
|
||||||
}';
|
}';
|
||||||
|
|
||||||
wp_add_inline_style( 'twentyfourteen-style', $css );
|
wp_add_inline_style( 'twentyfourteen-style', $css );
|
||||||
|
|
|
@ -340,7 +340,7 @@ class Featured_Content {
|
||||||
<input class="small-text" type="number" step="1" min="1" max="<?php echo esc_attr( self::$max_posts ); ?>" id="featured-content-quantity" name="featured-content[quantity]" value="<?php echo esc_attr( $settings['quantity'] ); ?>">
|
<input class="small-text" type="number" step="1" min="1" max="<?php echo esc_attr( self::$max_posts ); ?>" id="featured-content-quantity" name="featured-content[quantity]" value="<?php echo esc_attr( $settings['quantity'] ); ?>">
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<input type="checkbox" id="featured-content-hide-tag" name="featured-content[hide-tag]" <?php checked( $settings['hide-tag'], 1 ); ?>>
|
<input type="checkbox" id="featured-content-hide-tag" name="featured-content[hide-tag]" <?php checked( $settings['hide-tag'], 1 ); ?>">
|
||||||
<label for="featured-content-hide-tag"><?php _e( 'Hide tag from displaying in post meta and tag clouds.', 'twentyfourteen' ); ?></label>
|
<label for="featured-content-hide-tag"><?php _e( 'Hide tag from displaying in post meta and tag clouds.', 'twentyfourteen' ); ?></label>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -80,12 +80,8 @@ function twentyfourteen_post_nav() {
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1>
|
<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
<?php
|
<?php
|
||||||
if ( is_attachment() ) :
|
|
||||||
previous_post_link( '%link', __( '<span class="meta-nav">Published In</span>%title', 'twentyfourteen' ) );
|
|
||||||
else :
|
|
||||||
previous_post_link( '%link', __( '<span class="meta-nav">Previous Post</span>%title', 'twentyfourteen' ) );
|
previous_post_link( '%link', __( '<span class="meta-nav">Previous Post</span>%title', 'twentyfourteen' ) );
|
||||||
next_post_link( '%link', __( '<span class="meta-nav">Next Post</span>%title', 'twentyfourteen' ) );
|
next_post_link( '%link', __( '<span class="meta-nav">Next Post</span>%title', 'twentyfourteen' ) );
|
||||||
endif;
|
|
||||||
?>
|
?>
|
||||||
</div><!-- .nav-links -->
|
</div><!-- .nav-links -->
|
||||||
</nav><!-- .navigation -->
|
</nav><!-- .navigation -->
|
||||||
|
|
|
@ -166,7 +166,7 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget {
|
||||||
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
|
the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' );
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
printf( __( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%5$s</a></span></span>', 'twentyfourteen' ),
|
printf( __( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="author vcard"><a class="url fn n" href="%4$s" rel="author">%5s</a></span></span>', 'twentyfourteen' ),
|
||||||
esc_url( get_permalink() ),
|
esc_url( get_permalink() ),
|
||||||
esc_attr( get_the_date( 'c' ) ),
|
esc_attr( get_the_date( 'c' ) ),
|
||||||
esc_html( get_the_date() ),
|
esc_html( get_the_date() ),
|
||||||
|
|
|
@ -1,101 +0,0 @@
|
||||||
( function( $ ) {
|
|
||||||
var body = $( 'body' ),
|
|
||||||
_window = $( window );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Enables menu toggle for small screens.
|
|
||||||
*/
|
|
||||||
( function() {
|
|
||||||
var nav = $( '#primary-navigation' ), button, menu;
|
|
||||||
if ( ! nav )
|
|
||||||
return;
|
|
||||||
|
|
||||||
button = nav.find( '.menu-toggle' );
|
|
||||||
if ( ! button )
|
|
||||||
return;
|
|
||||||
|
|
||||||
// Hide button if menu is missing or empty.
|
|
||||||
menu = nav.find( '.nav-menu' );
|
|
||||||
if ( ! menu || ! menu.children().length ) {
|
|
||||||
button.hide();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$( '.menu-toggle' ).on( 'click.twentyfourteen', function() {
|
|
||||||
nav.toggleClass( 'toggled-on' );
|
|
||||||
} );
|
|
||||||
} )();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Makes "skip to content" link work correctly in IE9 and Chrome for better
|
|
||||||
* accessibility.
|
|
||||||
*
|
|
||||||
* @link http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/
|
|
||||||
*/
|
|
||||||
_window.on( 'hashchange.twentyfourteen', function() {
|
|
||||||
var element = document.getElementById( location.hash.substring( 1 ) );
|
|
||||||
|
|
||||||
if ( element ) {
|
|
||||||
if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) )
|
|
||||||
element.tabIndex = -1;
|
|
||||||
|
|
||||||
element.focus();
|
|
||||||
};
|
|
||||||
} );
|
|
||||||
|
|
||||||
$( function() {
|
|
||||||
/**
|
|
||||||
* Search toggle.
|
|
||||||
*/
|
|
||||||
$( '.search-toggle' ).on( 'click.twentyfourteen', function() {
|
|
||||||
var that = $( this ),
|
|
||||||
wrapper = $( '.search-box-wrapper' );
|
|
||||||
|
|
||||||
that.toggleClass( 'active' );
|
|
||||||
wrapper.toggleClass( 'hide' );
|
|
||||||
|
|
||||||
if ( that.is( '.active' ) )
|
|
||||||
wrapper.find( '.search-field' ).focus();
|
|
||||||
} );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Fixed navbar.
|
|
||||||
*
|
|
||||||
* The callback on the scroll event is only added if there is a header
|
|
||||||
* image and we are not on mobile.
|
|
||||||
*/
|
|
||||||
if ( body.is( '.header-image' ) && _window.width() > 781 ) {
|
|
||||||
var toolbarOffset = body.is( '.admin-bar' ) ? $( '#wpadminbar' ).height() : 0,
|
|
||||||
mastheadOffset = $( '#masthead' ).offset().top - toolbarOffset;
|
|
||||||
|
|
||||||
_window.on( 'scroll.twentyfourteen', function() {
|
|
||||||
if ( window.scrollY > mastheadOffset )
|
|
||||||
body.addClass( 'masthead-fixed' );
|
|
||||||
else
|
|
||||||
body.removeClass( 'masthead-fixed' );
|
|
||||||
} );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Focus styles for primary menu.
|
|
||||||
*/
|
|
||||||
$( '.primary-navigation' ).find( 'a' ).on( 'focus.twentyfourteen blur.twentyfourteen', function() {
|
|
||||||
$( this ).parents().toggleClass( 'focus' );
|
|
||||||
} );
|
|
||||||
} );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Arranges footer widgets vertically.
|
|
||||||
*/
|
|
||||||
if ( $.isFunction( $.fn.masonry ) ) {
|
|
||||||
$( '#footer-sidebar' ).masonry( {
|
|
||||||
itemSelector: '.widget',
|
|
||||||
columnWidth: function( containerWidth ) {
|
|
||||||
return containerWidth / 4;
|
|
||||||
},
|
|
||||||
gutterWidth: 0,
|
|
||||||
isResizable: true,
|
|
||||||
isRTL: $( 'body' ).is( '.rtl' )
|
|
||||||
} );
|
|
||||||
}
|
|
||||||
} )( jQuery );
|
|
|
@ -0,0 +1,124 @@
|
||||||
|
( function( $ ) {
|
||||||
|
|
||||||
|
$( document ).ready( function() {
|
||||||
|
|
||||||
|
var $primaryNaviClone,
|
||||||
|
$secondaryNaviClone,
|
||||||
|
$masthead = $( '#masthead' ),
|
||||||
|
$secondaryTop = $( '#secondary-top' ),
|
||||||
|
$mobileNavigations = $( '#mobile-navigations'),
|
||||||
|
$searchBoxWrapper = $( 'div.search-box-wrapper' ),
|
||||||
|
$searchToggle = $( 'div.search-toggle' ),
|
||||||
|
timeout = false;
|
||||||
|
|
||||||
|
// Toggle function.
|
||||||
|
function menuToggle() {
|
||||||
|
$( 'span#nav-toggle' ).toggleClass( 'active' );
|
||||||
|
$masthead.find( '#mobile-navigations' ).toggleClass( 'hide' );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Click event for toggle the search
|
||||||
|
$searchToggle.click( function() {
|
||||||
|
$( this ).toggleClass( 'active' );
|
||||||
|
$searchBoxWrapper.toggleClass( 'hide' );
|
||||||
|
|
||||||
|
if ( $( this ).hasClass( 'active' ) )
|
||||||
|
$searchBoxWrapper.find( '.search-field' ).focus();
|
||||||
|
} );
|
||||||
|
|
||||||
|
// DOM manipulations for mobile header
|
||||||
|
function mobileHeader() {
|
||||||
|
// Check if the toggler exists. If not add it.
|
||||||
|
if ( ! $( '#nav-toggle' ).length )
|
||||||
|
$( '<span id="nav-toggle" class="genericon" />' ).appendTo( $masthead );
|
||||||
|
|
||||||
|
// Clone and detach the primary navigation for use later
|
||||||
|
$primaryNaviClone = $masthead.find( 'nav.primary-navigation' ).detach();
|
||||||
|
|
||||||
|
// Clone and detach the secondary navigation for use later
|
||||||
|
$secondaryNaviClone = $secondaryTop.find( 'nav.secondary-navigation' ).detach();
|
||||||
|
|
||||||
|
// Prepend the primary navigation clone to #mobile-navigations and remove the class and add an id
|
||||||
|
$primaryNaviClone.prependTo( $mobileNavigations ).removeClass( 'primary-navigation' ).addClass( 'mobile-navigation' ).attr( 'id', 'primary-mobile-navigation' );
|
||||||
|
|
||||||
|
// Append the secondary navigation clone to #mobile-navigations and remove the class and add an id
|
||||||
|
$secondaryNaviClone.appendTo( $mobileNavigations ).removeClass( 'secondary-navigation' ).addClass( 'mobile-navigation' ).attr( 'id', 'secondary-mobile-navigation' );
|
||||||
|
|
||||||
|
// Remove the click event first and bind it after to make sure it's invoked once.
|
||||||
|
$( 'span#nav-toggle' ).off( 'click', menuToggle ).click( menuToggle );
|
||||||
|
};
|
||||||
|
|
||||||
|
// DOM manupilations for desktop header
|
||||||
|
function normalHeader() {
|
||||||
|
// Check if the toggler exists. If it does remove it.
|
||||||
|
if ( $( 'span#nav-toggle').length )
|
||||||
|
$( 'span#nav-toggle' ).remove();
|
||||||
|
|
||||||
|
// Clone and detach the primary mobile navigation for use later
|
||||||
|
$primaryNaviClone = $mobileNavigations.find( '#primary-mobile-navigation' ).detach();
|
||||||
|
|
||||||
|
// Clone and detach the secondary mobile navigation for use later
|
||||||
|
$secondaryNaviClone = $mobileNavigations.find( '#secondary-mobile-navigation' ).detach();
|
||||||
|
|
||||||
|
// Append the secondary navigation clone to #mobile-navigations and remove the class and add an id
|
||||||
|
$primaryNaviClone.appendTo( '.header-main' ).removeClass( 'mobile-navigation' ).removeAttr( 'id' ).addClass( 'primary-navigation' );
|
||||||
|
|
||||||
|
// Append the secondary navigation clone to #mobile-navigations and remove the class and add an id
|
||||||
|
$secondaryNaviClone.appendTo( $secondaryTop ).removeClass( 'mobile-navigation' ).removeAttr( 'id' ).addClass( 'secondary-navigation' );
|
||||||
|
};
|
||||||
|
|
||||||
|
// Check viewport width when user resizes the browser window.
|
||||||
|
$( window ).resize( function() {
|
||||||
|
if ( false !== timeout )
|
||||||
|
clearTimeout( timeout );
|
||||||
|
|
||||||
|
timeout = setTimeout( function() {
|
||||||
|
if ( $( window ).width() < 770 ) {
|
||||||
|
mobileHeader();
|
||||||
|
} else {
|
||||||
|
normalHeader();
|
||||||
|
}
|
||||||
|
}, 100 );
|
||||||
|
|
||||||
|
} ).resize();
|
||||||
|
|
||||||
|
// Sticky header.
|
||||||
|
var $mastheadOffset = -1,
|
||||||
|
$toolbarOffset = $( 'body' ).is( '.admin-bar' ) ? 32 : 0,
|
||||||
|
$maindiv = $( '#main' );
|
||||||
|
|
||||||
|
$( window ).on( 'scroll', false, function() {
|
||||||
|
if ( $mastheadOffset < 0 )
|
||||||
|
$mastheadOffset = $masthead.offset().top - $toolbarOffset;
|
||||||
|
|
||||||
|
if ( ( window.scrollY > $mastheadOffset ) && ( $( window ).width() > 769 ) ) {
|
||||||
|
$masthead.addClass( 'masthead-fixed' );
|
||||||
|
$maindiv.css( {
|
||||||
|
marginTop: $masthead.height()
|
||||||
|
} );
|
||||||
|
} else {
|
||||||
|
$masthead.removeClass( 'masthead-fixed' );
|
||||||
|
$maindiv.css( {
|
||||||
|
marginTop: 0
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
|
// Arranges footer widgets vertically.
|
||||||
|
if ( $.isFunction( $.fn.masonry ) ) {
|
||||||
|
|
||||||
|
$( '#footer-sidebar' ).masonry( {
|
||||||
|
itemSelector: '.widget',
|
||||||
|
columnWidth: 315,
|
||||||
|
gutterWidth: 0,
|
||||||
|
isRTL: $( 'body' ).is( '.rtl' )
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
|
} );
|
||||||
|
|
||||||
|
/* Focus styles for primary menu. */
|
||||||
|
$( '.primary-navigation' ).find( 'a' ).on( 'focus.twentyfourteen blur.twentyfourteen', function() {
|
||||||
|
$( this ).parents().toggleClass( 'focus' );
|
||||||
|
});
|
||||||
|
} )( jQuery );
|
|
@ -59,17 +59,22 @@ li > ol {
|
||||||
/* =Header
|
/* =Header
|
||||||
----------------------------------------------- */
|
----------------------------------------------- */
|
||||||
|
|
||||||
.search-toggle {
|
.header-main {
|
||||||
float: left;
|
margin-left: 48px;
|
||||||
margin-left: 38px;
|
padding-right: 10px;
|
||||||
|
padding-left: 0;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header-extra {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
.site-title {
|
.site-title {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-toggle {
|
#nav-toggle {
|
||||||
left: 0;
|
left: 0;
|
||||||
right: auto;
|
right: auto;
|
||||||
}
|
}
|
||||||
|
@ -88,17 +93,18 @@ li > ol {
|
||||||
----------------------------------------------- */
|
----------------------------------------------- */
|
||||||
|
|
||||||
/* Primary Navigation */
|
/* Primary Navigation */
|
||||||
|
.primary-navigation {
|
||||||
|
float: left;
|
||||||
|
margin: 0 -10px 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.primary-navigation ul {
|
.primary-navigation ul {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.primary-navigation ul ul li {
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.primary-navigation ul ul {
|
.primary-navigation ul ul {
|
||||||
|
float: right;
|
||||||
right: -999em;
|
right: -999em;
|
||||||
left: auto;
|
left: auto;
|
||||||
}
|
}
|
||||||
|
@ -487,13 +493,10 @@ blockquote.alignleft {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 782px) {
|
@media screen and (min-width: 770px) {
|
||||||
.header-main {
|
.header-main {
|
||||||
padding: 0 27px 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-toggle {
|
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Twenty Ten 1.6\n"
|
"Project-Id-Version: Twenty Ten 1.6\n"
|
||||||
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyten\n"
|
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentyten\n"
|
||||||
"POT-Creation-Date: 2013-10-24 19:42:39+00:00\n"
|
"POT-Creation-Date: 2013-08-01 18:14:06+00:00\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -22,37 +22,37 @@ msgid ""
|
||||||
"will help."
|
"will help."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: archive.php:34
|
#: archive.php:33
|
||||||
msgid "Daily Archives: <span>%s</span>"
|
msgid "Daily Archives: <span>%s</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: archive.php:36
|
#: archive.php:35
|
||||||
msgid "Monthly Archives: <span>%s</span>"
|
msgid "Monthly Archives: <span>%s</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: archive.php:36
|
#: archive.php:35
|
||||||
msgctxt "monthly archives date format"
|
msgctxt "monthly archives date format"
|
||||||
msgid "F Y"
|
msgid "F Y"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: archive.php:38
|
#: archive.php:37
|
||||||
msgid "Yearly Archives: <span>%s</span>"
|
msgid "Yearly Archives: <span>%s</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: archive.php:38
|
#: archive.php:37
|
||||||
msgctxt "yearly archives date format"
|
msgctxt "yearly archives date format"
|
||||||
msgid "Y"
|
msgid "Y"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: archive.php:40
|
#: archive.php:39
|
||||||
msgid "Blog Archives"
|
msgid "Blog Archives"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: author.php:28
|
#: author.php:27
|
||||||
msgid "Author Archives: %s"
|
msgid "Author Archives: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: author.php:47 loop-single.php:46
|
#: author.php:37 loop-single.php:43
|
||||||
msgid "About %s"
|
msgid "About %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -65,168 +65,168 @@ msgid ""
|
||||||
"This post is password protected. Enter the password to view any comments."
|
"This post is password protected. Enter the password to view any comments."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: comments.php:36
|
#: comments.php:35
|
||||||
msgid "One Response to %2$s"
|
msgid "One Response to %2$s"
|
||||||
msgid_plural "%1$s Responses to %2$s"
|
msgid_plural "%1$s Responses to %2$s"
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#: comments.php:42 comments.php:62
|
#: comments.php:41 comments.php:60
|
||||||
msgid "<span class=\"meta-nav\">←</span> Older Comments"
|
msgid "<span class=\"meta-nav\">←</span> Older Comments"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: comments.php:43 comments.php:63
|
#: comments.php:42 comments.php:61
|
||||||
msgid "Newer Comments <span class=\"meta-nav\">→</span>"
|
msgid "Newer Comments <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: comments.php:73
|
#: comments.php:70
|
||||||
msgid "Comments are closed."
|
msgid "Comments are closed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. #-#-#-#-# twentyten.pot (Twenty Ten 1.6) #-#-#-#-#
|
#. #-#-#-#-# twentyten.pot (Twenty Ten 1.6) #-#-#-#-#
|
||||||
#. Author URI of the plugin/theme
|
#. Author URI of the plugin/theme
|
||||||
#: footer.php:40
|
#: footer.php:33
|
||||||
msgid "http://wordpress.org/"
|
msgid "http://wordpress.org/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: footer.php:40
|
#: footer.php:33
|
||||||
msgid "Semantic Personal Publishing Platform"
|
msgid "Semantic Personal Publishing Platform"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: footer.php:40
|
#: footer.php:33
|
||||||
msgid "Proudly powered by %s."
|
msgid "Proudly powered by %s."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:95
|
#: functions.php:93
|
||||||
msgid "Primary Navigation"
|
msgid "Primary Navigation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:165
|
#: functions.php:145
|
||||||
msgid "Berries"
|
msgid "Berries"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:171
|
#: functions.php:151
|
||||||
msgid "Cherry Blossoms"
|
msgid "Cherry Blossoms"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:177
|
#: functions.php:157
|
||||||
msgid "Concave"
|
msgid "Concave"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:183
|
#: functions.php:163
|
||||||
msgid "Fern"
|
msgid "Fern"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:189
|
#: functions.php:169
|
||||||
msgid "Forest Floor"
|
msgid "Forest Floor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:195
|
#: functions.php:175
|
||||||
msgid "Inkwell"
|
msgid "Inkwell"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:201
|
#: functions.php:181
|
||||||
msgid "Path"
|
msgid "Path"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: header image description
|
#. translators: header image description
|
||||||
#: functions.php:207
|
#: functions.php:187
|
||||||
msgid "Sunset"
|
msgid "Sunset"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:280 loop-attachment.php:118 loop.php:116 loop.php:144
|
#: functions.php:255 loop-attachment.php:104 loop.php:114 loop.php:142
|
||||||
msgid "Continue reading <span class=\"meta-nav\">→</span>"
|
msgid "Continue reading <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:373
|
#: functions.php:338
|
||||||
msgid "%s <span class=\"says\">says:</span>"
|
msgid "%s <span class=\"says\">says:</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:376
|
#: functions.php:341
|
||||||
msgid "Your comment is awaiting moderation."
|
msgid "Your comment is awaiting moderation."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: 1: date, 2: time
|
#. translators: 1: date, 2: time
|
||||||
#: functions.php:383
|
#: functions.php:348
|
||||||
msgid "%1$s at %2$s"
|
msgid "%1$s at %2$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:383 functions.php:400
|
#: functions.php:348 functions.php:365
|
||||||
msgid "(Edit)"
|
msgid "(Edit)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:400
|
#: functions.php:365
|
||||||
msgid "Pingback:"
|
msgid "Pingback:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:420
|
#: functions.php:384
|
||||||
msgid "Primary Widget Area"
|
msgid "Primary Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:422
|
#: functions.php:386
|
||||||
msgid "Add widgets here to appear in your sidebar."
|
msgid "Add widgets here to appear in your sidebar."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:431
|
#: functions.php:395
|
||||||
msgid "Secondary Widget Area"
|
msgid "Secondary Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:433
|
#: functions.php:397
|
||||||
msgid ""
|
msgid ""
|
||||||
"An optional secondary widget area, displays below the primary widget area in "
|
"An optional secondary widget area, displays below the primary widget area in "
|
||||||
"your sidebar."
|
"your sidebar."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:442
|
#: functions.php:406
|
||||||
msgid "First Footer Widget Area"
|
msgid "First Footer Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:444 functions.php:455 functions.php:466 functions.php:477
|
#: functions.php:408 functions.php:419 functions.php:430 functions.php:441
|
||||||
msgid "An optional widget area for your site footer."
|
msgid "An optional widget area for your site footer."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:453
|
#: functions.php:417
|
||||||
msgid "Second Footer Widget Area"
|
msgid "Second Footer Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:464
|
#: functions.php:428
|
||||||
msgid "Third Footer Widget Area"
|
msgid "Third Footer Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:475
|
#: functions.php:439
|
||||||
msgid "Fourth Footer Widget Area"
|
msgid "Fourth Footer Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:511
|
#: functions.php:475
|
||||||
msgid ""
|
msgid ""
|
||||||
"<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</"
|
"<span class=\"%1$s\">Posted on</span> %2$s <span class=\"meta-sep\">by</"
|
||||||
"span> %3$s"
|
"span> %3$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:520 loop-attachment.php:36
|
#: functions.php:484 loop-attachment.php:36
|
||||||
msgid "View all posts by %s"
|
msgid "View all posts by %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:537
|
#: functions.php:501
|
||||||
msgid ""
|
msgid ""
|
||||||
"This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" "
|
"This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" "
|
||||||
"title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
"title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:539
|
#: functions.php:503
|
||||||
msgid ""
|
msgid ""
|
||||||
"This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title="
|
"This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title="
|
||||||
"\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
"\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:541
|
#: functions.php:505
|
||||||
msgid ""
|
msgid ""
|
||||||
"Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark"
|
"Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark"
|
||||||
"\">permalink</a>."
|
"\">permalink</a>."
|
||||||
|
@ -236,7 +236,7 @@ msgstr ""
|
||||||
msgid "Page %s"
|
msgid "Page %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: header.php:105
|
#: header.php:101
|
||||||
msgid "Skip to content"
|
msgid "Skip to content"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -265,34 +265,34 @@ msgstr ""
|
||||||
msgid "Link to full-size image"
|
msgid "Link to full-size image"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop-attachment.php:63 loop-attachment.php:125 loop-page.php:30
|
#: loop-attachment.php:63 loop-attachment.php:111 loop-page.php:30
|
||||||
#: loop-single.php:59 loop.php:101 loop.php:124 loop.php:166
|
#: loop-single.php:56 loop.php:99 loop.php:122 loop.php:164
|
||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop-attachment.php:119 loop-page.php:29 loop-single.php:34 loop.php:145
|
#: loop-attachment.php:105 loop-page.php:29 loop-single.php:34 loop.php:143
|
||||||
msgid "Pages:"
|
msgid "Pages:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop-single.php:21 loop-single.php:64
|
#: loop-single.php:21 loop-single.php:61
|
||||||
msgctxt "Previous post link"
|
msgctxt "Previous post link"
|
||||||
msgid "←"
|
msgid "←"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop-single.php:22 loop-single.php:65
|
#: loop-single.php:22 loop-single.php:62
|
||||||
msgctxt "Next post link"
|
msgctxt "Next post link"
|
||||||
msgid "→"
|
msgid "→"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop-single.php:50
|
#: loop-single.php:47
|
||||||
msgid "View all posts by %s <span class=\"meta-nav\">→</span>"
|
msgid "View all posts by %s <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:25 loop.php:179
|
#: loop.php:25 loop.php:177
|
||||||
msgid "<span class=\"meta-nav\">←</span> Older posts"
|
msgid "<span class=\"meta-nav\">←</span> Older posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:26 loop.php:180
|
#: loop.php:26 loop.php:178
|
||||||
msgid "Newer posts <span class=\"meta-nav\">→</span>"
|
msgid "Newer posts <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -302,55 +302,55 @@ msgid ""
|
||||||
"searching will help find a related post."
|
"searching will help find a related post."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:62 loop.php:96
|
#: loop.php:60 loop.php:94
|
||||||
msgctxt "gallery category slug"
|
msgctxt "gallery category slug"
|
||||||
msgid "gallery"
|
msgid "gallery"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:83
|
#: loop.php:81
|
||||||
msgid "This gallery contains <a %1$s>%2$s photo</a>."
|
msgid "This gallery contains <a %1$s>%2$s photo</a>."
|
||||||
msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
|
msgid_plural "This gallery contains <a %1$s>%2$s photos</a>."
|
||||||
msgstr[0] ""
|
msgstr[0] ""
|
||||||
msgstr[1] ""
|
msgstr[1] ""
|
||||||
|
|
||||||
#: loop.php:84
|
#: loop.php:82
|
||||||
msgid "Permalink to %s"
|
msgid "Permalink to %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:94
|
#: loop.php:92
|
||||||
msgid "View Galleries"
|
msgid "View Galleries"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:94 loop.php:97
|
#: loop.php:92 loop.php:95
|
||||||
msgid "More Galleries"
|
msgid "More Galleries"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:97
|
#: loop.php:95
|
||||||
msgid "View posts in the Gallery category"
|
msgid "View posts in the Gallery category"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:100 loop.php:123 loop.php:165
|
#: loop.php:98 loop.php:121 loop.php:163
|
||||||
msgid "Leave a comment"
|
msgid "Leave a comment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:100 loop.php:123 loop.php:165
|
#: loop.php:98 loop.php:121 loop.php:163
|
||||||
msgid "1 Comment"
|
msgid "1 Comment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:100 loop.php:123 loop.php:165
|
#: loop.php:98 loop.php:121 loop.php:163
|
||||||
msgid "% Comments"
|
msgid "% Comments"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:107
|
#: loop.php:105
|
||||||
msgctxt "asides category slug"
|
msgctxt "asides category slug"
|
||||||
msgid "asides"
|
msgid "asides"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:152
|
#: loop.php:150
|
||||||
msgid "<span class=\"%1$s\">Posted in</span> %2$s"
|
msgid "<span class=\"%1$s\">Posted in</span> %2$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: loop.php:161
|
#: loop.php:159
|
||||||
msgid "<span class=\"%1$s\">Tagged</span> %2$s"
|
msgid "<span class=\"%1$s\">Tagged</span> %2$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -358,21 +358,21 @@ msgstr ""
|
||||||
msgid "Search Results for: %s"
|
msgid "Search Results for: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.php:27
|
#: search.php:26
|
||||||
msgid "Nothing Found"
|
msgid "Nothing Found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: search.php:29
|
#: search.php:28
|
||||||
msgid ""
|
msgid ""
|
||||||
"Sorry, but nothing matched your search criteria. Please try again with some "
|
"Sorry, but nothing matched your search criteria. Please try again with some "
|
||||||
"different keywords."
|
"different keywords."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: sidebar.php:28
|
#: sidebar.php:27
|
||||||
msgid "Archives"
|
msgid "Archives"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: sidebar.php:35
|
#: sidebar.php:34
|
||||||
msgid "Meta"
|
msgid "Meta"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<div id="entry-author-info">
|
<div id="entry-author-info">
|
||||||
<div id="author-avatar">
|
<div id="author-avatar">
|
||||||
<?php
|
<?php
|
||||||
/** This filter is documented in author.php */
|
//duplicate_hook
|
||||||
echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) );
|
echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) );
|
||||||
?>
|
?>
|
||||||
</div><!-- #author-avatar -->
|
</div><!-- #author-avatar -->
|
||||||
|
|
|
@ -13,7 +13,7 @@ get_header(); ?>
|
||||||
<div id="content" class="site-content" role="main">
|
<div id="content" class="site-content" role="main">
|
||||||
|
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1 class="page-title"><?php _e( 'Not found', 'twentythirteen' ); ?></h1>
|
<h1 class="page-title"><?php _e( 'Not Found', 'twentythirteen' ); ?></h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="page-wrapper">
|
<div class="page-wrapper">
|
||||||
|
|
|
@ -121,13 +121,15 @@ add_action( 'after_setup_theme', 'twentythirteen_setup' );
|
||||||
function twentythirteen_fonts_url() {
|
function twentythirteen_fonts_url() {
|
||||||
$fonts_url = '';
|
$fonts_url = '';
|
||||||
|
|
||||||
/* Translators: If there are characters in your language that are not
|
/*
|
||||||
|
* Translators: If there are characters in your language that are not
|
||||||
* supported by Source Sans Pro, translate this to 'off'. Do not translate
|
* supported by Source Sans Pro, translate this to 'off'. Do not translate
|
||||||
* into your own language.
|
* into your own language.
|
||||||
*/
|
*/
|
||||||
$source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' );
|
$source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' );
|
||||||
|
|
||||||
/* Translators: If there are characters in your language that are not
|
/*
|
||||||
|
* Translators: If there are characters in your language that are not
|
||||||
* supported by Bitter, translate this to 'off'. Do not translate into your
|
* supported by Bitter, translate this to 'off'. Do not translate into your
|
||||||
* own language.
|
* own language.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# This file is distributed under the GNU General Public License v2 or later.
|
# This file is distributed under the GNU General Public License v2 or later.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Twenty Thirteen 1.1\n"
|
"Project-Id-Version: Twenty Thirteen 1.0\n"
|
||||||
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentythirteen\n"
|
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentythirteen\n"
|
||||||
"POT-Creation-Date: 2013-10-24 20:32:06+00:00\n"
|
"POT-Creation-Date: 2013-08-01 18:14:17+00:00\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -12,8 +12,8 @@ msgstr ""
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|
||||||
#: 404.php:16
|
#: 404.php:16 content-none.php:12
|
||||||
msgid "Not found"
|
msgid "Nothing Found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: 404.php:21
|
#: 404.php:21
|
||||||
|
@ -50,15 +50,15 @@ msgstr ""
|
||||||
msgid "Archives"
|
msgid "Archives"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: author-bio.php:26
|
#: author-bio.php:16
|
||||||
msgid "About %s"
|
msgid "About %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: author-bio.php:30
|
#: author-bio.php:20
|
||||||
msgid "View all posts by %s <span class=\"meta-nav\">→</span>"
|
msgid "View all posts by %s <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: author.php:31
|
#: author.php:30
|
||||||
msgid "All posts by %s"
|
msgid "All posts by %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -91,43 +91,39 @@ msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:13 content-audio.php:24 content-gallery.php:24
|
#: content-aside.php:13 content-audio.php:24 content-gallery.php:24
|
||||||
#: content-image.php:23 content-link.php:24 content-quote.php:13
|
#: content-image.php:23 content-link.php:24 content-quote.php:13
|
||||||
#: content-status.php:13 content-video.php:23 content.php:41
|
#: content-status.php:13 content-video.php:23 content.php:39
|
||||||
msgid "Continue reading <span class=\"meta-nav\">→</span>"
|
msgid "Continue reading <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:14 content-audio.php:25 content-chat.php:24
|
#: content-aside.php:14 content-audio.php:25 content-chat.php:24
|
||||||
#: content-gallery.php:25 content-image.php:24 content-link.php:25
|
#: content-gallery.php:25 content-image.php:24 content-link.php:25
|
||||||
#: content-quote.php:14 content-status.php:14 content-video.php:24
|
#: content-quote.php:14 content-status.php:14 content-video.php:24
|
||||||
#: content.php:42 image.php:70 page.php:35
|
#: content.php:40 image.php:70 page.php:35
|
||||||
msgid "Pages:"
|
msgid "Pages:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:20 content-aside.php:28 content-audio.php:31
|
#: content-aside.php:20 content-aside.php:28 content-audio.php:31
|
||||||
#: content-chat.php:29 content-gallery.php:39 content-image.php:35
|
#: content-chat.php:29 content-gallery.php:39 content-image.php:35
|
||||||
#: content-link.php:19 content-quote.php:25 content-status.php:19
|
#: content-link.php:19 content-quote.php:25 content-status.php:19
|
||||||
#: content-video.php:35 content.php:31 image.php:44 page.php:39
|
#: content-video.php:35 content.php:29 image.php:44 page.php:39
|
||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-gallery.php:36 content-image.php:32 content-quote.php:22
|
#: content-gallery.php:36 content-image.php:32 content-quote.php:22
|
||||||
#: content-video.php:32 content.php:49
|
#: content-video.php:32 content.php:47
|
||||||
msgid "Leave a comment"
|
msgid "Leave a comment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-gallery.php:36 content-image.php:32 content-quote.php:22
|
#: content-gallery.php:36 content-image.php:32 content-quote.php:22
|
||||||
#: content-video.php:32 content.php:49
|
#: content-video.php:32 content.php:47
|
||||||
msgid "One comment so far"
|
msgid "One comment so far"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-gallery.php:36 content-image.php:32 content-quote.php:22
|
#: content-gallery.php:36 content-image.php:32 content-quote.php:22
|
||||||
#: content-video.php:32 content.php:49
|
#: content-video.php:32 content.php:47
|
||||||
msgid "View all % comments"
|
msgid "View all % comments"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-none.php:12
|
|
||||||
msgid "Nothing Found"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: content-none.php:18
|
#: content-none.php:18
|
||||||
msgid ""
|
msgid ""
|
||||||
"Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
"Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
|
||||||
|
@ -145,28 +141,28 @@ msgid ""
|
||||||
"searching can help."
|
"searching can help."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. #-#-#-#-# twentythirteen.pot (Twenty Thirteen 1.1) #-#-#-#-#
|
#. #-#-#-#-# twentythirteen.pot (Twenty Thirteen 1.0) #-#-#-#-#
|
||||||
#. Author URI of the plugin/theme
|
#. Author URI of the plugin/theme
|
||||||
#: footer.php:19
|
#: footer.php:20
|
||||||
msgid "http://wordpress.org/"
|
msgid "http://wordpress.org/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: footer.php:19
|
#: footer.php:20
|
||||||
msgid "Semantic Personal Publishing Platform"
|
msgid "Semantic Personal Publishing Platform"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: footer.php:19
|
#: footer.php:20
|
||||||
msgid "Proudly powered by %s"
|
msgid "Proudly powered by %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:97
|
#: functions.php:93
|
||||||
msgid "Navigation Menu"
|
msgid "Navigation Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Translators: If there are characters in your language that are not
|
#. Translators: If there are characters in your language that are not
|
||||||
#. * supported by Source Sans Pro, translate this to 'off'. Do not translate
|
#. * supported by Source Sans Pro, translate this to 'off'. Do not translate
|
||||||
#. * into your own language.
|
#. * into your own language.
|
||||||
#: functions.php:128
|
#: functions.php:124
|
||||||
msgctxt "Source Sans Pro font: on or off"
|
msgctxt "Source Sans Pro font: on or off"
|
||||||
msgid "on"
|
msgid "on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -174,76 +170,76 @@ msgstr ""
|
||||||
#. Translators: If there are characters in your language that are not
|
#. Translators: If there are characters in your language that are not
|
||||||
#. * supported by Bitter, translate this to 'off'. Do not translate into your
|
#. * supported by Bitter, translate this to 'off'. Do not translate into your
|
||||||
#. * own language.
|
#. * own language.
|
||||||
#: functions.php:134
|
#: functions.php:130
|
||||||
msgctxt "Bitter font: on or off"
|
msgctxt "Bitter font: on or off"
|
||||||
msgid "on"
|
msgid "on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:220
|
#: functions.php:212
|
||||||
msgid "Page %s"
|
msgid "Page %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:235
|
#: functions.php:227
|
||||||
msgid "Main Widget Area"
|
msgid "Main Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:237
|
#: functions.php:229
|
||||||
msgid "Appears in the footer section of the site."
|
msgid "Appears in the footer section of the site."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:245
|
#: functions.php:237
|
||||||
msgid "Secondary Widget Area"
|
msgid "Secondary Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:247
|
#: functions.php:239
|
||||||
msgid "Appears on posts and pages in the sidebar."
|
msgid "Appears on posts and pages in the sidebar."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:272
|
#: functions.php:264
|
||||||
msgid "Posts navigation"
|
msgid "Posts navigation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:276
|
#: functions.php:268
|
||||||
msgid "<span class=\"meta-nav\">←</span> Older posts"
|
msgid "<span class=\"meta-nav\">←</span> Older posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:280
|
#: functions.php:272
|
||||||
msgid "Newer posts <span class=\"meta-nav\">→</span>"
|
msgid "Newer posts <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:308
|
#: functions.php:300
|
||||||
msgid "Post navigation"
|
msgid "Post navigation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:311
|
#: functions.php:303
|
||||||
msgctxt "Previous post link"
|
msgctxt "Previous post link"
|
||||||
msgid "<span class=\"meta-nav\">←</span> %title"
|
msgid "<span class=\"meta-nav\">←</span> %title"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:312
|
#: functions.php:304
|
||||||
msgctxt "Next post link"
|
msgctxt "Next post link"
|
||||||
msgid "%title <span class=\"meta-nav\">→</span>"
|
msgid "%title <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:332
|
#: functions.php:324
|
||||||
msgid "Sticky"
|
msgid "Sticky"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Translators: used between list items, there is a space after the comma.
|
#. Translators: used between list items, there is a space after the comma.
|
||||||
#: functions.php:338 functions.php:344
|
#: functions.php:330 functions.php:336
|
||||||
msgid ", "
|
msgid ", "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:353
|
#: functions.php:345
|
||||||
msgid "View all posts by %s"
|
msgid "View all posts by %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:373
|
#: functions.php:365
|
||||||
msgctxt "1: post format name. 2: date"
|
msgctxt "1: post format name. 2: date"
|
||||||
msgid "%1$s on %2$s"
|
msgid "%1$s on %2$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:379
|
#: functions.php:371
|
||||||
msgid "Permalink to %s"
|
msgid "Permalink to %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -278,23 +274,23 @@ msgstr ""
|
||||||
msgid "Next <span class=\"meta-nav\">→</span>"
|
msgid "Next <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/back-compat.php:41 inc/back-compat.php:53 inc/back-compat.php:68
|
#: inc/back-compat.php:38 inc/back-compat.php:50 inc/back-compat.php:65
|
||||||
msgid ""
|
msgid ""
|
||||||
"Twenty Thirteen requires at least WordPress version 3.6. You are running "
|
"Twenty Thirteen requires at least WordPress version 3.6. You are running "
|
||||||
"version %s. Please upgrade and try again."
|
"version %s. Please upgrade and try again."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/custom-header.php:51
|
#: inc/custom-header.php:48
|
||||||
msgctxt "header image description"
|
msgctxt "header image description"
|
||||||
msgid "Circle"
|
msgid "Circle"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/custom-header.php:56
|
#: inc/custom-header.php:53
|
||||||
msgctxt "header image description"
|
msgctxt "header image description"
|
||||||
msgid "Diamond"
|
msgid "Diamond"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: inc/custom-header.php:61
|
#: inc/custom-header.php:58
|
||||||
msgctxt "header image description"
|
msgctxt "header image description"
|
||||||
msgid "Star"
|
msgid "Star"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -4,7 +4,7 @@ Theme URI: http://wordpress.org/themes/twentythirteen
|
||||||
Author: the WordPress team
|
Author: the WordPress team
|
||||||
Author URI: http://wordpress.org/
|
Author URI: http://wordpress.org/
|
||||||
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
|
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
|
||||||
Version: 1.1
|
Version: 1.0
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
|
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
|
||||||
|
|
|
@ -48,13 +48,7 @@ get_header(); ?>
|
||||||
<div class="author-info">
|
<div class="author-info">
|
||||||
<div class="author-avatar">
|
<div class="author-avatar">
|
||||||
<?php
|
<?php
|
||||||
/**
|
//duplicate_hook
|
||||||
* Filter the author bio avatar size.
|
|
||||||
*
|
|
||||||
* @since Twenty Twelve 1.0
|
|
||||||
*
|
|
||||||
* @param int $size The height and width of the avatar in pixels.
|
|
||||||
*/
|
|
||||||
$author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
|
$author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
|
||||||
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
|
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -50,7 +50,13 @@
|
||||||
<div class="author-info">
|
<div class="author-info">
|
||||||
<div class="author-avatar">
|
<div class="author-avatar">
|
||||||
<?php
|
<?php
|
||||||
/** This filter is documented in author.php */
|
/**
|
||||||
|
* Filter the author bio avatar size.
|
||||||
|
*
|
||||||
|
* @since Twenty Twelve 1.0
|
||||||
|
*
|
||||||
|
* @param int $size The height and width of the avatar in pixels.
|
||||||
|
*/
|
||||||
$author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
|
$author_bio_avatar_size = apply_filters( 'twentytwelve_author_bio_avatar_size', 68 );
|
||||||
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
|
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -95,13 +95,15 @@ require( get_template_directory() . '/inc/custom-header.php' );
|
||||||
function twentytwelve_get_font_url() {
|
function twentytwelve_get_font_url() {
|
||||||
$font_url = '';
|
$font_url = '';
|
||||||
|
|
||||||
/* translators: If there are characters in your language that are not supported
|
/*
|
||||||
|
* translators: If there are characters in your language that are not supported
|
||||||
* by Open Sans, translate this to 'off'. Do not translate into your own language.
|
* by Open Sans, translate this to 'off'. Do not translate into your own language.
|
||||||
*/
|
*/
|
||||||
if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
|
if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) {
|
||||||
$subsets = 'latin,latin-ext';
|
$subsets = 'latin,latin-ext';
|
||||||
|
|
||||||
/* translators: To add an additional Open Sans character subset specific to your language,
|
/*
|
||||||
|
* translators: To add an additional Open Sans character subset specific to your language,
|
||||||
* translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
|
* translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
|
||||||
*/
|
*/
|
||||||
$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
|
$subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' );
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# This file is distributed under the GNU General Public License v2 or later.
|
# This file is distributed under the GNU General Public License v2 or later.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Twenty Twelve 1.3\n"
|
"Project-Id-Version: Twenty Twelve 1.2\n"
|
||||||
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentytwelve\n"
|
"Report-Msgid-Bugs-To: http://wordpress.org/tags/twentytwelve\n"
|
||||||
"POT-Creation-Date: 2013-10-24 20:32:05+00:00\n"
|
"POT-Creation-Date: 2013-08-01 18:14:14+00:00\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -52,7 +52,7 @@ msgstr ""
|
||||||
msgid "Author Archives: %s"
|
msgid "Author Archives: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: author.php:63 content.php:59
|
#: author.php:53 content.php:53
|
||||||
msgid "About %s"
|
msgid "About %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ msgid "Comments are closed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:15 content-image.php:13 content-link.php:14
|
#: content-aside.php:15 content-image.php:13 content-link.php:14
|
||||||
#: content-quote.php:13 content-status.php:31 content.php:41
|
#: content-quote.php:13 content-status.php:21 content.php:39
|
||||||
msgid "Continue reading <span class=\"meta-nav\">→</span>"
|
msgid "Continue reading <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -93,23 +93,23 @@ msgid "Permalink to %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:23 content-image.php:23 content-link.php:21
|
#: content-aside.php:23 content-image.php:23 content-link.php:21
|
||||||
#: content-quote.php:20 content-status.php:37 content.php:30
|
#: content-quote.php:20 content-status.php:27 content.php:28
|
||||||
msgid "Leave a reply"
|
msgid "Leave a reply"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:23 content-image.php:23 content-link.php:21
|
#: content-aside.php:23 content-image.php:23 content-link.php:21
|
||||||
#: content-quote.php:20 content-status.php:37 content.php:30
|
#: content-quote.php:20 content-status.php:27 content.php:28
|
||||||
msgid "1 Reply"
|
msgid "1 Reply"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:23 content-image.php:23 content-link.php:21
|
#: content-aside.php:23 content-image.php:23 content-link.php:21
|
||||||
#: content-quote.php:20 content-status.php:37 content.php:30
|
#: content-quote.php:20 content-status.php:27 content.php:28
|
||||||
msgid "% Replies"
|
msgid "% Replies"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-aside.php:26 content-image.php:26 content-link.php:24
|
#: content-aside.php:26 content-image.php:26 content-link.php:24
|
||||||
#: content-page.php:24 content-quote.php:23 content-status.php:40
|
#: content-page.php:24 content-quote.php:23 content-status.php:30
|
||||||
#: content.php:48 functions.php:349 image.php:37
|
#: content.php:46 functions.php:341 image.php:37
|
||||||
msgid "Edit"
|
msgid "Edit"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -127,29 +127,29 @@ msgid ""
|
||||||
"related post."
|
"related post."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content-page.php:21 content.php:42 image.php:102
|
#: content-page.php:21 content.php:40 image.php:92
|
||||||
msgid "Pages:"
|
msgid "Pages:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content.php:16
|
#: content.php:14
|
||||||
msgid "Featured post"
|
msgid "Featured post"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: content.php:63
|
#: content.php:57
|
||||||
msgid "View all posts by %s <span class=\"meta-nav\">→</span>"
|
msgid "View all posts by %s <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. #-#-#-#-# twentytwelve.pot (Twenty Twelve 1.3) #-#-#-#-#
|
#. #-#-#-#-# twentytwelve.pot (Twenty Twelve 1.2) #-#-#-#-#
|
||||||
#. Author URI of the plugin/theme
|
#. Author URI of the plugin/theme
|
||||||
#: footer.php:16
|
#: footer.php:17
|
||||||
msgid "http://wordpress.org/"
|
msgid "http://wordpress.org/"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: footer.php:16
|
#: footer.php:17
|
||||||
msgid "Semantic Personal Publishing Platform"
|
msgid "Semantic Personal Publishing Platform"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: footer.php:16
|
#: footer.php:17
|
||||||
msgid "Proudly powered by %s"
|
msgid "Proudly powered by %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -158,111 +158,111 @@ msgid "Primary Menu"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: If there are characters in your language that are not supported
|
#. translators: If there are characters in your language that are not supported
|
||||||
#. * by Open Sans, translate this to 'off'. Do not translate into your own
|
#. by Open Sans, translate this to 'off'. Do not translate into your own
|
||||||
#. language.
|
#. language.
|
||||||
#: functions.php:101
|
#: functions.php:100
|
||||||
msgctxt "Open Sans font: on or off"
|
msgctxt "Open Sans font: on or off"
|
||||||
msgid "on"
|
msgid "on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: To add an additional Open Sans character subset specific to
|
#. translators: To add an additional Open Sans character subset specific to
|
||||||
#. your language,
|
#. your language, translate
|
||||||
#. * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate
|
#. this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your
|
||||||
#. into your own language.
|
#. own language.
|
||||||
#: functions.php:107
|
#: functions.php:105
|
||||||
msgctxt "Open Sans font: add new subset (greek, cyrillic, vietnamese)"
|
msgctxt "Open Sans font: add new subset (greek, cyrillic, vietnamese)"
|
||||||
msgid "no-subset"
|
msgid "no-subset"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:215
|
#: functions.php:213
|
||||||
msgid "Page %s"
|
msgid "Page %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:244
|
#: functions.php:238
|
||||||
msgid "Main Sidebar"
|
msgid "Main Sidebar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:246
|
#: functions.php:240
|
||||||
msgid ""
|
msgid ""
|
||||||
"Appears on posts and pages except the optional Front Page template, which "
|
"Appears on posts and pages except the optional Front Page template, which "
|
||||||
"has its own widgets"
|
"has its own widgets"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:254
|
#: functions.php:248
|
||||||
msgid "First Front Page Widget Area"
|
msgid "First Front Page Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:256 functions.php:266
|
#: functions.php:250 functions.php:260
|
||||||
msgid ""
|
msgid ""
|
||||||
"Appears when using the optional Front Page template with a page set as "
|
"Appears when using the optional Front Page template with a page set as "
|
||||||
"Static Front Page"
|
"Static Front Page"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:264
|
#: functions.php:258
|
||||||
msgid "Second Front Page Widget Area"
|
msgid "Second Front Page Widget Area"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:288 single.php:20
|
#: functions.php:282 single.php:20
|
||||||
msgid "Post navigation"
|
msgid "Post navigation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:289
|
#: functions.php:283
|
||||||
msgid "<span class=\"meta-nav\">←</span> Older posts"
|
msgid "<span class=\"meta-nav\">←</span> Older posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:290
|
#: functions.php:284
|
||||||
msgid "Newer posts <span class=\"meta-nav\">→</span>"
|
msgid "Newer posts <span class=\"meta-nav\">→</span>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:317
|
#: functions.php:309
|
||||||
msgid "Pingback:"
|
msgid "Pingback:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:317
|
#: functions.php:309
|
||||||
msgid "(Edit)"
|
msgid "(Edit)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:332
|
#: functions.php:324
|
||||||
msgid "Post author"
|
msgid "Post author"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. translators: 1: date, 2: time
|
#. translators: 1: date, 2: time
|
||||||
#: functions.php:338
|
#: functions.php:330
|
||||||
msgid "%1$s at %2$s"
|
msgid "%1$s at %2$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:344
|
#: functions.php:336
|
||||||
msgid "Your comment is awaiting moderation."
|
msgid "Your comment is awaiting moderation."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:353
|
#: functions.php:345
|
||||||
msgid "Reply"
|
msgid "Reply"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Translators: used between list items, there is a space after the comma.
|
#. Translators: used between list items, there is a space after the comma.
|
||||||
#: functions.php:376 functions.php:379
|
#: functions.php:364 functions.php:367
|
||||||
msgid ", "
|
msgid ", "
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:390
|
#: functions.php:378
|
||||||
msgid "View all posts by %s"
|
msgid "View all posts by %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's
|
#. Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's
|
||||||
#. name.
|
#. name.
|
||||||
#: functions.php:396
|
#: functions.php:384
|
||||||
msgid ""
|
msgid ""
|
||||||
"This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author"
|
"This entry was posted in %1$s and tagged %2$s on %3$s<span class=\"by-author"
|
||||||
"\"> by %4$s</span>."
|
"\"> by %4$s</span>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:398
|
#: functions.php:386
|
||||||
msgid ""
|
msgid ""
|
||||||
"This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</"
|
"This entry was posted in %1$s on %3$s<span class=\"by-author\"> by %4$s</"
|
||||||
"span>."
|
"span>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: functions.php:400
|
#: functions.php:388
|
||||||
msgid "This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>."
|
msgid "This entry was posted on %3$s<span class=\"by-author\"> by %4$s</span>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ Theme URI: http://wordpress.org/themes/twentytwelve
|
||||||
Author: the WordPress team
|
Author: the WordPress team
|
||||||
Author URI: http://wordpress.org/
|
Author URI: http://wordpress.org/
|
||||||
Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
|
Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background.
|
||||||
Version: 1.3
|
Version: 1.2
|
||||||
License: GNU General Public License v2 or later
|
License: GNU General Public License v2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
Tags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
|
Tags: light, gray, white, one-column, two-columns, right-sidebar, flexible-width, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
|
||||||
|
|
|
@ -296,7 +296,7 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
|
||||||
|
|
||||||
if ( 'wp-register.php' == basename( $redirect['path'] ) ) {
|
if ( 'wp-register.php' == basename( $redirect['path'] ) ) {
|
||||||
if ( is_multisite() )
|
if ( is_multisite() )
|
||||||
/** This filter is documented in wp-login.php */
|
//duplicate_hook
|
||||||
$redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
|
$redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
|
||||||
else
|
else
|
||||||
$redirect_url = site_url( 'wp-login.php?action=register' );
|
$redirect_url = site_url( 'wp-login.php?action=register' );
|
||||||
|
|
|
@ -215,7 +215,7 @@ class WP_Embed {
|
||||||
|
|
||||||
// If there was a result, return it
|
// If there was a result, return it
|
||||||
if ( $html ) {
|
if ( $html ) {
|
||||||
/** This filter is documented in wp-includes/class-wp-embed.php */
|
//duplicate_hook
|
||||||
return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );
|
return apply_filters( 'embed_oembed_html', $html, $url, $attr, $post_ID );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1772,7 +1772,6 @@ function do_trackbacks($post_id) {
|
||||||
$excerpt = str_replace(']]>', ']]>', $excerpt);
|
$excerpt = str_replace(']]>', ']]>', $excerpt);
|
||||||
$excerpt = wp_html_excerpt($excerpt, 252, '…');
|
$excerpt = wp_html_excerpt($excerpt, 252, '…');
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/post-template.php */
|
|
||||||
$post_title = apply_filters('the_title', $post->post_title, $post->ID);
|
$post_title = apply_filters('the_title', $post->post_title, $post->ID);
|
||||||
$post_title = strip_tags($post_title);
|
$post_title = strip_tags($post_title);
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,35 @@
|
||||||
/**
|
/**
|
||||||
* WP_Date_Query will generate a MySQL WHERE clause for the specified date-based parameters.
|
* WP_Date_Query will generate a MySQL WHERE clause for the specified date-based parameters.
|
||||||
*
|
*
|
||||||
* Initialize the class by passing an array of arrays of parameters.
|
* Initialize the class by passing an array of arrays of parameters. Example:
|
||||||
|
*
|
||||||
|
* $date_query = new WP_Date_Query( array(
|
||||||
|
* 'column' => 'optional, column to query against, default is post_date',
|
||||||
|
* 'compare' => 'optional, see WP_Date_Query::get_compare()',
|
||||||
|
* 'relation' => 'optional, OR or AND, how the sub-arrays should be compared, default is AND',
|
||||||
|
* array(
|
||||||
|
* 'column' => 'see above',
|
||||||
|
* 'compare' => 'see above',
|
||||||
|
* 'after' => 'string or array, see WP_Date_Query::build_mysql_datetime()',
|
||||||
|
* 'before' => 'string or array, see WP_Date_Query::build_mysql_datetime()',
|
||||||
|
* 'inclusive' => 'boolean, for after/before, whether exact value should be matched or not',
|
||||||
|
* 'year' => '4 digit int',
|
||||||
|
* 'month' => 'int, 1-12',
|
||||||
|
* 'week' => 'int, 0-53',
|
||||||
|
* 'day' => 'int, 1-31',
|
||||||
|
* 'hour' => 'int, 0-23',
|
||||||
|
* 'minute' => 'int, 0-60',
|
||||||
|
* 'second' => 'int, 0-60',
|
||||||
|
* ),
|
||||||
|
* array(
|
||||||
|
* ...
|
||||||
|
* ),
|
||||||
|
* ...
|
||||||
|
* ) );
|
||||||
|
*
|
||||||
|
* Then call the get_sql() method to get the MySQL WHERE string:
|
||||||
|
*
|
||||||
|
* $where .= $date_query->get_sql();
|
||||||
*
|
*
|
||||||
* @link http://codex.wordpress.org/Function_Reference/WP_Query Codex page.
|
* @link http://codex.wordpress.org/Function_Reference/WP_Query Codex page.
|
||||||
*
|
*
|
||||||
|
@ -46,62 +74,10 @@ class WP_Date_Query {
|
||||||
public $compare = '=';
|
public $compare = '=';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param array $date_query {
|
* @param array $date_query A date query parameter array, see class descriptor for further details.
|
||||||
* One or more associative arrays of date query parameters.
|
* @param array (optional) $default_column What column name to query against. Defaults to "post_date".
|
||||||
*
|
|
||||||
* @type array {
|
|
||||||
* @type string $column Optional. The column to query against. If undefined, inherits the value of
|
|
||||||
* the $default_column parameter. Default 'post_date'. Accepts 'post_date',
|
|
||||||
* 'post_date_gmt', 'post_modified','post_modified_gmt', 'comment_date',
|
|
||||||
* 'comment_date_gmt'.
|
|
||||||
* @type string $compare Optional. The comparison operator.
|
|
||||||
* Default '='. Accepts '=', '!=', '>', '>=', '<', '<=', 'IN', 'NOT IN',
|
|
||||||
* 'BETWEEN', 'NOT BETWEEN'.
|
|
||||||
* @type string $relation Optional. The boolean relationship between the date queryies.
|
|
||||||
* Default 'OR'. Accepts 'OR', 'AND'.
|
|
||||||
* @type array {
|
|
||||||
* @type string|array $before Optional. Date to retrieve posts before. Accepts strtotime()-compatible
|
|
||||||
* string, or array of 'year', 'month', 'day' values. {
|
|
||||||
*
|
|
||||||
* @type string $year The four-digit year. Default empty. Accepts any four-digit year.
|
|
||||||
* @type string $month Optional when passing array.The month of the year.
|
|
||||||
* Default (string:empty)|(array:1). Accepts numbers 1-12.
|
|
||||||
* @type string $day Optional when passing array.The day of the month.
|
|
||||||
* Default (string:empty)|(array:1). Accepts numbers 1-31.
|
|
||||||
* }
|
|
||||||
* @type string|array $after Optional. Date to retrieve posts before. Accepts strtotime()-compatible
|
|
||||||
* string, or array of 'year', 'month', 'day' values. {
|
|
||||||
*
|
|
||||||
* @type string $year The four-digit year. Default empty. Accepts any four-digit year.
|
|
||||||
* @type string $month Optional when passing array.The month of the year.
|
|
||||||
* Default (string:empty)|(array:12). Accepts numbers 1-12.
|
|
||||||
* @type string $day Optional when passing array.The day of the month.
|
|
||||||
* Default (string:empty)|(array:last day of month). Accepts numbers 1-31.
|
|
||||||
* }
|
|
||||||
* @type string $column Optional. Used to add a clause comparing a column other than the column
|
|
||||||
* specified in the top-level $column paramater. Default is the value
|
|
||||||
* of top-level $column. Accepts 'post_date', 'post_date_gmt',
|
|
||||||
* 'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt'.
|
|
||||||
* @type string $compare Optional. The comparison operator. Default '='. Accepts '=', '!=',
|
|
||||||
* '>', '>=', '<', '<=', 'IN', 'NOT IN', 'BETWEEN', 'NOT BETWEEN'.
|
|
||||||
* @type bool $inclusive Optional. Include results from dates specified in 'before' or 'after'.
|
|
||||||
* Default. Accepts.
|
|
||||||
* @type int $year Optional. The four-digit near number. Default empty. Accepts any
|
|
||||||
* four-digit year.
|
|
||||||
* @type int $month Optional. The two-digit month number. Default empty. Accepts numbers 1-12.
|
|
||||||
* @type int $week Optional. The week number of the year. Default empty. Accepts numbers 0-53.
|
|
||||||
* @type int $day Optional. The day of the month. Default empty. Accepts numbers 1-31.
|
|
||||||
* @type int $hour Optional. The hour of the day. Default empty. Accepts numbers 0-23.
|
|
||||||
* @type int $minute Optional. The minute of the hour. Default empty. Accepts numbers 0-60.
|
|
||||||
* @type int $second Optional. The second of the minute. Default empty. Accepts numbers 0-60.
|
|
||||||
* }
|
|
||||||
* }
|
|
||||||
* }
|
|
||||||
* @param array $default_column Optional. Default column to query against. Default 'post_date'.
|
|
||||||
* Accepts 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt',
|
|
||||||
* 'comment_date', 'comment_date_gmt'.
|
|
||||||
*/
|
*/
|
||||||
function __construct( $date_query, $default_column = 'post_date' ) {
|
function __construct( $date_query, $default_column = 'post_date' ) {
|
||||||
if ( empty( $date_query ) || ! is_array( $date_query ) )
|
if ( empty( $date_query ) || ! is_array( $date_query ) )
|
||||||
|
@ -160,19 +136,7 @@ class WP_Date_Query {
|
||||||
* @return string A validated column name value.
|
* @return string A validated column name value.
|
||||||
*/
|
*/
|
||||||
public function validate_column( $column ) {
|
public function validate_column( $column ) {
|
||||||
$valid_columns = array(
|
if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', array( 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt' ) ) ) )
|
||||||
'post_date', 'post_date_gmt', 'post_modified',
|
|
||||||
'post_modified_gmt', 'comment_date', 'comment_date_gmt'
|
|
||||||
);
|
|
||||||
/**
|
|
||||||
* Filter the list of valid date query columns.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param array $valid_columns An array of valid date query columns. Defaults are 'post_date', 'post_date_gmt',
|
|
||||||
* 'post_modified', 'post_modified_gmt', 'comment_date', 'comment_date_gmt'
|
|
||||||
*/
|
|
||||||
if ( ! in_array( $column, apply_filters( 'date_query_valid_columns', $valid_columns ) ) )
|
|
||||||
$column = 'post_date';
|
$column = 'post_date';
|
||||||
|
|
||||||
return $column;
|
return $column;
|
||||||
|
@ -204,14 +168,6 @@ class WP_Date_Query {
|
||||||
else
|
else
|
||||||
$where = '';
|
$where = '';
|
||||||
|
|
||||||
/**
|
|
||||||
* Filter the date query WHERE clause.
|
|
||||||
*
|
|
||||||
* @since 3.7.0
|
|
||||||
*
|
|
||||||
* @param string $where WHERE clause of the date query.
|
|
||||||
* @param WP_Date_Query $this The WP_Date_Query instance.
|
|
||||||
*/
|
|
||||||
return apply_filters( 'get_date_sql', $where, $this );
|
return apply_filters( 'get_date_sql', $where, $this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,7 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment();
|
||||||
<title><?php
|
<title><?php
|
||||||
if ( !is_singular() ) {
|
if ( !is_singular() ) {
|
||||||
$title = get_the_title($comment_post->ID);
|
$title = get_the_title($comment_post->ID);
|
||||||
/** This filter is documented in wp-includes/feed.php */
|
$title = apply_filters('the_title_rss', $title);
|
||||||
$title = apply_filters( 'the_title_rss', $title );
|
|
||||||
printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
|
printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
|
||||||
} else {
|
} else {
|
||||||
printf(ent2ncr(__('By: %s')), get_comment_author_rss());
|
printf(ent2ncr(__('By: %s')), get_comment_author_rss());
|
||||||
|
|
|
@ -30,9 +30,8 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
|
||||||
<link><?php bloginfo_rss('url') ?></link>
|
<link><?php bloginfo_rss('url') ?></link>
|
||||||
<description><?php bloginfo_rss('description') ?></description>
|
<description><?php bloginfo_rss('description') ?></description>
|
||||||
<dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
|
<dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT'), false); ?></dc:date>
|
||||||
<?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
|
|
||||||
<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
|
<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
|
||||||
<?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
|
<?php //duplicate_hook ?>
|
||||||
<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
|
<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
|
||||||
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -15,7 +15,7 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
||||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||||
<?php
|
<?php
|
||||||
/** This action is documented in wp-includes/feed-rss2.php */
|
//duplicate_hook
|
||||||
do_action( 'rss2_ns' );
|
do_action( 'rss2_ns' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -41,9 +41,9 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
||||||
<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
|
<link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
|
||||||
<description><?php bloginfo_rss("description") ?></description>
|
<description><?php bloginfo_rss("description") ?></description>
|
||||||
<lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
|
<lastBuildDate><?php echo mysql2date('r', get_lastcommentmodified('GMT')); ?></lastBuildDate>
|
||||||
<?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
|
<?php //duplicate_hook ?>
|
||||||
<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
|
<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
|
||||||
<?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
|
<?php //duplicate_hook ?>
|
||||||
<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
|
<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
|
@ -60,8 +60,8 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
||||||
<title><?php
|
<title><?php
|
||||||
if ( !is_singular() ) {
|
if ( !is_singular() ) {
|
||||||
$title = get_the_title($comment_post->ID);
|
$title = get_the_title($comment_post->ID);
|
||||||
/** This filter is documented in wp-includes/feed.php */
|
//duplicate_hook
|
||||||
$title = apply_filters( 'the_title_rss', $title );
|
$title = apply_filters('the_title_rss', $title);
|
||||||
printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
|
printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
|
||||||
} else {
|
} else {
|
||||||
printf(ent2ncr(__('By: %s')), get_comment_author_rss());
|
printf(ent2ncr(__('By: %s')), get_comment_author_rss());
|
||||||
|
|
|
@ -3349,11 +3349,11 @@ function is_main_site( $site_id = null ) {
|
||||||
function is_main_network( $network_id = null ) {
|
function is_main_network( $network_id = null ) {
|
||||||
global $current_site, $wpdb;
|
global $current_site, $wpdb;
|
||||||
|
|
||||||
|
$current_network_id = (int) $current_site->id;
|
||||||
|
|
||||||
if ( ! is_multisite() )
|
if ( ! is_multisite() )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
$current_network_id = (int) $current_site->id;
|
|
||||||
|
|
||||||
if ( ! $network_id )
|
if ( ! $network_id )
|
||||||
$network_id = $current_network_id;
|
$network_id = $current_network_id;
|
||||||
$network_id = (int) $network_id;
|
$network_id = (int) $network_id;
|
||||||
|
|
|
@ -1078,12 +1078,10 @@ function wp_get_archives($args = '') {
|
||||||
foreach ( (array) $results as $result ) {
|
foreach ( (array) $results as $result ) {
|
||||||
if ( $result->post_date != '0000-00-00 00:00:00' ) {
|
if ( $result->post_date != '0000-00-00 00:00:00' ) {
|
||||||
$url = get_permalink( $result );
|
$url = get_permalink( $result );
|
||||||
if ( $result->post_title ) {
|
if ( $result->post_title )
|
||||||
/** This filter is documented in wp-includes/post-template.php */
|
|
||||||
$text = strip_tags( apply_filters( 'the_title', $result->post_title, $result->ID ) );
|
$text = strip_tags( apply_filters( 'the_title', $result->post_title, $result->ID ) );
|
||||||
} else {
|
else
|
||||||
$text = $result->ID;
|
$text = $result->ID;
|
||||||
}
|
|
||||||
$output .= get_archives_link($url, $text, $format, $before, $after);
|
$output .= get_archives_link($url, $text, $format, $before, $after);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1268,7 +1266,6 @@ function get_calendar($initial = true, $echo = true) {
|
||||||
if ( $ak_post_titles ) {
|
if ( $ak_post_titles ) {
|
||||||
foreach ( (array) $ak_post_titles as $ak_post_title ) {
|
foreach ( (array) $ak_post_titles as $ak_post_title ) {
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/post-template.php */
|
|
||||||
$post_title = esc_attr( apply_filters( 'the_title', $ak_post_title->post_title, $ak_post_title->ID ) );
|
$post_title = esc_attr( apply_filters( 'the_title', $ak_post_title->post_title, $ak_post_title->ID ) );
|
||||||
|
|
||||||
if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) )
|
if ( empty($ak_titles_for_day['day_'.$ak_post_title->dom]) )
|
||||||
|
|
|
@ -141,8 +141,8 @@ jQuery(document).ready( function($) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// When connection is lost, keep user from submitting changes.
|
// When connection is lost, keep user from submitting changes.
|
||||||
$(document).on('heartbeat-connection-lost.autosave', function( e, error, status ) {
|
$(document).on('heartbeat-connection-lost.autosave', function( e, error ) {
|
||||||
if ( 'timeout' === error || 503 == status ) {
|
if ( 'timeout' === error ) {
|
||||||
var notice = $('#lost-connection-notice');
|
var notice = $('#lost-connection-notice');
|
||||||
if ( ! wp.autosave.local.hasStorage ) {
|
if ( ! wp.autosave.local.hasStorage ) {
|
||||||
notice.find('.hide-if-no-sessionstorage').hide();
|
notice.find('.hide-if-no-sessionstorage').hide();
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -45,7 +45,7 @@ window.wp = window.wp || {};
|
||||||
userActiveEvents,
|
userActiveEvents,
|
||||||
winBlurTimeout,
|
winBlurTimeout,
|
||||||
frameBlurTimeout = -1,
|
frameBlurTimeout = -1,
|
||||||
hasConnectionError = null;
|
hasConnectionError = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a boolean that's indicative of whether or not there is a connection error
|
* Returns a boolean that's indicative of whether or not there is a connection error
|
||||||
|
@ -53,7 +53,7 @@ window.wp = window.wp || {};
|
||||||
* @returns boolean
|
* @returns boolean
|
||||||
*/
|
*/
|
||||||
this.hasConnectionError = function() {
|
this.hasConnectionError = function() {
|
||||||
return !! hasConnectionError;
|
return hasConnectionError;
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( typeof( window.heartbeatSettings ) == 'object' ) {
|
if ( typeof( window.heartbeatSettings ) == 'object' ) {
|
||||||
|
@ -108,7 +108,7 @@ window.wp = window.wp || {};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set error state and fire an event on XHR errors or timeout
|
// Set error state and fire an event on XHR errors or timeout
|
||||||
function errorstate( error, status ) {
|
function errorstate( error ) {
|
||||||
var trigger;
|
var trigger;
|
||||||
|
|
||||||
if ( error ) {
|
if ( error ) {
|
||||||
|
@ -132,20 +132,14 @@ window.wp = window.wp || {};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 503 == status && false === hasConnectionError ) {
|
|
||||||
trigger = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( trigger && ! self.hasConnectionError() ) {
|
if ( trigger && ! self.hasConnectionError() ) {
|
||||||
hasConnectionError = true;
|
hasConnectionError = true;
|
||||||
$(document).trigger( 'heartbeat-connection-lost', [error, status] );
|
$(document).trigger( 'heartbeat-connection-lost', [error] );
|
||||||
}
|
}
|
||||||
} else if ( self.hasConnectionError() ) {
|
} else if ( self.hasConnectionError() ) {
|
||||||
errorcount = 0;
|
errorcount = 0;
|
||||||
hasConnectionError = false;
|
hasConnectionError = false;
|
||||||
$(document).trigger( 'heartbeat-connection-restored' );
|
$(document).trigger( 'heartbeat-connection-restored' );
|
||||||
} else if ( null === hasConnectionError ) {
|
|
||||||
hasConnectionError = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,7 +213,7 @@ window.wp = window.wp || {};
|
||||||
connecting = false;
|
connecting = false;
|
||||||
next();
|
next();
|
||||||
}).fail( function( jqXHR, textStatus, error ) {
|
}).fail( function( jqXHR, textStatus, error ) {
|
||||||
errorstate( textStatus || 'unknown', jqXHR.status );
|
errorstate( textStatus || 'unknown' );
|
||||||
self.error( jqXHR, textStatus, error );
|
self.error( jqXHR, textStatus, error );
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
window.wp=window.wp||{},function(a){var b=function(){function b(a){return a?parseInt((new Date).getTime()/1e3):(new Date).getTime()}function c(a){var b,c=a.src;if(c&&/^https?:\/\//.test(c)&&(b=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.host,0!==c.indexOf(b)))return!1;try{if(a.contentWindow.document)return!0}catch(d){}return!1}function d(b,c){var d;if(b){switch(b){case"abort":break;case"timeout":d=!0;break;case"parsererror":case"error":case"empty":case"unknown":A++,A>2&&(d=!0)}503==c&&!1===D&&(d=!0),d&&!u.hasConnectionError()&&(D=!0,a(document).trigger("heartbeat-connection-lost",[b,c]))}else u.hasConnectionError()?(A=0,D=!1,a(document).trigger("heartbeat-connection-restored")):null===D&&(D=!1)}function e(){var c,e,g={},h=!0,i="object"==typeof window.heartbeatSettings?window.heartbeatSettings.nonce:"";x=b(),c=a.extend({},y),y={},a(document).trigger("heartbeat-send",[c]);for(e in c)if(c.hasOwnProperty(e)){h=!1;break}return h&&!u.hasConnectionError()?(p=!1,f(),void 0):(g.data=c,g.interval=o/1e3,g._nonce=i,g.action="heartbeat",g.screen_id=v,g.has_focus=B,p=!0,u.xhr=a.ajax({url:w,type:"post",timeout:3e4,data:g,dataType:"json"}).done(function(b,c,e){var f;return b?(u.hasConnectionError()&&d(),b.nonces_expired?(a(document).trigger("heartbeat-nonces-expired"),void 0):(b.heartbeat_interval&&(f=b.heartbeat_interval,delete b.heartbeat_interval),u.tick(b,c,e),f&&u.interval.call(u,f),void 0)):d("empty")}).always(function(){p=!1,f()}).fail(function(a,b,c){d(b||"unknown",a.status),u.error(a,b,c)}),void 0)}function f(){var a=b()-x,c=o;l&&(B?z>0&&q&&(c=q,z--):c=1e5,window.clearTimeout(m),c>a?m=window.setTimeout(function(){l&&e()},c-a):e())}function g(){window.clearTimeout(t),window.clearTimeout(C),t=C=0,B=!1}function h(){window.clearTimeout(t),window.clearTimeout(C),t=C=0,r=b(),B||(B=!0,window.clearTimeout(m),p||f())}function i(){a("iframe").each(function(b,d){c(d)&&(a.data(d,"wp-heartbeat-focus")||(a.data(d,"wp-heartbeat-focus",1),a(d.contentWindow).on("focus.wp-heartbeat-focus",function(){h()}).on("blur.wp-heartbeat-focus",function(){i(),C=window.setTimeout(function(){g()},500)})))})}function j(){s=!1,a(document).off(".wp-heartbeat-active"),a("iframe").each(function(b,d){c(d)&&a(d.contentWindow).off(".wp-heartbeat-active")}),h()}function k(){var d=r?b()-r:0;d>3e5&&B&&g(),s||(a(document).on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active",function(){j()}),a("iframe").each(function(b,d){c(d)&&a(d.contentWindow).on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active",function(){j()})}),s=!0)}var l,m,n,o,p,q,r,s,t,u=this,v="undefined"!=typeof pagenow?pagenow:"",w="undefined"!=typeof ajaxurl?ajaxurl:"",x=0,y={},z=0,A=0,B=!0,C=-1,D=null;this.hasConnectionError=function(){return!!D},"object"==typeof window.heartbeatSettings&&(n=a.extend({},window.heartbeatSettings),w=n.ajaxurl||w,delete n.ajaxurl,delete n.nonce,o=n.interval||15,delete n.interval,15>o?o=15:o>60&&(o=60),o=1e3*o,v=v||n.screenId||"front",delete n.screenId,a.extend(this,n)),a(window).on("blur.wp-heartbeat-focus",function(){i(),t=window.setTimeout(function(){g()},500)}).on("focus.wp-heartbeat-focus",function(){a("iframe").each(function(b,d){c(d)&&(a.removeData(d,"wp-heartbeat-focus"),a(d.contentWindow).off(".wp-heartbeat-focus"))}),h()}),window.setInterval(function(){k()},3e4),a(document).ready(function(){l=!0,x=b(),f()}),this.hasFocus=function(){return B},this.interval=function(a,b){var c,d;if(b=parseInt(b,10)||30,b=1>b||b>30?30:b,a){switch(a){case"fast":d=5,z=b;break;case"slow":d=60,z=0;break;case"long-polling":return o=0,0;default:d=15,z=0}c=o>1e3*d,z>0?q=1e3*d:(o=1e3*d,q=0),c&&f()}return B?q?q/1e3:o/1e3:120},this.enqueue=function(a,b,c){return a?c&&this.isQueued(a)?!1:(y[a]=b,!0):!1},this.isQueued=function(a){return a?y.hasOwnProperty(a):void 0},this.dequeue=function(a){a&&delete y[a]},this.getQueuedItem=function(a){return a?this.isQueued(a)?y[a]:void 0:void 0}};a.extend(b.prototype,{tick:function(b,c,d){a(document).trigger("heartbeat-tick",[b,c,d])},error:function(b,c,d){a(document).trigger("heartbeat-error",[b,c,d])}}),wp.heartbeat=new b}(jQuery);
|
window.wp=window.wp||{},function(a){var b=function(){function b(a){return a?parseInt((new Date).getTime()/1e3):(new Date).getTime()}function c(a){var b,c=a.src;if(c&&/^https?:\/\//.test(c)&&(b=window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.host,0!==c.indexOf(b)))return!1;try{if(a.contentWindow.document)return!0}catch(d){}return!1}function d(b){var c;if(b){switch(b){case"abort":break;case"timeout":c=!0;break;case"parsererror":case"error":case"empty":case"unknown":A++,A>2&&(c=!0)}c&&!u.hasConnectionError()&&(D=!0,a(document).trigger("heartbeat-connection-lost",[b]))}else u.hasConnectionError()&&(A=0,D=!1,a(document).trigger("heartbeat-connection-restored"))}function e(){var c,e,g={},h=!0,i="object"==typeof window.heartbeatSettings?window.heartbeatSettings.nonce:"";x=b(),c=a.extend({},y),y={},a(document).trigger("heartbeat-send",[c]);for(e in c)if(c.hasOwnProperty(e)){h=!1;break}return h&&!u.hasConnectionError()?(p=!1,f(),void 0):(g.data=c,g.interval=o/1e3,g._nonce=i,g.action="heartbeat",g.screen_id=v,g.has_focus=B,p=!0,u.xhr=a.ajax({url:w,type:"post",timeout:3e4,data:g,dataType:"json"}).done(function(b,c,e){var f;return b?(u.hasConnectionError()&&d(),b.nonces_expired?(a(document).trigger("heartbeat-nonces-expired"),void 0):(b.heartbeat_interval&&(f=b.heartbeat_interval,delete b.heartbeat_interval),u.tick(b,c,e),f&&u.interval.call(u,f),void 0)):d("empty")}).always(function(){p=!1,f()}).fail(function(a,b,c){d(b||"unknown"),u.error(a,b,c)}),void 0)}function f(){var a=b()-x,c=o;l&&(B?z>0&&q&&(c=q,z--):c=1e5,window.clearTimeout(m),c>a?m=window.setTimeout(function(){l&&e()},c-a):e())}function g(){window.clearTimeout(t),window.clearTimeout(C),t=C=0,B=!1}function h(){window.clearTimeout(t),window.clearTimeout(C),t=C=0,r=b(),B||(B=!0,window.clearTimeout(m),p||f())}function i(){a("iframe").each(function(b,d){c(d)&&(a.data(d,"wp-heartbeat-focus")||(a.data(d,"wp-heartbeat-focus",1),a(d.contentWindow).on("focus.wp-heartbeat-focus",function(){h()}).on("blur.wp-heartbeat-focus",function(){i(),C=window.setTimeout(function(){g()},500)})))})}function j(){s=!1,a(document).off(".wp-heartbeat-active"),a("iframe").each(function(b,d){c(d)&&a(d.contentWindow).off(".wp-heartbeat-active")}),h()}function k(){var d=r?b()-r:0;d>3e5&&B&&g(),s||(a(document).on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active",function(){j()}),a("iframe").each(function(b,d){c(d)&&a(d.contentWindow).on("mouseover.wp-heartbeat-active keyup.wp-heartbeat-active",function(){j()})}),s=!0)}var l,m,n,o,p,q,r,s,t,u=this,v="undefined"!=typeof pagenow?pagenow:"",w="undefined"!=typeof ajaxurl?ajaxurl:"",x=0,y={},z=0,A=0,B=!0,C=-1,D=!1;this.hasConnectionError=function(){return D},"object"==typeof window.heartbeatSettings&&(n=a.extend({},window.heartbeatSettings),w=n.ajaxurl||w,delete n.ajaxurl,delete n.nonce,o=n.interval||15,delete n.interval,15>o?o=15:o>60&&(o=60),o=1e3*o,v=v||n.screenId||"front",delete n.screenId,a.extend(this,n)),a(window).on("blur.wp-heartbeat-focus",function(){i(),t=window.setTimeout(function(){g()},500)}).on("focus.wp-heartbeat-focus",function(){a("iframe").each(function(b,d){c(d)&&(a.removeData(d,"wp-heartbeat-focus"),a(d.contentWindow).off(".wp-heartbeat-focus"))}),h()}),window.setInterval(function(){k()},3e4),a(document).ready(function(){l=!0,x=b(),f()}),this.hasFocus=function(){return B},this.interval=function(a,b){var c,d;if(b=parseInt(b,10)||30,b=1>b||b>30?30:b,a){switch(a){case"fast":d=5,z=b;break;case"slow":d=60,z=0;break;case"long-polling":return o=0,0;default:d=15,z=0}c=o>1e3*d,z>0?q=1e3*d:(o=1e3*d,q=0),c&&f()}return B?q?q/1e3:o/1e3:120},this.enqueue=function(a,b,c){return a?c&&this.isQueued(a)?!1:(y[a]=b,!0):!1},this.isQueued=function(a){return a?y.hasOwnProperty(a):void 0},this.dequeue=function(a){a&&delete y[a]},this.getQueuedItem=function(a){return a?this.isQueued(a)?y[a]:void 0:void 0}};a.extend(b.prototype,{tick:function(b,c,d){a(document).trigger("heartbeat-tick",[b,c,d])},error:function(b,c,d){a(document).trigger("heartbeat-error",[b,c,d])}}),wp.heartbeat=new b}(jQuery);
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1425,7 +1425,6 @@ function get_adjacent_post_link( $format, $link, $in_same_cat = false, $excluded
|
||||||
if ( empty( $post->post_title ) )
|
if ( empty( $post->post_title ) )
|
||||||
$title = $previous ? __( 'Previous Post' ) : __( 'Next Post' );
|
$title = $previous ? __( 'Previous Post' ) : __( 'Next Post' );
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/post-template.php */
|
|
||||||
$title = apply_filters( 'the_title', $title, $post->ID );
|
$title = apply_filters( 'the_title', $title, $post->ID );
|
||||||
$date = mysql2date( get_option( 'date_format' ), $post->post_date );
|
$date = mysql2date( get_option( 'date_format' ), $post->post_date );
|
||||||
$rel = $previous ? 'prev' : 'next';
|
$rel = $previous ? 'prev' : 'next';
|
||||||
|
|
|
@ -341,7 +341,6 @@ function wp_print_media_templates() {
|
||||||
<# } #>>
|
<# } #>>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/includes/media.php */
|
|
||||||
$sizes = apply_filters( 'image_size_names_choose', array(
|
$sizes = apply_filters( 'image_size_names_choose', array(
|
||||||
'thumbnail' => __('Thumbnail'),
|
'thumbnail' => __('Thumbnail'),
|
||||||
'medium' => __('Medium'),
|
'medium' => __('Medium'),
|
||||||
|
|
|
@ -1744,7 +1744,6 @@ function wp_prepare_attachment_for_js( $attachment ) {
|
||||||
|
|
||||||
if ( $meta && 'image' === $type ) {
|
if ( $meta && 'image' === $type ) {
|
||||||
$sizes = array();
|
$sizes = array();
|
||||||
/** This filter is documented in wp-admin/includes/media.php */
|
|
||||||
$possible_sizes = apply_filters( 'image_size_names_choose', array(
|
$possible_sizes = apply_filters( 'image_size_names_choose', array(
|
||||||
'thumbnail' => __('Thumbnail'),
|
'thumbnail' => __('Thumbnail'),
|
||||||
'medium' => __('Medium'),
|
'medium' => __('Medium'),
|
||||||
|
|
|
@ -2066,27 +2066,27 @@ function wp_is_large_network( $using = 'sites' ) {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return an array of sites for a network or networks.
|
* Return an array of sites for a network.
|
||||||
|
*
|
||||||
|
* @see wp_is_large_network() Returns an empty array if the install is considered large.
|
||||||
*
|
*
|
||||||
* @since 3.7.0
|
* @since 3.7.0
|
||||||
*
|
*
|
||||||
* @param array $args {
|
* @param array $args {
|
||||||
* Array of default arguments. Optional.
|
* Array of arguments. Optional.
|
||||||
*
|
*
|
||||||
* @type int|array $network_id A network ID or array of network IDs. Set to null to retrieve sites
|
* @type int|array 'network_id' A network ID or array of network IDs. Set to null to retrieve sites
|
||||||
* from all networks. Defaults to current network ID.
|
* from all networks. Defaults to current network ID.
|
||||||
* @type int $public Retrieve public or non-public sites. Default null, for any.
|
* @type int 'public' Retrieve public or non-public sites. Default null, for any.
|
||||||
* @type int $archived Retrieve archived or non-archived sites. Default null, for any.
|
* @type int 'archived' Retrieve archived or non-archived sites. Default null, for any.
|
||||||
* @type int $mature Retrieve mature or non-mature sites. Default null, for any.
|
* @type int 'mature' Retrieve mature or non-mature sites. Default null, for any.
|
||||||
* @type int $spam Retrieve spam or non-spam sites. Default null, for any.
|
* @type int 'spam' Retrieve spam or non-spam sites. Default null, for any.
|
||||||
* @type int $deleted Retrieve deleted or non-deleted sites. Default null, for any.
|
* @type int 'deleted' Retrieve deleted or non-deleted sites. Default null, for any.
|
||||||
* @type int $limit Number of sites to limit the query to. Default 100.
|
* @type int 'limit' Number of sites to limit the query to. Default 100.
|
||||||
* @type int $offset Exclude the first x sites. Used in combination with the $limit parameter. Default 0.
|
* @type int 'offset' Exclude the first x sites. Used in combination with the limit parameter. Default 0.
|
||||||
* }
|
* }
|
||||||
* @return array An empty array if the install is considered "large" via wp_is_large_network(). Otherwise,
|
*
|
||||||
* an associative array of site data arrays, each containing the site (network) ID, blog ID,
|
* @return array An array of site data
|
||||||
* site domain and path, dates registered and modified, and the language ID. Also, boolean
|
|
||||||
* values for whether the site is public, archived, mature, spam, and/or deleted.
|
|
||||||
*/
|
*/
|
||||||
function wp_get_sites( $args = array() ) {
|
function wp_get_sites( $args = array() ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
|
@ -147,7 +147,7 @@ class Walker_Nav_Menu extends Walker {
|
||||||
|
|
||||||
$item_output = $args->before;
|
$item_output = $args->before;
|
||||||
$item_output .= '<a'. $attributes .'>';
|
$item_output .= '<a'. $attributes .'>';
|
||||||
/** This filter is documented in wp-includes/post-template.php */
|
//duplicate_hook
|
||||||
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
|
$item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after;
|
||||||
$item_output .= '</a>';
|
$item_output .= '</a>';
|
||||||
$item_output .= $args->after;
|
$item_output .= $args->after;
|
||||||
|
|
|
@ -1700,7 +1700,6 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
|
||||||
if ( !empty( $rating ) )
|
if ( !empty( $rating ) )
|
||||||
$out .= "&r={$rating}";
|
$out .= "&r={$rating}";
|
||||||
|
|
||||||
$out = str_replace( '&', '&', esc_url( $out ) );
|
|
||||||
$avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />";
|
$avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />";
|
||||||
} else {
|
} else {
|
||||||
$avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";
|
$avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";
|
||||||
|
|
|
@ -1071,7 +1071,6 @@ class Walker_Page extends Walker {
|
||||||
if ( '' === $page->post_title )
|
if ( '' === $page->post_title )
|
||||||
$page->post_title = sprintf( __( '#%d (no title)' ), $page->ID );
|
$page->post_title = sprintf( __( '#%d (no title)' ), $page->ID );
|
||||||
|
|
||||||
/** This filter is documented in wp-includes/post-template.php */
|
|
||||||
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';
|
$output .= $indent . '<li class="' . $css_class . '"><a href="' . get_permalink($page->ID) . '">' . $link_before . apply_filters( 'the_title', $page->post_title, $page->ID ) . $link_after . '</a>';
|
||||||
|
|
||||||
if ( !empty($show_date) ) {
|
if ( !empty($show_date) ) {
|
||||||
|
|
|
@ -4190,7 +4190,6 @@ function wp_delete_attachment( $post_id, $force_delete = false ) {
|
||||||
// Don't delete the thumb if another attachment uses it
|
// Don't delete the thumb if another attachment uses it
|
||||||
if (! $wpdb->get_row( $wpdb->prepare( "SELECT meta_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attachment_metadata' AND meta_value LIKE %s AND post_id <> %d", '%' . $meta['thumb'] . '%', $post_id)) ) {
|
if (! $wpdb->get_row( $wpdb->prepare( "SELECT meta_id FROM $wpdb->postmeta WHERE meta_key = '_wp_attachment_metadata' AND meta_value LIKE %s AND post_id <> %d", '%' . $meta['thumb'] . '%', $post_id)) ) {
|
||||||
$thumbfile = str_replace(basename($file), $meta['thumb'], $file);
|
$thumbfile = str_replace(basename($file), $meta['thumb'], $file);
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
|
||||||
$thumbfile = apply_filters('wp_delete_file', $thumbfile);
|
$thumbfile = apply_filters('wp_delete_file', $thumbfile);
|
||||||
@ unlink( path_join($uploadpath['basedir'], $thumbfile) );
|
@ unlink( path_join($uploadpath['basedir'], $thumbfile) );
|
||||||
}
|
}
|
||||||
|
@ -4198,7 +4197,6 @@ function wp_delete_attachment( $post_id, $force_delete = false ) {
|
||||||
|
|
||||||
// remove intermediate and backup images if there are any
|
// remove intermediate and backup images if there are any
|
||||||
foreach ( $intermediate_sizes as $intermediate ) {
|
foreach ( $intermediate_sizes as $intermediate ) {
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
|
||||||
$intermediate_file = apply_filters( 'wp_delete_file', $intermediate['path'] );
|
$intermediate_file = apply_filters( 'wp_delete_file', $intermediate['path'] );
|
||||||
@ unlink( path_join($uploadpath['basedir'], $intermediate_file) );
|
@ unlink( path_join($uploadpath['basedir'], $intermediate_file) );
|
||||||
}
|
}
|
||||||
|
@ -4206,13 +4204,11 @@ function wp_delete_attachment( $post_id, $force_delete = false ) {
|
||||||
if ( is_array($backup_sizes) ) {
|
if ( is_array($backup_sizes) ) {
|
||||||
foreach ( $backup_sizes as $size ) {
|
foreach ( $backup_sizes as $size ) {
|
||||||
$del_file = path_join( dirname($meta['file']), $size['file'] );
|
$del_file = path_join( dirname($meta['file']), $size['file'] );
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
|
||||||
$del_file = apply_filters('wp_delete_file', $del_file);
|
$del_file = apply_filters('wp_delete_file', $del_file);
|
||||||
@ unlink( path_join($uploadpath['basedir'], $del_file) );
|
@ unlink( path_join($uploadpath['basedir'], $del_file) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** This filter is documented in wp-admin/custom-header.php */
|
|
||||||
$file = apply_filters('wp_delete_file', $file);
|
$file = apply_filters('wp_delete_file', $file);
|
||||||
|
|
||||||
if ( ! empty($file) )
|
if ( ! empty($file) )
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue