Changeset 35885
- Timestamp:
- 12/12/2015 03:36:36 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/credits.php
r34036 r35885 16 16 * 17 17 * @return array|false A list of all of the contributors, or false on error. 18 */18 */ 19 19 function wp_credits() { 20 20 global $wp_version; -
trunk/src/wp-admin/includes/dashboard.php
r35873 r35885 1208 1208 * 1209 1209 * @return bool|null True if not multisite, user can't upload files, or the space check option is disabled. 1210 */1210 */ 1211 1211 function wp_dashboard_quota() { 1212 1212 if ( !is_multisite() || !current_user_can( 'upload_files' ) || get_site_option( 'upload_space_check_disabled' ) ) -
trunk/src/wp-admin/includes/file.php
r35848 r35885 225 225 * @return array On success, returns an associative array of file attributes. On failure, returns 226 226 * $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ). 227 */227 */ 228 228 function _wp_handle_upload( &$file, $overrides, $time, $action ) { 229 229 // The default error handler. -
trunk/src/wp-admin/includes/ms.php
r35325 r35885 1094 1094 * 1095 1095 * @since 4.1.0 1096 */1096 */ 1097 1097 function network_settings_add_js() { 1098 1098 ?> -
trunk/src/wp-admin/includes/nav-menu.php
r35749 r35885 238 238 * @param int|string $nav_menu_selected_id (id, name or slug) of the currently-selected menu 239 239 * @return string Disabled attribute if at least one menu exists, false if not 240 */240 */ 241 241 function wp_nav_menu_disabled_check( $nav_menu_selected_id ) { 242 242 global $one_theme_location_no_menus; -
trunk/src/wp-admin/includes/plugin.php
r35874 r35885 1351 1351 * @param callable $function The function to be called to output the content for this page. 1352 1352 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. 1353 */1353 */ 1354 1354 function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { 1355 1355 return add_submenu_page( 'edit.php?post_type=page', $page_title, $menu_title, $capability, $menu_slug, $function ); … … 1371 1371 * @param callable $function The function to be called to output the content for this page. 1372 1372 * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. 1373 */1373 */ 1374 1374 function add_comments_page( $page_title, $menu_title, $capability, $menu_slug, $function = '' ) { 1375 1375 return add_submenu_page( 'edit-comments.php', $page_title, $menu_title, $capability, $menu_slug, $function ); -
trunk/src/wp-content/themes/twentythirteen/functions.php
r32843 r35885 284 284 /** 285 285 * Display navigation to next/previous post when applicable. 286 *287 * @since Twenty Thirteen 1.0288 */286 * 287 * @since Twenty Thirteen 1.0 288 */ 289 289 function twentythirteen_post_nav() { 290 290 global $post; -
trunk/src/wp-includes/deprecated.php
r35848 r35885 1196 1196 * 1197 1197 * @deprecated 2.5.0 1198 */1198 */ 1199 1199 function gzip_compression() { 1200 1200 _deprecated_function( __FUNCTION__, '2.5' ); … … 1614 1614 * @deprecated 2.8.0 Use the_author_meta() 1615 1615 * @see the_author_meta() 1616 */1616 */ 1617 1617 function the_author_ID() { 1618 1618 _deprecated_function( __FUNCTION__, '2.8', 'the_author_meta(\'ID\')' ); -
trunk/src/wp-includes/link-template.php
r35704 r35885 686 686 * @param int $post_id Optional post ID. Default to current post. 687 687 * @param string $feed Optional. Feed format. 688 */688 */ 689 689 function post_comments_feed_link( $link_text = '', $post_id = '', $feed = '' ) { 690 690 $url = get_post_comments_feed_link( $post_id, $feed ); … … 717 717 * @param string $feed Optional. Feed type. 718 718 * @return string Link to the feed for the author specified by $author_id. 719 */719 */ 720 720 function get_author_feed_link( $author_id, $feed = '' ) { 721 721 $author_id = (int) $author_id; … … 761 761 * @param string $feed Optional. Feed type. 762 762 * @return string Link to the feed for the category specified by $cat_id. 763 */763 */ 764 764 function get_category_feed_link( $cat_id, $feed = '' ) { 765 765 return get_term_feed_link( $cat_id, 'category', $feed ); … … 778 778 * @param string $feed Optional. Feed type. 779 779 * @return string|false Link to the feed for the term specified by $term_id and $taxonomy. 780 */780 */ 781 781 function get_term_feed_link( $term_id, $taxonomy = 'category', $feed = '' ) { 782 782 $term_id = ( int ) $term_id; … … 2720 2720 * @param string|array $args Optional args. See paginate_links(). 2721 2721 * @return string|void Markup for pagination links. 2722 */2722 */ 2723 2723 function paginate_comments_links($args = array()) { 2724 2724 global $wp_rewrite; … … 2925 2925 * 'http', 'https', 'relative', 'rest', or null. Default null. 2926 2926 * @return string Home url link with optional path appended. 2927 */2927 */ 2928 2928 function home_url( $path = '', $scheme = null ) { 2929 2929 return get_home_url( null, $path, $scheme ); … … 2947 2947 * 'http', 'https', 'relative', 'rest', or null. Default null. 2948 2948 * @return string Home URL link with optional path appended. 2949 */2949 */ 2950 2950 function get_home_url( $blog_id = null, $path = '', $scheme = null ) { 2951 2951 global $pagenow; … … 2999 2999 * @param string $scheme Optional. Scheme to give the site url context. See set_url_scheme(). 3000 3000 * @return string Site url link with optional path appended. 3001 */3001 */ 3002 3002 function site_url( $path = '', $scheme = null ) { 3003 3003 return get_site_url( null, $path, $scheme ); … … 3019 3019 * 'relative'. Default null. 3020 3020 * @return string Site url link with optional path appended. 3021 */3021 */ 3022 3022 function get_site_url( $blog_id = null, $path = '', $scheme = null ) { 3023 3023 if ( empty( $blog_id ) || !is_multisite() ) { … … 3056 3056 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. 3057 3057 * @return string Admin url link with optional path appended. 3058 */3058 */ 3059 3059 function admin_url( $path = '', $scheme = 'admin' ) { 3060 3060 return get_admin_url( null, $path, $scheme ); … … 3072 3072 * {@see force_ssl_admin()} and {@see is_ssl()}. 3073 3073 * @return string Admin url link with optional path appended. 3074 */3074 */ 3075 3075 function get_admin_url( $blog_id = null, $path = '', $scheme = 'admin' ) { 3076 3076 $url = get_site_url($blog_id, 'wp-admin/', $scheme); … … 3099 3099 * @param string $scheme Optional. Scheme to give the includes url context. 3100 3100 * @return string Includes url link with optional path appended. 3101 */3101 */ 3102 3102 function includes_url( $path = '', $scheme = null ) { 3103 3103 $url = site_url( '/' . WPINC . '/', $scheme ); … … 3125 3125 * @param string $path Optional. Path relative to the content url. 3126 3126 * @return string Content url link with optional path appended. 3127 */3127 */ 3128 3128 function content_url($path = '') { 3129 3129 $url = set_url_scheme( WP_CONTENT_URL ); … … 3157 3157 * Typically this is done by passing `__FILE__` as the argument. 3158 3158 * @return string Plugins URL link with optional paths appended. 3159 */3159 */ 3160 3160 function plugins_url( $path = '', $plugin = '' ) { 3161 3161 … … 3207 3207 * @param string $scheme Optional. Scheme to give the site url context. See set_url_scheme(). 3208 3208 * @return string Site url link with optional path appended. 3209 */3209 */ 3210 3210 function network_site_url( $path = '', $scheme = null ) { 3211 3211 if ( ! is_multisite() ) … … 3249 3249 * 'http', 'https', or 'relative'. Default null. 3250 3250 * @return string Home url link with optional path appended. 3251 */3251 */ 3252 3252 function network_home_url( $path = '', $scheme = null ) { 3253 3253 if ( ! is_multisite() ) … … 3290 3290 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. 3291 3291 * @return string Admin url link with optional path appended. 3292 */3292 */ 3293 3293 function network_admin_url( $path = '', $scheme = 'admin' ) { 3294 3294 if ( ! is_multisite() ) … … 3320 3320 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. 3321 3321 * @return string Admin url link with optional path appended. 3322 */3322 */ 3323 3323 function user_admin_url( $path = '', $scheme = 'admin' ) { 3324 3324 $url = network_site_url('wp-admin/user/', $scheme); … … 3347 3347 * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. 3348 3348 * @return string Admin url link with optional path appended. 3349 */3349 */ 3350 3350 function self_admin_url($path = '', $scheme = 'admin') { 3351 3351 if ( is_network_admin() ) … … 3490 3490 * 3491 3491 * @since 2.9.0 3492 */3492 */ 3493 3493 function rel_canonical() { 3494 3494 if ( ! is_singular() ) {
Note: See TracChangeset
for help on using the changeset viewer.