mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
Pinking shears
Built from https://develop.svn.wordpress.org/trunk@25880 git-svn-id: http://core.svn.wordpress.org/trunk@25792 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c3d62fc1df
commit
b87d4b77e5
@ -21,17 +21,17 @@ if ( !defined('ABSPATH') )
|
||||
* Fires after the opening tag for the admin footer.
|
||||
*
|
||||
* @since 2.5.0
|
||||
*/
|
||||
do_action( 'in_admin_footer' );
|
||||
*/
|
||||
do_action( 'in_admin_footer' );
|
||||
?>
|
||||
<p id="footer-left" class="alignleft">
|
||||
<?php
|
||||
/**
|
||||
* Filter the "Thank you" text displayed in the admin footer.
|
||||
*
|
||||
*
|
||||
* @since 2.8.0
|
||||
* @param string The content that will be printed.
|
||||
*/
|
||||
*/
|
||||
echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>' );
|
||||
?>
|
||||
</p>
|
||||
@ -42,11 +42,11 @@ if ( !defined('ABSPATH') )
|
||||
*
|
||||
* @see core_update_footer() WordPress prints the current version and update information,
|
||||
* using core_update_footer() at priority 10.
|
||||
*
|
||||
*
|
||||
* @since 2.3.0
|
||||
* @param string The content that will be printed.
|
||||
*/
|
||||
echo apply_filters( 'update_footer', '' );
|
||||
echo apply_filters( 'update_footer', '' );
|
||||
?>
|
||||
</p>
|
||||
<div class="clear"></div>
|
||||
@ -54,7 +54,7 @@ if ( !defined('ABSPATH') )
|
||||
<?php
|
||||
/**
|
||||
* Print scripts or data before the default footer scripts.
|
||||
*
|
||||
*
|
||||
* @since 1.2.0
|
||||
* @param string The data to print.
|
||||
*/
|
||||
@ -62,16 +62,16 @@ do_action('admin_footer', '');
|
||||
|
||||
/**
|
||||
* Prints any scripts and data queued for the footer.
|
||||
*
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
do_action('admin_print_footer_scripts');
|
||||
|
||||
/**
|
||||
* Print scripts or data after the default footer scripts.
|
||||
*
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
*
|
||||
* @param string $GLOBALS['hook_suffix'] The current admin page.
|
||||
*/
|
||||
do_action("admin_footer-" . $GLOBALS['hook_suffix']);
|
||||
|
@ -279,7 +279,7 @@ case 'editedcomment' :
|
||||
edit_comment();
|
||||
|
||||
$location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id;
|
||||
|
||||
|
||||
/**
|
||||
* Filter the URI the user is redirected to after editing a comment in the admin.
|
||||
*
|
||||
|
@ -308,7 +308,7 @@ foreach ( $columns as $column_name => $column_display_name ) {
|
||||
|
||||
if ( $parent ) {
|
||||
$title = _draft_or_post_title( $post->post_parent );
|
||||
$parent_type = get_post_type_object( $parent->post_type );
|
||||
$parent_type = get_post_type_object( $parent->post_type );
|
||||
?>
|
||||
<td <?php echo $attributes ?>><strong>
|
||||
<?php if ( current_user_can( 'edit_post', $post->post_parent ) && $parent_type->show_ui ) { ?>
|
||||
|
@ -583,7 +583,7 @@ class Language_Pack_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||
/**
|
||||
* Upgrader Skin for Automatic WordPress Upgrades
|
||||
*
|
||||
* This skin is designed to be used when no output is intended, all output
|
||||
* This skin is designed to be used when no output is intended, all output
|
||||
* is captured and stored for the caller to process and log/email/discard.
|
||||
*
|
||||
* @package WordPress
|
||||
|
@ -1933,10 +1933,10 @@ class WP_Automatic_Updater {
|
||||
update_option( $lock_name, time() );
|
||||
|
||||
// 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', 'wp_version_check' );
|
||||
remove_action( 'upgrader_process_complete', 'wp_update_plugins' );
|
||||
remove_action( 'upgrader_process_complete', 'wp_update_themes' );
|
||||
remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
|
||||
remove_action( 'upgrader_process_complete', 'wp_version_check' );
|
||||
remove_action( 'upgrader_process_complete', 'wp_update_plugins' );
|
||||
remove_action( 'upgrader_process_complete', 'wp_update_themes' );
|
||||
|
||||
// Next, Plugins
|
||||
wp_update_plugins(); // Check for Plugin updates
|
||||
@ -2270,7 +2270,7 @@ class WP_Automatic_Updater {
|
||||
* @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.
|
||||
|
@ -1121,8 +1121,8 @@ function wp_update_theme($theme, $feedback = '') {
|
||||
* This was once used to display attachment links. Now it is deprecated and stubbed.
|
||||
*
|
||||
* {@internal Missing Short Description}}
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @since 2.0.0
|
||||
* @deprecated 3.7.0
|
||||
*
|
||||
* @param unknown_type $id
|
||||
|
@ -62,7 +62,7 @@ function wpmu_delete_blog( $blog_id, $drop = false ) {
|
||||
|
||||
$blog = get_blog_details( $blog_id );
|
||||
/**
|
||||
* Fires before a blog is deleted.
|
||||
* Fires before a blog is deleted.
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
@ -295,7 +295,7 @@ function send_confirmation_on_profile_email() {
|
||||
'newemail' => $_POST['email']
|
||||
);
|
||||
update_option( $current_user->ID . '_new_email', $new_user_email );
|
||||
|
||||
|
||||
$email_text = __( 'Dear user,
|
||||
|
||||
You recently requested to have the email address on your account changed.
|
||||
@ -315,10 +315,10 @@ All at ###SITENAME###
|
||||
* Filter the email text sent when a user changes emails.
|
||||
*
|
||||
* The following strings have a special meaning and will get replaced dynamically:
|
||||
* ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break.
|
||||
* ###EMAIL### The new email.
|
||||
* ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break.
|
||||
* ###EMAIL### The new email.
|
||||
* ###SITENAME### The name of the site.
|
||||
* ###SITEURL### The URL to the site.
|
||||
* ###SITEURL### The URL to the site.
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
@ -448,9 +448,9 @@ function update_user_status( $id, $pref, $value, $deprecated = null ) {
|
||||
if ( $value == 1 ) {
|
||||
/**
|
||||
* Fires after the user is marked as a SPAM user.
|
||||
*
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
*
|
||||
* @param int $id ID of the user marked as SPAM.
|
||||
*/
|
||||
do_action( 'make_spam_user', $id );
|
||||
@ -459,7 +459,7 @@ function update_user_status( $id, $pref, $value, $deprecated = null ) {
|
||||
* Fires after the user is marked as a HAM user. Opposite of SPAM.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
*
|
||||
* @param int $id ID of the user marked as HAM.
|
||||
*/
|
||||
do_action( 'make_ham_user', $id );
|
||||
@ -494,10 +494,10 @@ function format_code_lang( $code = '' ) {
|
||||
'sg' => 'Sango', 'sa' => 'Sanskrit', 'sr' => 'Serbian', 'hr' => 'Croatian', 'si' => 'Sinhala; Sinhalese', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'se' => 'Northern Sami', 'sm' => 'Samoan', 'sn' => 'Shona', 'sd' => 'Sindhi', 'so' => 'Somali', 'st' => 'Sotho, Southern', 'es' => 'Spanish; Castilian', 'sc' => 'Sardinian', 'ss' => 'Swati', 'su' => 'Sundanese', 'sw' => 'Swahili',
|
||||
'sv' => 'Swedish', 'ty' => 'Tahitian', 'ta' => 'Tamil', 'tt' => 'Tatar', 'te' => 'Telugu', 'tg' => 'Tajik', 'tl' => 'Tagalog', 'th' => 'Thai', 'bo' => 'Tibetan', 'ti' => 'Tigrinya', 'to' => 'Tonga (Tonga Islands)', 'tn' => 'Tswana', 'ts' => 'Tsonga', 'tk' => 'Turkmen', 'tr' => 'Turkish', 'tw' => 'Twi', 'ug' => 'Uighur; Uyghur', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'uz' => 'Uzbek',
|
||||
've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'Volapük', 'cy' => 'Welsh','wa' => 'Walloon','wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang; Chuang', 'zu' => 'Zulu' );
|
||||
|
||||
|
||||
/**
|
||||
* Filter the language codes.
|
||||
*
|
||||
*
|
||||
* @since MU
|
||||
*
|
||||
* @param array $lang_codes Key/value pair of language codes where key is the short version.
|
||||
@ -699,7 +699,7 @@ function grant_super_admin( $user_id ) {
|
||||
// If global super_admins override is defined, there is nothing to do here.
|
||||
if ( isset( $super_admins ) )
|
||||
return false;
|
||||
|
||||
|
||||
/**
|
||||
* Fires before the user is granted Super Admin privileges.
|
||||
*
|
||||
@ -716,7 +716,7 @@ function grant_super_admin( $user_id ) {
|
||||
if ( $user && ! in_array( $user->user_login, $super_admins ) ) {
|
||||
$super_admins[] = $user->user_login;
|
||||
update_site_option( 'site_admins' , $super_admins );
|
||||
|
||||
|
||||
/**
|
||||
* Fires after the user is granted Super Admin privileges.
|
||||
*
|
||||
@ -760,7 +760,7 @@ function revoke_super_admin( $user_id ) {
|
||||
if ( false !== ( $key = array_search( $user->user_login, $super_admins ) ) ) {
|
||||
unset( $super_admins[$key] );
|
||||
update_site_option( 'site_admins', $super_admins );
|
||||
|
||||
|
||||
/**
|
||||
* Fires after the user's Super Admin privileges are revoked.
|
||||
*
|
||||
|
@ -542,7 +542,7 @@ function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silen
|
||||
if ( ! $silent ) {
|
||||
/**
|
||||
* Fires before a plugin is activated in activate_plugin() when the $silent parameter is false.
|
||||
*
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @param string $plugin Plugin path to main plugin file with plugin data.
|
||||
@ -553,10 +553,10 @@ function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silen
|
||||
|
||||
/**
|
||||
* Fires before a plugin is activated in activate_plugin() when the $silent parameter is false.
|
||||
*
|
||||
*
|
||||
* The action concatenates the 'activate_' prefix with the $plugin value passed to
|
||||
* activate_plugin() to create a dynamically-named action.
|
||||
*
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param bool $network_wide Whether to enable the plugin for all sites in the network
|
||||
@ -577,7 +577,7 @@ function activate_plugin( $plugin, $redirect = '', $network_wide = false, $silen
|
||||
if ( ! $silent ) {
|
||||
/**
|
||||
* Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false.
|
||||
*
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @param string $plugin Plugin path to main plugin file with plugin data.
|
||||
@ -627,11 +627,11 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
|
||||
/**
|
||||
* Fires for each plugin being deactivated in deactivate_plugins(), before deactivation
|
||||
* and when the $silent parameter is false.
|
||||
*
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @param string $plugin Plugin path to main plugin file with plugin data.
|
||||
* @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
|
||||
* @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
|
||||
* or just the current site. Multisite only. Default is false.
|
||||
*/
|
||||
do_action( 'deactivate_plugin', $plugin, $network_deactivating );
|
||||
@ -657,13 +657,13 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
|
||||
/**
|
||||
* Fires for each plugin being deactivated in deactivate_plugins(), after deactivation
|
||||
* and when the $silent parameter is false.
|
||||
*
|
||||
*
|
||||
* The action concatenates the 'deactivate_' prefix with the plugin's basename
|
||||
* to create a dynamically-named action.
|
||||
*
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
|
||||
* @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
|
||||
* or just the current site. Multisite only. Default is false.
|
||||
*/
|
||||
do_action( 'deactivate_' . $plugin, $network_deactivating );
|
||||
@ -671,11 +671,11 @@ function deactivate_plugins( $plugins, $silent = false, $network_wide = null ) {
|
||||
/**
|
||||
* Fires for each plugin being deactivated in deactivate_plugins(), after deactivation
|
||||
* and when the $silent parameter is false.
|
||||
*
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @param string $plugin Plugin path to main plugin file with plugin data.
|
||||
* @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
|
||||
* @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network
|
||||
* or just the current site. Multisite only. Default is false.
|
||||
*/
|
||||
do_action( 'deactivated_plugin', $plugin, $network_deactivating );
|
||||
@ -931,7 +931,7 @@ function uninstall_plugin($plugin) {
|
||||
|
||||
/**
|
||||
* Fires in uninstall_plugin() once the plugin has been uninstalled.
|
||||
*
|
||||
*
|
||||
* The action concatenates the 'uninstall_' prefix with the basename of the
|
||||
* plugin passed to {@see uninstall_plugin()} to create a dynamically-named action.
|
||||
*
|
||||
|
@ -123,13 +123,13 @@ $today = current_time('mysql', 1);
|
||||
<?php
|
||||
/**
|
||||
* Add content to the welcome panel on the admin dashboard.
|
||||
*
|
||||
*
|
||||
* To remove the default welcome panel, use remove_action():
|
||||
* <code>remove_action( 'welcome_panel', 'wp_welcome_panel' );</code>
|
||||
*
|
||||
*
|
||||
* @since 3.5.0
|
||||
*/
|
||||
do_action( 'welcome_panel' );
|
||||
do_action( 'welcome_panel' );
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
@ -40,22 +40,22 @@
|
||||
// Look like real typing by changing the speed new letters are added each time
|
||||
setTimeout(animate, 220 + Math.floor(Math.random() * ( 800 - 220)) );
|
||||
}
|
||||
//
|
||||
//
|
||||
function begin(){
|
||||
// we async load zxcvbn, so we need to make sure it's loaded before starting
|
||||
// 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
|
||||
// Act like a normal password strength meter
|
||||
$input.on('keyup', function(){
|
||||
updateResult();
|
||||
});
|
||||
|
@ -67,9 +67,9 @@ function allow_subdirectory_install() {
|
||||
global $wpdb;
|
||||
/**
|
||||
* Filter whether to enable the subdirectory install feature in Multisite.
|
||||
*
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
*
|
||||
* @param bool true Whether to enable the subdirectory install feature in Multisite. Default is false.
|
||||
*/
|
||||
if ( apply_filters( 'allow_subdirectory_install', false ) )
|
||||
|
@ -265,7 +265,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
||||
<?php
|
||||
/**
|
||||
* Filter the default time formats.
|
||||
*
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param array $default_time_formats Array of default time formats.
|
||||
|
@ -150,7 +150,7 @@ else :
|
||||
<input id="blog-norobots" type="radio" name="blog_public" value="0" <?php checked('0', get_option('blog_public')); ?> />
|
||||
<label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label>
|
||||
<p class="description"><?php _e( 'Note: Neither of these options blocks access to your site — it is up to search engines to honor your request.' ); ?></p>
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Enable the legacy 'Site Visibility' privacy options.
|
||||
*
|
||||
|
@ -30,15 +30,15 @@ if ( empty($option_page) ) // This is for back compat and will eventually be rem
|
||||
$option_page = 'options';
|
||||
else
|
||||
|
||||
/**
|
||||
* Filter the capability required when using the Settings API.
|
||||
*
|
||||
* By default, the options groups for all registered settings require the manage_options capability.
|
||||
* This filter is required to change the capability required for a certain options page.
|
||||
*
|
||||
/**
|
||||
* Filter the capability required when using the Settings API.
|
||||
*
|
||||
* By default, the options groups for all registered settings require the manage_options capability.
|
||||
* This filter is required to change the capability required for a certain options page.
|
||||
*
|
||||
* @since 3.2.0
|
||||
*
|
||||
* @param string $capability The capability used for the page, which is manage_options by default.
|
||||
*
|
||||
* @param string $capability The capability used for the page, which is manage_options by default.
|
||||
*/
|
||||
$capability = apply_filters( "option_page_capability_{$option_page}", $capability );
|
||||
|
||||
@ -106,7 +106,7 @@ if ( !is_multisite() ) {
|
||||
} else {
|
||||
$whitelist_options['general'][] = 'new_admin_email';
|
||||
$whitelist_options['general'][] = 'WPLANG';
|
||||
|
||||
|
||||
/**
|
||||
* Toggle post-by-email functionality.
|
||||
*
|
||||
@ -119,8 +119,8 @@ if ( !is_multisite() ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the options white list.
|
||||
*
|
||||
* Filter the options white list.
|
||||
*
|
||||
* @since 2.7.0
|
||||
*
|
||||
* @param array White list options.
|
||||
|
@ -1,16 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Revisions administration panel
|
||||
*
|
||||
*
|
||||
* Requires wp-admin/includes/revision.php.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Administration
|
||||
* @since 2.6.0
|
||||
*
|
||||
*
|
||||
* @param int revision Optional. The revision ID.
|
||||
* @param string action The action to take.
|
||||
* Accepts 'restore', 'view' or 'edit'.
|
||||
* Accepts 'restore', 'view' or 'edit'.
|
||||
* @param int from The revision to compare from.
|
||||
* @param int to Optional, required if revision missing. The revision to compare to.
|
||||
*/
|
||||
|
@ -24,7 +24,7 @@ if ( ! current_user_can( 'update_core' ) && ! current_user_can( 'update_themes'
|
||||
function list_core_update( $update ) {
|
||||
global $wp_local_package, $wpdb, $wp_version;
|
||||
static $first_pass = true;
|
||||
|
||||
|
||||
if ( 'en_US' == $update->locale && 'en_US' == get_locale() )
|
||||
$version_string = $update->current;
|
||||
// If the only available update is a partial builds, it doesn't need a language-specific version string.
|
||||
@ -32,7 +32,7 @@ function list_core_update( $update ) {
|
||||
$version_string = $update->current;
|
||||
else
|
||||
$version_string = sprintf( "%s–<strong>%s</strong>", $update->current, $update->locale );
|
||||
|
||||
|
||||
$current = false;
|
||||
if ( !isset($update->response) || 'latest' == $update->response )
|
||||
$current = true;
|
||||
|
@ -116,13 +116,13 @@ Please click the following link to confirm the invite:
|
||||
if ( is_wp_error( $user_details[ 'errors' ] ) && !empty( $user_details[ 'errors' ]->errors ) ) {
|
||||
$add_user_errors = $user_details[ 'errors' ];
|
||||
} else {
|
||||
/**
|
||||
/**
|
||||
* Filter the user_login, aka the username, before it is added to the site.
|
||||
*
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
* @param string $_REQUEST['user_login'] The sanitized username.
|
||||
*/
|
||||
*
|
||||
* @param string $_REQUEST['user_login'] The sanitized username.
|
||||
*/
|
||||
$new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) );
|
||||
if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) {
|
||||
add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email
|
||||
@ -188,13 +188,13 @@ get_current_screen()->set_help_sidebar(
|
||||
wp_enqueue_script('wp-ajax-response');
|
||||
wp_enqueue_script('user-profile');
|
||||
|
||||
/**
|
||||
/**
|
||||
* Allows you to enable user auto-complete for non-super admins in multisite.
|
||||
*
|
||||
*
|
||||
* @since 3.4.0
|
||||
*
|
||||
*
|
||||
* @param bool True or false, based on if you enable auto-complete for non-super admins. Default is false.
|
||||
*/
|
||||
*/
|
||||
if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_network( 'users' )
|
||||
&& ( is_super_admin() || apply_filters( 'autocomplete_users_for_site_admins', false ) )
|
||||
) {
|
||||
@ -281,11 +281,11 @@ if ( is_multisite() ) {
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
/**
|
||||
* Fires inside the adduser form tag.
|
||||
*
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
*/
|
||||
?>
|
||||
<form action="" method="post" name="adduser" id="adduser" class="validate"<?php do_action('user_new_form_tag');?>>
|
||||
<input name="action" type="hidden" value="adduser" />
|
||||
@ -376,14 +376,14 @@ foreach ( array( 'user_login' => 'login', 'first_name' => 'firstname', 'last_nam
|
||||
<th scope="row"><label for="url"><?php _e('Website') ?></label></th>
|
||||
<td><input name="url" type="text" id="url" class="code" value="<?php echo esc_attr($new_user_uri); ?>" /></td>
|
||||
</tr>
|
||||
<?php
|
||||
/**
|
||||
<?php
|
||||
/**
|
||||
* Filter the display of the password fields.
|
||||
*
|
||||
*
|
||||
* @since 1.5.1
|
||||
*
|
||||
*
|
||||
* @param bool True or false, based on if you want to show the password fields. Default is true.
|
||||
*/
|
||||
*/
|
||||
if ( apply_filters( 'show_password_fields', true ) ) : ?>
|
||||
<tr class="form-field form-required">
|
||||
<th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th>
|
||||
|
@ -320,7 +320,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>
|
||||
<div id="message" class="error"><p><?php echo $errors[$_GET['error']]; ?></p></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Fires before the Widgets administration page content loads.
|
||||
*
|
||||
|
@ -271,7 +271,7 @@ function get_tags( $args = '' ) {
|
||||
$return = array();
|
||||
return $return;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Filter the array of term objects returned for the 'post_tag' taxonomy.
|
||||
*
|
||||
|
@ -636,7 +636,7 @@ class WP_Http {
|
||||
}
|
||||
}
|
||||
|
||||
return wp_remote_request( $redirect_location, $args );
|
||||
return wp_remote_request( $redirect_location, $args );
|
||||
}
|
||||
|
||||
/**
|
||||
@ -944,7 +944,7 @@ class WP_Http_Streams {
|
||||
|
||||
/**
|
||||
* Verifies the received SSL certificate against it's Common Names and subjectAltName fields
|
||||
*
|
||||
*
|
||||
* PHP's SSL verifications only verify that it's a valid Certificate, it doesn't verify if
|
||||
* the certificate is valid for the hostname which was requested.
|
||||
* This function verifies the requested hostname against certificate's subjectAltName field,
|
||||
|
@ -50,7 +50,7 @@ class WP_Admin_Bar {
|
||||
* To remove the default padding styles from WordPress for the Toolbar, use the following code:
|
||||
* add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) );
|
||||
*/
|
||||
$admin_bar_args = get_theme_support( 'admin-bar' );
|
||||
$admin_bar_args = get_theme_support( 'admin-bar' );
|
||||
$header_callback = $admin_bar_args[0]['callback'];
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
* only needs to implement the methods that are needed.
|
||||
*
|
||||
* @since 2.1.0
|
||||
*
|
||||
*
|
||||
* @package WordPress
|
||||
* @abstract
|
||||
*/
|
||||
|
@ -16,13 +16,13 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
|
||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Fires at the end of the feed root to add namespaces.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
do_action( 'rdf_ns' );
|
||||
do_action( 'rdf_ns' );
|
||||
?>
|
||||
>
|
||||
<channel rdf:about="<?php bloginfo_rss("url") ?>">
|
||||
@ -35,13 +35,13 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
|
||||
<?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
|
||||
<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
|
||||
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Fires at the end of the RDF feed header.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
do_action( 'rdf_header' );
|
||||
do_action( 'rdf_header' );
|
||||
?>
|
||||
<items>
|
||||
<rdf:Seq>
|
||||
@ -64,13 +64,13 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
|
||||
<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
|
||||
<content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Fires at the end of each RDF feed item.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
do_action( 'rdf_item' );
|
||||
do_action( 'rdf_item' );
|
||||
?>
|
||||
</item>
|
||||
<?php endwhile; ?>
|
||||
|
@ -23,7 +23,7 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
|
||||
* Fires at the end of the RSS Feed Header.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*/
|
||||
*/
|
||||
do_action( 'rss_head' );
|
||||
?>
|
||||
|
||||
|
@ -14,12 +14,12 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
|
||||
<?php
|
||||
<?php
|
||||
/** This action is documented in wp-includes/feed-rss2.php */
|
||||
do_action( 'rss2_ns' );
|
||||
?>
|
||||
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Fires at the end of the RSS root to add namespaces.
|
||||
*
|
||||
@ -45,7 +45,7 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>';
|
||||
<sy:updatePeriod><?php echo apply_filters( 'rss_update_period', 'hourly' ); ?></sy:updatePeriod>
|
||||
<?php /** This filter is documented in wp-includes/feed-rss2.php */ ?>
|
||||
<sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency>
|
||||
<?php
|
||||
<?php
|
||||
/**
|
||||
* Fires at the end of the RSS2 comment feed header.
|
||||
*
|
||||
|
@ -75,9 +75,9 @@ function ms_site_check() {
|
||||
|
||||
/**
|
||||
* Filter checking the status of the current blog.
|
||||
*
|
||||
*
|
||||
* @since 1.2.1
|
||||
*
|
||||
*
|
||||
* @param bool null Whether to skip the blog status check. Default null.
|
||||
*/
|
||||
$check = apply_filters( 'ms_site_check', null );
|
||||
|
@ -341,7 +341,7 @@ function shortcode_atts( $pairs, $atts, $shortcode = '' ) {
|
||||
/**
|
||||
* Filter a shortcode's default attributes.
|
||||
*
|
||||
* If the third parameter of the shortcode_atts() function is present then this filter is available.
|
||||
* If the third parameter of the shortcode_atts() function is present then this filter is available.
|
||||
* The third parameter, $shortcode, is the name of the shortcode.
|
||||
*
|
||||
* @since 3.6.0
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @since 2.3.0
|
||||
* @uses $wp_version Used to check against the newest WordPress version.
|
||||
*
|
||||
* @param array $extra_stats Extra statistics to report to the WordPress.org API.
|
||||
* @param array $extra_stats Extra statistics to report to the WordPress.org API.
|
||||
* @return mixed Returns null if update is unsupported. Returns false if check is too soon.
|
||||
*/
|
||||
function wp_version_check( $extra_stats = array() ) {
|
||||
|
@ -95,11 +95,11 @@ $is_IE = ( $is_macIE || $is_winIE );
|
||||
$is_apache = (strpos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== false || strpos($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') !== false);
|
||||
|
||||
/**
|
||||
* Whether the server software is Nginx or something else
|
||||
* @global bool $is_nginx
|
||||
*/
|
||||
$is_nginx = (strpos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false);
|
||||
|
||||
* Whether the server software is Nginx or something else
|
||||
* @global bool $is_nginx
|
||||
*/
|
||||
$is_nginx = (strpos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false);
|
||||
|
||||
/**
|
||||
* Whether the server software is IIS or something else
|
||||
* @global bool $is_IIS
|
||||
|
@ -424,7 +424,7 @@ if ( SITECOOKIEPATH != COOKIEPATH )
|
||||
|
||||
/**
|
||||
* Fires when the login form is initialized.
|
||||
*
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
do_action( 'login_init' );
|
||||
@ -434,7 +434,7 @@ do_action( 'login_init' );
|
||||
* The dynamic portion of the hook name, $action, refers to the action
|
||||
* that brought the visitor to the login form. Actions include 'postpass',
|
||||
* 'logout', 'lostpassword', etc.
|
||||
*
|
||||
*
|
||||
* @since 2.8.0
|
||||
*/
|
||||
do_action( 'login_form_' . $action );
|
||||
@ -574,7 +574,7 @@ case 'rp' :
|
||||
|
||||
/**
|
||||
* Fires before the password reset procedure is validated.
|
||||
*
|
||||
*
|
||||
* @since 3.5.0
|
||||
*
|
||||
* @param object $errors WP Error object.
|
||||
|
14
xmlrpc.php
14
xmlrpc.php
@ -42,14 +42,14 @@ header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
|
||||
<api name="Movable Type" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
|
||||
<api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
|
||||
<api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" />
|
||||
<?php
|
||||
/**
|
||||
<?php
|
||||
/**
|
||||
* Add additional APIs to the Really Simple Discovery (RSD) endpoint.
|
||||
*
|
||||
* @see http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html
|
||||
* @since 3.5.0
|
||||
*/
|
||||
do_action( 'xmlrpc_rsd_apis' );
|
||||
*/
|
||||
do_action( 'xmlrpc_rsd_apis' );
|
||||
?>
|
||||
</apis>
|
||||
</service>
|
||||
@ -69,12 +69,12 @@ include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');
|
||||
*/
|
||||
$post_default_title = "";
|
||||
|
||||
/**
|
||||
/**
|
||||
* Filter the class used for handling XML-RPC requests.
|
||||
*
|
||||
*
|
||||
* @since 3.1.0
|
||||
* @param string The name of the XML-RPC server class.
|
||||
*/
|
||||
*/
|
||||
$wp_xmlrpc_server_class = apply_filters( 'wp_xmlrpc_server_class', 'wp_xmlrpc_server' );
|
||||
$wp_xmlrpc_server = new $wp_xmlrpc_server_class;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user