WordPress.org

Make WordPress Core

Changeset 35718


Ignore:
Timestamp:
11/20/2015 07:23:04 AM (4 years ago)
Author:
nacin
Message:

Simplify the include graph after work to split out classes.

see #33413. More details there.

Location:
trunk/src
Files:
1 deleted
4 edited
13 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/admin.php

    r35166 r35718  
    5959/** WordPress Template Administration API */
    6060require_once(ABSPATH . 'wp-admin/includes/template.php');
     61require_once(ABSPATH . 'wp-admin/includes/class-walker-category-checklist.php');
     62require_once(ABSPATH . 'wp-admin/includes/class-wp-internal-pointers.php');
    6163
    6264/** WordPress List Table Administration API and base class */
  • trunk/src/wp-admin/includes/template.php

    r35717 r35718  
    11<?php
    22/**
    3  * Administration API: Top-level admin template functionality
     3 * Template WordPress Administration API.
    44 *
    55 * A Big Mess. Also some neat functions that are nicely written.
     
    77 * @package WordPress
    88 * @subpackage Administration
    9  * @since 4.4.0
    109 */
    1110
  • trunk/src/wp-admin/includes/update-core.php

    r35582 r35718  
    4444'wp-admin/list-manipulation.js',
    4545'wp-admin/list-manipulation.php',
     46'wp-includes/comment-functions.php',
    4647'wp-includes/feed-functions.php',
    4748'wp-includes/functions-compat.php',
  • trunk/src/wp-includes/capabilities.php

    r35717 r35718  
    11<?php
    22/**
    3  * User API: Top-level role and capabilities functionality
     3 * Core User Role & Capabilities API
    44 *
    55 * @package WordPress
    66 * @subpackage Users
    7  * @since 4.4.0
    87 */
    98
  • trunk/src/wp-includes/category.php

    r35712 r35718  
    11<?php
    22/**
    3  * Taxonomy API: Top-level core category-specific functionality
     3 * Taxonomy API: Core category-specific functionality
    44 *
    55 * @package WordPress
    66 * @subpackage Taxonomy
    7  * @since 4.4.0
    87 */
    98
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r35635 r35718  
    192192        require_once( ABSPATH . WPINC . '/class-wp-customize-section.php' );
    193193        require_once( ABSPATH . WPINC . '/class-wp-customize-control.php' );
     194
     195        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-color-control.php' );
     196        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-media-control.php' );
     197        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-upload-control.php' );
     198        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-image-control.php' );
     199        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-control.php' );
     200        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-cropped-image-control.php' );
     201        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-site-icon-control.php' );
     202        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-control.php' );
     203        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-theme-control.php' );
     204        require_once( ABSPATH . WPINC . '/customize/class-wp-widget-area-customize-control.php' );
     205        require_once( ABSPATH . WPINC . '/customize/class-wp-widget-form-customize-control.php' );
     206        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-control.php' );
     207        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-control.php' );
     208        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-location-control.php' );
     209        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-name-control.php' );
     210        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-auto-add-control.php' );
     211        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-control.php' );
     212
     213        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menus-panel.php' );
     214
     215        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-themes-section.php' );
     216        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-sidebar-section.php' );
     217        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-section.php' );
     218        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-new-menu-section.php' );
     219
     220        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-filter-setting.php' );
     221        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-header-image-setting.php' );
     222        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-background-image-setting.php' );
     223        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-item-setting.php' );
     224        require_once( ABSPATH . WPINC . '/customize/class-wp-customize-nav-menu-setting.php' );
    194225
    195226        /**
  • trunk/src/wp-includes/comment.php

    r35712 r35718  
    11<?php
    22/**
    3  * Comment API: Top-level comments functionality
     3 * Core Comment API
    44 *
    55 * @package WordPress
    6  * @subpackage Comments
    7  * @since 4.4.0
     6 * @subpackage Comment
    87 */
    98
  • trunk/src/wp-includes/http.php

    r35712 r35718  
    11<?php
    22/**
    3  * HTTP API: Top-level HTTP request API functionality
     3 * Core HTTP Request API
     4 *
     5 * Standardizes the HTTP requests for WordPress. Handles cookies, gzip encoding and decoding, chunk
     6 * decoding, if HTTP 1.1 and various other difficult HTTP protocol implementations.
    47 *
    58 * @package WordPress
    69 * @subpackage HTTP
    7  * @since 4.4.0
    810 */
    911
  • trunk/src/wp-includes/meta.php

    r35712 r35718  
    11<?php
    22/**
    3  * Meta API: Top-level metadata functionality
     3 * Core Metadata API
    44 *
    55 * Functions for retrieving and manipulating metadata of various WordPress object types. Metadata
     
    99 * @package WordPress
    1010 * @subpackage Meta
    11  * @since 4.4.0
    1211 */
    1312
  • trunk/src/wp-includes/post.php

    r35712 r35718  
    11<?php
    22/**
    3  * Post API: Top-level post functionality
     3 * Core Post API
    44 *
    55 * @package WordPress
    66 * @subpackage Post
    7  * @since 4.4.0
    87 */
    98
  • trunk/src/wp-includes/rest-api.php

    r35712 r35718  
    77 * @since 4.4.0
    88 */
     9
     10/**
     11 * Version number for our API.
     12 *
     13 * @var string
     14 */
     15define( 'REST_API_VERSION', '2.0' );
    916
    1017/**
  • trunk/src/wp-includes/rewrite.php

    r35712 r35718  
    66 * @subpackage Rewrite
    77 */
     8
     9/**
     10 * Endpoint Mask for default, which is nothing.
     11 *
     12 * @since 2.1.0
     13 */
     14define('EP_NONE', 0);
     15
     16/**
     17 * Endpoint Mask for Permalink.
     18 *
     19 * @since 2.1.0
     20 */
     21define('EP_PERMALINK', 1);
     22
     23/**
     24 * Endpoint Mask for Attachment.
     25 *
     26 * @since 2.1.0
     27 */
     28define('EP_ATTACHMENT', 2);
     29
     30/**
     31 * Endpoint Mask for date.
     32 *
     33 * @since 2.1.0
     34 */
     35define('EP_DATE', 4);
     36
     37/**
     38 * Endpoint Mask for year
     39 *
     40 * @since 2.1.0
     41 */
     42define('EP_YEAR', 8);
     43
     44/**
     45 * Endpoint Mask for month.
     46 *
     47 * @since 2.1.0
     48 */
     49define('EP_MONTH', 16);
     50
     51/**
     52 * Endpoint Mask for day.
     53 *
     54 * @since 2.1.0
     55 */
     56define('EP_DAY', 32);
     57
     58/**
     59 * Endpoint Mask for root.
     60 *
     61 * @since 2.1.0
     62 */
     63define('EP_ROOT', 64);
     64
     65/**
     66 * Endpoint Mask for comments.
     67 *
     68 * @since 2.1.0
     69 */
     70define('EP_COMMENTS', 128);
     71
     72/**
     73 * Endpoint Mask for searches.
     74 *
     75 * @since 2.1.0
     76 */
     77define('EP_SEARCH', 256);
     78
     79/**
     80 * Endpoint Mask for categories.
     81 *
     82 * @since 2.1.0
     83 */
     84define('EP_CATEGORIES', 512);
     85
     86/**
     87 * Endpoint Mask for tags.
     88 *
     89 * @since 2.3.0
     90 */
     91define('EP_TAGS', 1024);
     92
     93/**
     94 * Endpoint Mask for authors.
     95 *
     96 * @since 2.1.0
     97 */
     98define('EP_AUTHORS', 2048);
     99
     100/**
     101 * Endpoint Mask for pages.
     102 *
     103 * @since 2.1.0
     104 */
     105define('EP_PAGES', 4096);
     106
     107/**
     108 * Endpoint Mask for all archive views.
     109 *
     110 * @since 3.7.0
     111 */
     112define( 'EP_ALL_ARCHIVES', EP_DATE | EP_YEAR | EP_MONTH | EP_DAY | EP_CATEGORIES | EP_TAGS | EP_AUTHORS );
     113
     114/**
     115 * Endpoint Mask for everything.
     116 *
     117 * @since 2.1.0
     118 */
     119define( 'EP_ALL', EP_PERMALINK | EP_ATTACHMENT | EP_ROOT | EP_COMMENTS | EP_SEARCH | EP_PAGES | EP_ALL_ARCHIVES );
    8120
    9121/**
  • trunk/src/wp-includes/taxonomy.php

    r35712 r35718  
    11<?php
    22/**
    3  * Taxonomy API: Top-level taxonomy functionality
     3 * Core Taxonomy API
    44 *
    55 * @package WordPress
    66 * @subpackage Taxonomy
    7  * @since 4.4.0
    87 */
    98
  • trunk/src/wp-includes/user.php

    r35712 r35718  
    11<?php
    22/**
    3  * User API: Top-level users functionality
     3 * Core User API
    44 *
    55 * @package WordPress
    66 * @subpackage Users
    7  * @since 4.4.0
    87 */
    98
  • trunk/src/wp-includes/widgets.php

    r35712 r35718  
    11<?php
    22/**
    3  * Widget API: Top-level widget functionality
     3 * Core Widgets API
     4 *
     5 * This API is used for creating dynamic sidebar without hardcoding functionality into
     6 * themes
     7 *
     8 * Includes both internal WordPress routines and theme-use routines.
     9 *
     10 * This functionality was found in a plugin before the WordPress 2.2 release, which
     11 * included it in the core from that point on.
     12 *
     13 * @link https://codex.wordpress.org/Plugins/WordPress_Widgets WordPress Widgets
     14 * @link https://codex.wordpress.org/Plugins/WordPress_Widgets_Api Widgets API
    415 *
    516 * @package WordPress
    617 * @subpackage Widgets
    7  * @since 4.4.0
    8  */
     18 * @since 2.2.0
     19 */
     20
     21//
     22// Global Variables
     23//
     24
     25/** @ignore */
     26global $wp_registered_sidebars, $wp_registered_widgets, $wp_registered_widget_controls, $wp_registered_widget_updates;
     27
     28/**
     29 * Stores the sidebars, since many themes can have more than one.
     30 *
     31 * @global array $wp_registered_sidebars
     32 * @since 2.2.0
     33 */
     34$wp_registered_sidebars = array();
     35
     36/**
     37 * Stores the registered widgets.
     38 *
     39 * @global array $wp_registered_widgets
     40 * @since 2.2.0
     41 */
     42$wp_registered_widgets = array();
     43
     44/**
     45 * Stores the registered widget control (options).
     46 *
     47 * @global array $wp_registered_widget_controls
     48 * @since 2.2.0
     49 */
     50$wp_registered_widget_controls = array();
     51/**
     52 * @global array $wp_registered_widget_updates
     53 */
     54$wp_registered_widget_updates = array();
     55
     56/**
     57 * Private
     58 *
     59 * @global array $_wp_sidebars_widgets
     60 */
     61$_wp_sidebars_widgets = array();
     62
     63/**
     64 * Private
     65 *
     66 * @global array $_wp_deprecated_widgets_callbacks
     67 */
     68$GLOBALS['_wp_deprecated_widgets_callbacks'] = array(
     69    'wp_widget_pages',
     70    'wp_widget_pages_control',
     71    'wp_widget_calendar',
     72    'wp_widget_calendar_control',
     73    'wp_widget_archives',
     74    'wp_widget_archives_control',
     75    'wp_widget_links',
     76    'wp_widget_meta',
     77    'wp_widget_meta_control',
     78    'wp_widget_search',
     79    'wp_widget_recent_entries',
     80    'wp_widget_recent_entries_control',
     81    'wp_widget_tag_cloud',
     82    'wp_widget_tag_cloud_control',
     83    'wp_widget_categories',
     84    'wp_widget_categories_control',
     85    'wp_widget_text',
     86    'wp_widget_text_control',
     87    'wp_widget_rss',
     88    'wp_widget_rss_control',
     89    'wp_widget_recent_comments',
     90    'wp_widget_recent_comments_control'
     91);
    992
    1093//
  • trunk/src/wp-settings.php

    r35641 r35718  
    123123require( ABSPATH . WPINC . '/formatting.php' );
    124124require( ABSPATH . WPINC . '/capabilities.php' );
     125require( ABSPATH . WPINC . '/class-wp-roles.php' );
     126require( ABSPATH . WPINC . '/class-wp-role.php' );
     127require( ABSPATH . WPINC . '/class-wp-user.php' );
    125128require( ABSPATH . WPINC . '/query.php' );
    126129require( ABSPATH . WPINC . '/date.php' );
     
    129132require( ABSPATH . WPINC . '/template.php' );
    130133require( ABSPATH . WPINC . '/user.php' );
     134require( ABSPATH . WPINC . '/class-wp-user-query.php' );
    131135require( ABSPATH . WPINC . '/session.php' );
    132136require( ABSPATH . WPINC . '/meta.php' );
     137require( ABSPATH . WPINC . '/class-wp-meta-query.php' );
    133138require( ABSPATH . WPINC . '/general-template.php' );
    134139require( ABSPATH . WPINC . '/link-template.php' );
    135140require( ABSPATH . WPINC . '/author-template.php' );
    136141require( ABSPATH . WPINC . '/post.php' );
     142require( ABSPATH . WPINC . '/class-walker-page.php' );
     143require( ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
     144require( ABSPATH . WPINC . '/class-wp-post.php' );
    137145require( ABSPATH . WPINC . '/post-template.php' );
    138146require( ABSPATH . WPINC . '/revision.php' );
     
    140148require( ABSPATH . WPINC . '/post-thumbnail-template.php' );
    141149require( ABSPATH . WPINC . '/category.php' );
     150require( ABSPATH . WPINC . '/class-walker-category.php' );
     151require( ABSPATH . WPINC . '/class-walker-category-dropdown.php' );
    142152require( ABSPATH . WPINC . '/category-template.php' );
    143153require( ABSPATH . WPINC . '/comment.php' );
     154require( ABSPATH . WPINC . '/class-wp-comment.php' );
     155require( ABSPATH . WPINC . '/class-wp-comment-query.php' );
     156require( ABSPATH . WPINC . '/class-walker-comment.php' );
    144157require( ABSPATH . WPINC . '/comment-template.php' );
    145158require( ABSPATH . WPINC . '/rewrite.php' );
     159require( ABSPATH . WPINC . '/class-wp-rewrite.php' );
    146160require( ABSPATH . WPINC . '/feed.php' );
    147161require( ABSPATH . WPINC . '/bookmark.php' );
     
    152166require( ABSPATH . WPINC . '/script-loader.php' );
    153167require( ABSPATH . WPINC . '/taxonomy.php' );
     168require( ABSPATH . WPINC . '/class-wp-term.php' );
     169require( ABSPATH . WPINC . '/class-wp-tax-query.php' );
    154170require( ABSPATH . WPINC . '/update.php' );
    155171require( ABSPATH . WPINC . '/canonical.php' );
    156172require( ABSPATH . WPINC . '/shortcodes.php' );
     173require( ABSPATH . WPINC . '/embed.php' );
    157174require( ABSPATH . WPINC . '/class-wp-embed.php' );
    158 require( ABSPATH . WPINC . '/embed-functions.php' );
    159175require( ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
    160176require( ABSPATH . WPINC . '/media.php' );
    161177require( ABSPATH . WPINC . '/http.php' );
     178require( ABSPATH . WPINC . '/class-http.php' );
     179require( ABSPATH . WPINC . '/class-wp-http-streams.php' );
     180require( ABSPATH . WPINC . '/class-wp-http-curl.php' );
     181require( ABSPATH . WPINC . '/class-wp-http-proxy.php' );
     182require( ABSPATH . WPINC . '/class-wp-http-cookie.php' );
     183require( ABSPATH . WPINC . '/class-wp-http-encoding.php' );
     184require( ABSPATH . WPINC . '/class-wp-http-response.php' );
    162185require( ABSPATH . WPINC . '/widgets.php' );
     186require( ABSPATH . WPINC . '/class-wp-widget.php' );
     187require( ABSPATH . WPINC . '/class-wp-widget-factory.php' );
    163188require( ABSPATH . WPINC . '/nav-menu.php' );
    164189require( ABSPATH . WPINC . '/nav-menu-template.php' );
    165190require( ABSPATH . WPINC . '/admin-bar.php' );
    166191require( ABSPATH . WPINC . '/rest-api.php' );
     192require( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );
     193require( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );
     194require( ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );
    167195
    168196// Load multisite-specific files.
Note: See TracChangeset for help on using the changeset viewer.