Changeset 25880
- Timestamp:
- 10/23/2013 02:37:54 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin-footer.php
r25288 r25880 22 22 * 23 23 * @since 2.5.0 24 */ 25 do_action( 'in_admin_footer' ); 24 */ 25 do_action( 'in_admin_footer' ); 26 26 ?> 27 27 <p id="footer-left" class="alignleft"> … … 29 29 /** 30 30 * Filter the "Thank you" text displayed in the admin footer. 31 * 31 * 32 32 * @since 2.8.0 33 33 * @param string The content that will be printed. 34 */ 34 */ 35 35 echo apply_filters( 'admin_footer_text', '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>' ); 36 36 ?> … … 43 43 * @see core_update_footer() WordPress prints the current version and update information, 44 44 * using core_update_footer() at priority 10. 45 * 45 * 46 46 * @since 2.3.0 47 47 * @param string The content that will be printed. 48 48 */ 49 echo apply_filters( 'update_footer', '' ); 49 echo apply_filters( 'update_footer', '' ); 50 50 ?> 51 51 </p> … … 55 55 /** 56 56 * Print scripts or data before the default footer scripts. 57 * 57 * 58 58 * @since 1.2.0 59 59 * @param string The data to print. … … 63 63 /** 64 64 * Prints any scripts and data queued for the footer. 65 * 65 * 66 66 * @since 2.8.0 67 67 */ … … 70 70 /** 71 71 * Print scripts or data after the default footer scripts. 72 * 72 * 73 73 * @since 2.8.0 74 * 74 * 75 75 * @param string $GLOBALS['hook_suffix'] The current admin page. 76 76 */ -
trunk/src/wp-admin/comment.php
r25616 r25880 280 280 281 281 $location = ( empty( $_POST['referredby'] ) ? "edit-comments.php?p=$comment_post_id" : $_POST['referredby'] ) . '#comment-' . $comment_id; 282 282 283 283 /** 284 284 * Filter the URI the user is redirected to after editing a comment in the admin. -
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r25140 r25880 309 309 if ( $parent ) { 310 310 $title = _draft_or_post_title( $post->post_parent ); 311 $parent_type = get_post_type_object( $parent->post_type ); 311 $parent_type = get_post_type_object( $parent->post_type ); 312 312 ?> 313 313 <td <?php echo $attributes ?>><strong> -
trunk/src/wp-admin/includes/class-wp-upgrader-skins.php
r25859 r25880 584 584 * Upgrader Skin for Automatic WordPress Upgrades 585 585 * 586 * This skin is designed to be used when no output is intended, all output 586 * This skin is designed to be used when no output is intended, all output 587 587 * is captured and stored for the caller to process and log/email/discard. 588 588 * -
trunk/src/wp-admin/includes/class-wp-upgrader.php
r25873 r25880 1934 1934 1935 1935 // Don't automatically run these thins, as we'll handle it ourselves 1936 remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 ); 1937 remove_action( 'upgrader_process_complete', 'wp_version_check' ); 1938 remove_action( 'upgrader_process_complete', 'wp_update_plugins' ); 1939 remove_action( 'upgrader_process_complete', 'wp_update_themes' ); 1936 remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 ); 1937 remove_action( 'upgrader_process_complete', 'wp_version_check' ); 1938 remove_action( 'upgrader_process_complete', 'wp_update_plugins' ); 1939 remove_action( 'upgrader_process_complete', 'wp_update_themes' ); 1940 1940 1941 1941 // Next, Plugins … … 2271 2271 * @type string $body The email message body. 2272 2272 * @type string $headers Any email headers, defaults to no headers. 2273 * } 2273 * } 2274 2274 * @param string $type The type of email being sent. Can be one of 'success', 'fail', 'manual', 'critical'. 2275 2275 * @param object $core_update The update offer that was attempted. -
trunk/src/wp-admin/includes/deprecated.php
r25472 r25880 1122 1122 * 1123 1123 * {@internal Missing Short Description}} 1124 * 1125 * @since 2.0.0 1124 * 1125 * @since 2.0.0 1126 1126 * @deprecated 3.7.0 1127 1127 * -
trunk/src/wp-admin/includes/ms.php
r25868 r25880 63 63 $blog = get_blog_details( $blog_id ); 64 64 /** 65 * Fires before a blog is deleted. 65 * Fires before a blog is deleted. 66 66 * 67 67 * @since MU … … 296 296 ); 297 297 update_option( $current_user->ID . '_new_email', $new_user_email ); 298 298 299 299 $email_text = __( 'Dear user, 300 300 … … 316 316 * 317 317 * The following strings have a special meaning and will get replaced dynamically: 318 * ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break. 319 * ###EMAIL### The new email. 318 * ###ADMIN_URL### The link to click on to confirm the email change. Required otherwise this functunalty is will break. 319 * ###EMAIL### The new email. 320 320 * ###SITENAME### The name of the site. 321 * ###SITEURL### The URL to the site. 321 * ###SITEURL### The URL to the site. 322 322 * 323 323 * @since MU … … 449 449 /** 450 450 * Fires after the user is marked as a SPAM user. 451 * 451 * 452 452 * @since 3.0.0 453 * 453 * 454 454 * @param int $id ID of the user marked as SPAM. 455 455 */ … … 460 460 * 461 461 * @since 3.0.0 462 * 462 * 463 463 * @param int $id ID of the user marked as HAM. 464 464 */ … … 495 495 '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', 496 496 've' => 'Venda', 'vi' => 'Vietnamese', 'vo' => 'Volapük', 'cy' => 'Welsh','wa' => 'Walloon','wo' => 'Wolof', 'xh' => 'Xhosa', 'yi' => 'Yiddish', 'yo' => 'Yoruba', 'za' => 'Zhuang; Chuang', 'zu' => 'Zulu' ); 497 497 498 498 /** 499 499 * Filter the language codes. 500 * 500 * 501 501 * @since MU 502 502 * … … 700 700 if ( isset( $super_admins ) ) 701 701 return false; 702 702 703 703 /** 704 704 * Fires before the user is granted Super Admin privileges. … … 717 717 $super_admins[] = $user->user_login; 718 718 update_site_option( 'site_admins' , $super_admins ); 719 719 720 720 /** 721 721 * Fires after the user is granted Super Admin privileges. … … 761 761 unset( $super_admins[$key] ); 762 762 update_site_option( 'site_admins', $super_admins ); 763 763 764 764 /** 765 765 * Fires after the user's Super Admin privileges are revoked. -
trunk/src/wp-admin/includes/plugin.php
r25482 r25880 543 543 /** 544 544 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false. 545 * 545 * 546 546 * @since 2.9.0 547 547 * … … 554 554 /** 555 555 * Fires before a plugin is activated in activate_plugin() when the $silent parameter is false. 556 * 556 * 557 557 * The action concatenates the 'activate_' prefix with the $plugin value passed to 558 558 * activate_plugin() to create a dynamically-named action. 559 * 559 * 560 560 * @since 2.0.0 561 561 * … … 578 578 /** 579 579 * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false. 580 * 580 * 581 581 * @since 2.9.0 582 582 * … … 628 628 * Fires for each plugin being deactivated in deactivate_plugins(), before deactivation 629 629 * and when the $silent parameter is false. 630 * 630 * 631 631 * @since 2.9.0 632 632 * 633 633 * @param string $plugin Plugin path to main plugin file with plugin data. 634 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 634 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 635 635 * or just the current site. Multisite only. Default is false. 636 636 */ … … 658 658 * Fires for each plugin being deactivated in deactivate_plugins(), after deactivation 659 659 * and when the $silent parameter is false. 660 * 660 * 661 661 * The action concatenates the 'deactivate_' prefix with the plugin's basename 662 662 * to create a dynamically-named action. 663 * 663 * 664 664 * @since 2.0.0 665 665 * 666 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 666 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 667 667 * or just the current site. Multisite only. Default is false. 668 668 */ … … 672 672 * Fires for each plugin being deactivated in deactivate_plugins(), after deactivation 673 673 * and when the $silent parameter is false. 674 * 674 * 675 675 * @since 2.9.0 676 676 * 677 677 * @param string $plugin Plugin path to main plugin file with plugin data. 678 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 678 * @param bool $network_deactivating Whether the plugin is deactivated for all sites in the network 679 679 * or just the current site. Multisite only. Default is false. 680 680 */ … … 932 932 /** 933 933 * Fires in uninstall_plugin() once the plugin has been uninstalled. 934 * 934 * 935 935 * The action concatenates the 'uninstall_' prefix with the basename of the 936 936 * plugin passed to {@see uninstall_plugin()} to create a dynamically-named action. -
trunk/src/wp-admin/index.php
r25616 r25880 124 124 /** 125 125 * Add content to the welcome panel on the admin dashboard. 126 * 126 * 127 127 * To remove the default welcome panel, use remove_action(): 128 128 * <code>remove_action( 'welcome_panel', 'wp_welcome_panel' );</code> 129 * 129 * 130 130 * @since 3.5.0 131 131 */ 132 do_action( 'welcome_panel' ); 132 do_action( 'welcome_panel' ); 133 133 ?> 134 134 </div> -
trunk/src/wp-admin/js/about.js
r25848 r25880 41 41 setTimeout(animate, 220 + Math.floor(Math.random() * ( 800 - 220)) ); 42 42 } 43 // 43 // 44 44 function begin(){ 45 // we async load zxcvbn, so we need to make sure it's loaded before starting 45 // we async load zxcvbn, so we need to make sure it's loaded before starting 46 46 if (typeof(zxcvbn) !== 'undefined') 47 47 animate(); … … 49 49 setTimeout(begin,800); 50 50 } 51 51 52 52 // Turn off the animation on focus 53 53 $input.on('focus', function(){ … … 56 56 }); 57 57 58 // Act like a normal password strength meter 58 // Act like a normal password strength meter 59 59 $input.on('keyup', function(){ 60 60 updateResult(); -
trunk/src/wp-admin/network.php
r25722 r25880 68 68 /** 69 69 * Filter whether to enable the subdirectory install feature in Multisite. 70 * 70 * 71 71 * @since 3.0.0 72 * 72 * 73 73 * @param bool true Whether to enable the subdirectory install feature in Multisite. Default is false. 74 74 */ -
trunk/src/wp-admin/options-general.php
r25830 r25880 266 266 /** 267 267 * Filter the default time formats. 268 * 268 * 269 269 * @since 2.7.0 270 270 * -
trunk/src/wp-admin/options-reading.php
r25717 r25880 151 151 <label for="blog-norobots"><?php _e( 'Discourage search engines from indexing this site' ); ?></label> 152 152 <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> 153 <?php 153 <?php 154 154 /** 155 155 * Enable the legacy 'Site Visibility' privacy options. -
trunk/src/wp-admin/options.php
r25616 r25880 31 31 else 32 32 33 /** 34 * Filter the capability required when using the Settings API. 35 * 36 * By default, the options groups for all registered settings require the manage_options capability. 37 * This filter is required to change the capability required for a certain options page. 38 * 33 /** 34 * Filter the capability required when using the Settings API. 35 * 36 * By default, the options groups for all registered settings require the manage_options capability. 37 * This filter is required to change the capability required for a certain options page. 38 * 39 39 * @since 3.2.0 40 * 41 * @param string $capability The capability used for the page, which is manage_options by default. 40 * 41 * @param string $capability The capability used for the page, which is manage_options by default. 42 42 */ 43 43 $capability = apply_filters( "option_page_capability_{$option_page}", $capability ); … … 107 107 $whitelist_options['general'][] = 'new_admin_email'; 108 108 $whitelist_options['general'][] = 'WPLANG'; 109 109 110 110 /** 111 111 * Toggle post-by-email functionality. … … 120 120 121 121 /** 122 * Filter the options white list. 123 * 122 * Filter the options white list. 123 * 124 124 * @since 2.7.0 125 125 * -
trunk/src/wp-admin/revision.php
r25616 r25880 2 2 /** 3 3 * Revisions administration panel 4 * 4 * 5 5 * Requires wp-admin/includes/revision.php. 6 6 * … … 8 8 * @subpackage Administration 9 9 * @since 2.6.0 10 * 10 * 11 11 * @param int revision Optional. The revision ID. 12 12 * @param string action The action to take. 13 * Accepts 'restore', 'view' or 'edit'. 13 * Accepts 'restore', 'view' or 'edit'. 14 14 * @param int from The revision to compare from. 15 15 * @param int to Optional, required if revision missing. The revision to compare to. -
trunk/src/wp-admin/update-core.php
r25841 r25880 25 25 global $wp_local_package, $wpdb, $wp_version; 26 26 static $first_pass = true; 27 27 28 28 if ( 'en_US' == $update->locale && 'en_US' == get_locale() ) 29 29 $version_string = $update->current; … … 33 33 else 34 34 $version_string = sprintf( "%s–<strong>%s</strong>", $update->current, $update->locale ); 35 35 36 36 $current = false; 37 37 if ( !isset($update->response) || 'latest' == $update->response ) -
trunk/src/wp-admin/user-new.php
r25868 r25880 117 117 $add_user_errors = $user_details[ 'errors' ]; 118 118 } else { 119 /** 119 /** 120 120 * Filter the user_login, aka the username, before it is added to the site. 121 * 121 * 122 122 * @since 3.0.0 123 * 124 * @param string $_REQUEST['user_login'] The sanitized username. 125 */ 123 * 124 * @param string $_REQUEST['user_login'] The sanitized username. 125 */ 126 126 $new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) ); 127 127 if ( isset( $_POST[ 'noconfirmation' ] ) && is_super_admin() ) { … … 189 189 wp_enqueue_script('user-profile'); 190 190 191 /** 191 /** 192 192 * Allows you to enable user auto-complete for non-super admins in multisite. 193 * 193 * 194 194 * @since 3.4.0 195 * 195 * 196 196 * @param bool True or false, based on if you enable auto-complete for non-super admins. Default is false. 197 */ 197 */ 198 198 if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_network( 'users' ) 199 199 && ( is_super_admin() || apply_filters( 'autocomplete_users_for_site_admins', false ) ) … … 282 282 ?> 283 283 <?php 284 /** 284 /** 285 285 * Fires inside the adduser form tag. 286 * 286 * 287 287 * @since 3.0.0 288 */ 288 */ 289 289 ?> 290 290 <form action="" method="post" name="adduser" id="adduser" class="validate"<?php do_action('user_new_form_tag');?>> … … 377 377 <td><input name="url" type="text" id="url" class="code" value="<?php echo esc_attr($new_user_uri); ?>" /></td> 378 378 </tr> 379 <?php 380 /** 379 <?php 380 /** 381 381 * Filter the display of the password fields. 382 * 382 * 383 383 * @since 1.5.1 384 * 384 * 385 385 * @param bool True or false, based on if you want to show the password fields. Default is true. 386 */ 386 */ 387 387 if ( apply_filters( 'show_password_fields', true ) ) : ?> 388 388 <tr class="form-field form-required"> -
trunk/src/wp-admin/widgets.php
r25734 r25880 321 321 <?php } ?> 322 322 323 <?php 323 <?php 324 324 /** 325 325 * Fires before the Widgets administration page content loads. -
trunk/src/wp-includes/category.php
r25724 r25880 272 272 return $return; 273 273 } 274 274 275 275 /** 276 276 * Filter the array of term objects returned for the 'post_tag' taxonomy. -
trunk/src/wp-includes/class-http.php
r25654 r25880 637 637 } 638 638 639 return wp_remote_request( $redirect_location, $args ); 639 return wp_remote_request( $redirect_location, $args ); 640 640 } 641 641 … … 945 945 /** 946 946 * Verifies the received SSL certificate against it's Common Names and subjectAltName fields 947 * 947 * 948 948 * PHP's SSL verifications only verify that it's a valid Certificate, it doesn't verify if 949 949 * the certificate is valid for the hostname which was requested. -
trunk/src/wp-includes/class-wp-admin-bar.php
r25563 r25880 51 51 * add_theme_support( 'admin-bar', array( 'callback' => '__return_false' ) ); 52 52 */ 53 $admin_bar_args = get_theme_support( 'admin-bar' ); 53 $admin_bar_args = get_theme_support( 'admin-bar' ); 54 54 $header_callback = $admin_bar_args[0]['callback']; 55 55 } -
trunk/src/wp-includes/class-wp-walker.php
r25644 r25880 8 8 * 9 9 * @since 2.1.0 10 * 10 * 11 11 * @package WordPress 12 12 * @abstract -
trunk/src/wp-includes/feed-rdf.php
r25868 r25880 17 17 xmlns:admin="http://webns.net/mvcb/" 18 18 xmlns:content="http://purl.org/rss/1.0/modules/content/" 19 <?php 19 <?php 20 20 /** 21 21 * Fires at the end of the feed root to add namespaces. … … 23 23 * @since 2.0.0 24 24 */ 25 do_action( 'rdf_ns' ); 25 do_action( 'rdf_ns' ); 26 26 ?> 27 27 > … … 36 36 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 37 37 <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase> 38 <?php 38 <?php 39 39 /** 40 40 * Fires at the end of the RDF feed header. … … 42 42 * @since 2.0.0 43 43 */ 44 do_action( 'rdf_header' ); 44 do_action( 'rdf_header' ); 45 45 ?> 46 46 <items> … … 65 65 <content:encoded><![CDATA[<?php the_content_feed('rdf') ?>]]></content:encoded> 66 66 <?php endif; ?> 67 <?php 67 <?php 68 68 /** 69 69 * Fires at the end of each RDF feed item. … … 71 71 * @since 2.0.0 72 72 */ 73 do_action( 'rdf_item' ); 73 do_action( 'rdf_item' ); 74 74 ?> 75 75 </item> -
trunk/src/wp-includes/feed-rss.php
r25529 r25880 24 24 * 25 25 * @since 2.0.0 26 */ 26 */ 27 27 do_action( 'rss_head' ); 28 28 ?> -
trunk/src/wp-includes/feed-rss2-comments.php
r25868 r25880 15 15 xmlns:atom="http://www.w3.org/2005/Atom" 16 16 xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" 17 <?php 17 <?php 18 18 /** This action is documented in wp-includes/feed-rss2.php */ 19 19 do_action( 'rss2_ns' ); 20 20 ?> 21 21 22 <?php 22 <?php 23 23 /** 24 24 * Fires at the end of the RSS root to add namespaces. … … 46 46 <?php /** This filter is documented in wp-includes/feed-rss2.php */ ?> 47 47 <sy:updateFrequency><?php echo apply_filters( 'rss_update_frequency', '1' ); ?></sy:updateFrequency> 48 <?php 48 <?php 49 49 /** 50 50 * Fires at the end of the RSS2 comment feed header. -
trunk/src/wp-includes/ms-load.php
r25732 r25880 76 76 /** 77 77 * Filter checking the status of the current blog. 78 * 78 * 79 79 * @since 1.2.1 80 * 80 * 81 81 * @param bool null Whether to skip the blog status check. Default null. 82 82 */ -
trunk/src/wp-includes/shortcodes.php
r25423 r25880 342 342 * Filter a shortcode's default attributes. 343 343 * 344 * If the third parameter of the shortcode_atts() function is present then this filter is available. 344 * If the third parameter of the shortcode_atts() function is present then this filter is available. 345 345 * The third parameter, $shortcode, is the name of the shortcode. 346 346 * -
trunk/src/wp-includes/update.php
r25873 r25880 18 18 * @uses $wp_version Used to check against the newest WordPress version. 19 19 * 20 * @param array $extra_stats Extra statistics to report to the WordPress.org API. 20 * @param array $extra_stats Extra statistics to report to the WordPress.org API. 21 21 * @return mixed Returns null if update is unsupported. Returns false if check is too soon. 22 22 */ -
trunk/src/wp-includes/vars.php
r25767 r25880 96 96 97 97 /** 98 * Whether the server software is Nginx or something else 99 * @global bool $is_nginx 100 */ 101 $is_nginx = (strpos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false); 102 98 * Whether the server software is Nginx or something else 99 * @global bool $is_nginx 100 */ 101 $is_nginx = (strpos($_SERVER['SERVER_SOFTWARE'], 'nginx') !== false); 102 103 103 /** 104 104 * Whether the server software is IIS or something else -
trunk/src/wp-login.php
r25868 r25880 425 425 /** 426 426 * Fires when the login form is initialized. 427 * 427 * 428 428 * @since 3.2.0 429 429 */ … … 435 435 * that brought the visitor to the login form. Actions include 'postpass', 436 436 * 'logout', 'lostpassword', etc. 437 * 437 * 438 438 * @since 2.8.0 439 439 */ … … 575 575 /** 576 576 * Fires before the password reset procedure is validated. 577 * 577 * 578 578 * @since 3.5.0 579 579 * -
trunk/src/xmlrpc.php
r25281 r25880 43 43 <api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" /> 44 44 <api name="Blogger" blogID="1" preferred="false" apiLink="<?php echo site_url('xmlrpc.php', 'rpc') ?>" /> 45 <?php 46 /** 45 <?php 46 /** 47 47 * Add additional APIs to the Really Simple Discovery (RSD) endpoint. 48 48 * 49 49 * @see http://cyber.law.harvard.edu/blogs/gems/tech/rsd.html 50 50 * @since 3.5.0 51 */ 52 do_action( 'xmlrpc_rsd_apis' ); 51 */ 52 do_action( 'xmlrpc_rsd_apis' ); 53 53 ?> 54 54 </apis> … … 70 70 $post_default_title = ""; 71 71 72 /** 72 /** 73 73 * Filter the class used for handling XML-RPC requests. 74 * 74 * 75 75 * @since 3.1.0 76 76 * @param string The name of the XML-RPC server class. 77 */ 77 */ 78 78 $wp_xmlrpc_server_class = apply_filters( 'wp_xmlrpc_server_class', 'wp_xmlrpc_server' ); 79 79 $wp_xmlrpc_server = new $wp_xmlrpc_server_class;
Note: See TracChangeset
for help on using the changeset viewer.