Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Oct 1, 2012
  1. Introduce WP_Image_Editor, WP_Image_Editor_Imagick, and WP_Image_Edit…

    Ryan Boren authored
    …or_GD. Abstracts image editing API and adds support for ImageMagick.
    
    Props DH-Shredder, kurtpayne, markoheijnen
    see #6821
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@22094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Sep 25, 2012
  1. @nacin

    Move WP_Embed into its own file. props ocean90. fixes #20533.

    nacin authored
    git-svn-id: http://core.svn.wordpress.org/trunk@21999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Aug 17, 2012
  1. @nacin

    We no longer need to check function_exists() for date_default_timezon…

    nacin authored
    …e_set(). props Gary-J, j-idris. fixes #20501.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Aug 9, 2012
  1. switch_to_blog() and restore_current_blog() housekeeping.

    ryan authored
    wp-includes/admin-bar.php:
    
    * Replace get_admin_url() and get_home_url() with admin_url() and home_url() and place them inside a switch/restore. Likewise replace current_user_can_for_blog() with current_user_can(). This avoids doing multiple switch restores.
    
    wp-includes/ms-blogs.php:
    
    * Deprecate the $validate argument to switch_to_blog(). This avoids a not very necessary call to get_blog_details(), possibly saving a few queries.
    * Use $_wp_switched and $_wp_switched_stack instead of $switched and $switched_stack to make it less likely these globals will be stomped.
    * Use GLOBALS to access blog_id and other globals. I've preferred this style lately since it makes it obvious a global is being used and avoids global blog_id being stomped by a local variable.
    * Lose some is_object() checks. wp_get_current_user() always returns an object, for example.
    * Call the new WP_Roles::reinit() method.
    
    wp-includes/class-wp-xmlrpc-server.php:
    
    * Replace current_user_can_for_blog() with current_user_can() and move it inside the switch/restore pair. This eliminates a switch/restore.
    
    wp-includes/capabilities.php:
    
    * Use array_keys() instead of $role => $data since $data is unused. I *think* this is a bit faster.
    * Introduce WP_Roles::reinit(). This reinitializes WP_Roles and is used after switch_to_blog() has already update the blog ID in the wpdb object. If a global roles array is being used instead of the db, reinit is skipped.
    * current_user_can_for_blog() now does a switch/restore. It didn't before meaning it could be reinitializing the user with the wrong role information for the current blog.
    
    wp-includes/ms-settings.php:
    
    * Define $_wp_switched_stack and $_wp_switched. This way switch_to_blog() and restore_current_blog() can rely on it being set.
    
    wp-settings.php:
    
    * Instantiate the WP_Roles global. This was it is always defined during init. To remove the WP_Roles checks from WP_Role and WP_User this would probably have to move before plugins are loaded, which might not be a good thing.
    
    wp-includes/functions.php:
    
    * Update wp_upload_dir() to reference _wp_switched.
    
    
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Jun 29, 2012
  1. Remove old code unsetting a few variables in wp-settings.php. fixes #…

    nacin authored
    …21115.
    
    git-svn-id: http://core.svn.wordpress.org/trunk@21186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Apr 27, 2012
  1. Deprecate require_if_theme_supports(). Always require post-thumbnail-…

    nacin authored
    …template.php. fixes #20556. fixes #20409.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@20610 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Feb 28, 2012
  1. Introduce WP_Theme, wp_get_themes(), and wp_get_theme() to replace ge…

    nacin authored
    …t_themes(), get_theme(), get_theme_data(), current_theme_info(), and others.
    
     * Getters and Helpers: Introduces a series of methods to allow for easy generation of headers for display, and other theme metadata, including page templates.
     * Screenshots: Handles support for multiple screenshots. (see # Additional screenshots must be PNG and start with screenshot-2.png, and be sequential to be counted. see #19816.
     * Error Handling: Broken themes have a WP_Error object attached to them.
     * Caching: Introduces a wp_cache_themes_persistently filter (also in [20020]) to enable persistent caching of all filesystem and sanitization operations normally handled by WP_Theme (and formerly get_file_data() and get_themes()). Themes are cached individually and across five different cache keys for different data pieces.
     * Compatibility: A WP_Theme object is backwards compatible with a theme's array formerly returned by get_themes() and get_theme(), and an stdClass object formerly returned by current_theme_info().
     * i18n/L10n: Theme headers are now localizable with proper Text Domain and Domain Path headers, like plugins. (Language packs may remove the requirement for headers.) For page templates, see #6007 (not fixed yet, but will be easy now). For headers, fixes #15858.
     * PHP and CSS files: New methods that fetch a list of theme files (for the theme editor) only on demand, rather than only loading them into memory. fixes #11214.
    
    Functions deprecated:
     * get_themes(), get_allowed_themes() and get_broken_themes() -- use wp_get_themes()
     * get_theme() and current_theme_info() -- use wp_get_theme()
     * get_site_allowed_themes() -- use WP_Theme::get_allowed_on_network()
     * wpmu_get_blog_allowedthemes() -- use WP_theme::get_allowed_on_site()
    
    see also [20016], [20018], [20019], [20020], [20021], [20022], [20025], [20026], [20027]. also fixes #19244.
    
    see #20103.
    
    
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@20029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  2. Move the template loading functions from wp-includes/theme.php to wp-…

    nacin authored
    …includes/template.php. This includes get_query_template(), locate_template(), and friends. see #20103.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@20002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Feb 4, 2012
  1. WP_LANG_DIR is trusted, just need to check $locale. props SergeyBiryu…

    nacin authored
    …kov, fixes #19924.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@19824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Jan 31, 2012
  1. Only set text_direction based on a locale being RTL if we successfull…

    nacin authored
    …y loaded a locale.mo file. Otherwise we may be in RTL land based on a WPLANG constant but nothing else. fixes #19924.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@19797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Jan 26, 2012
  1. Introduce wp_load_translations_early(), which can be used before the …

    nacin authored
    …locale is properly loaded in order to translate early error strings. Internationalize setup-config.php -- translators no longer have a reason to modify this file. fixes #18180.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@19760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  2. It's L10n (or i18n). Not too sure what l18n stands for. (Typo from [1…

    nacin authored
    …2762].)
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@19758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Jan 8, 2012
  1. Lose EOF ?>. Clean up EOF newlines. fixes #12307

    ryan authored
    git-svn-id: http://svn.automattic.com/wordpress/trunk@19712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Jan 5, 2012
  1. One newline is enough.

    ryan authored
    git-svn-id: http://svn.automattic.com/wordpress/trunk@19684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Dec 20, 2011
  1. Globalize wp_rewrite in wp-settings. props mrtorrent, fixes #17749.

    nacin authored
    git-svn-id: http://svn.automattic.com/wordpress/trunk@19603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Oct 18, 2011
  1. Explicitly globalize $table_prefix in wp-settings.php in case WordPre…

    nacin authored
    …ss isn't loaded in global scope. Use $_SERVER['PHP_SELF'], not $PHP_SELF. We need to keep $PHP_SELF for backwards compatibility reasons (many, many plugins rely on it). props mrtorrent, fixes #17749.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@18993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Sep 22, 2011
  1. Explicitly globalize wp_locale for the UT framework. props scribu, fi…

    nacin authored
    …xes #17749.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@18756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Aug 15, 2011
  1. Use ini_set instead of set_magic_quotes_runtime() to prevent silenced…

    nacin authored
    … E_DEPRECATED notice. props wonderboymusic.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@18549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Aug 11, 2011
  1. Explicitly globalize some variables, so that unit tests can run WordP…

    nbachiyski authored
    …ress inside a function. Fixes #17749
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@18532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Jul 21, 2011
  1. Call register_shutdown_function() for SHORTINIT. Props jtclarke. fixe…

    ryan authored
    …s #16389
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@18450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Jun 29, 2011
  1. Mark a few files as needing to be parsable by PHP4 in order to show t…

    nacin authored
    …he proper error messages. Non-exhaustive. see #17934.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@18375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  2. wp_check_php_mysql_versions() during setup and install. see #17934.

    nacin authored
    git-svn-id: http://svn.automattic.com/wordpress/trunk@18374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Jun 27, 2011
  1. Hardening. Santizers for WPLANG and new_admin_email. Prevent stomping…

    ryan authored
    … ID and filter. Validate locale filename. Props westi.
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@18346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Jun 11, 2011
  1. Load the theme's functions.php for wp-activate.php. Props nacin, frum…

    ryan authored
    …ph. fixes #17761
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@18263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Apr 28, 2011
  1. Introduce WP_MAX_MEMORY_LIMIT constant for the high memory limit we s…

    westi authored
    …et when image processing and unzipping.
    
    Ensure it is always filterable by plugins as well as configurable in wp-config
    Fixes #13847 props hakre
    
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@17749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Apr 27, 2011
  1. Don't load themes functions.php for upgrades. Props greuben. fixes #1…

    ryan authored
    …6722
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@17727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Apr 7, 2011
  1. Restore compat.php includes. see #16918

    markjaquith authored
    git-svn-id: http://svn.automattic.com/wordpress/trunk@17622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Apr 5, 2011
  1. Take out unnecessary compat functions from compat.php. Props hakre, p…

    ryan authored
    …tahdunbar. see #16918
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@17603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Mar 30, 2011
  1. Assigning the return value of new by reference is deprecated. Props h…

    ryan authored
    …akre. see #16767
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@17573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Mar 21, 2011
  1. I before E, except after C. props jkudish, fixes #16915.

    nacin authored
    git-svn-id: http://svn.automattic.com/wordpress/trunk@17524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Nov 24, 2010
  1. Load network plugins for wp-activate.php. Restore MU load order. Prop…

    ryan authored
    …s blamenacin. fixes #14718
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@16558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Nov 22, 2010
  1. Fix 'timeinfo' cache invalidation. Fixes #14922

    scribu authored
    git-svn-id: http://svn.automattic.com/wordpress/trunk@16537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Nov 17, 2010
  1. Register the default theme dir in wp-settings.php so that it is regis…

    ryan authored
    …tered even when get_themes() doesn't run. Fix counting of theme dirs. Add option to get_raw_theme_root() to disregard the current theme root cache. see #14911
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@16424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Nov 13, 2010
  1. Kill WP_Object_Query. See #15032

    scribu authored
    git-svn-id: http://svn.automattic.com/wordpress/trunk@16353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Commits on Nov 1, 2010
  1. Rename class.wp-object-query.php to class-wp-object-query.php. See #1…

    scribu authored
    …5032
    
    git-svn-id: http://svn.automattic.com/wordpress/trunk@16142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Something went wrong with that request. Please try again.