Commit Graph

  • ac23d53402 * Avoid notices in tests/ajax/Autosave by bailing early when get_post() returns nothing. * Check for the existence of $_POST['catslist'] before using it in wp_ajax_autosave(). Scott Taylor 2013-09-13 21:21:16 +00:00
  • 1a621e7615 Inline documentation for hooks in wp-includes/author-template.php. Sergey Biryukov 2013-09-13 19:24:26 +00:00
  • 631d5edf3a Inline documentation for get_comment_reply_link() and 'comment_reply_link' filter. Sergey Biryukov 2013-09-13 19:19:45 +00:00
  • 9c1b30860c Upgrader: Allow plugins to short-circuit the package download. Props rmccue and DrewAPicture. Fixes #22378 Dion Hulse 2013-09-13 12:52:28 +00:00
  • 4da6ecff26 WP_HTTP: correct the SSL root certificates property, set svn:eol-style to native, and remove the svn:executable property. See #25007 Dion Hulse 2013-09-13 12:29:27 +00:00
  • a57529c720 Avoid a PHP warning in network admin if a constant corresponding to a drop-in is not defined. fixes #25301. Sergey Biryukov 2013-09-13 09:36:08 +00:00
  • f2c1db3663 Inline documentation for hooks in wp-admin/ms-delete-site.php. Sergey Biryukov 2013-09-13 09:10:18 +00:00
  • d60cbb399e Inline documentation for hooks in wp-includes/shortcodes.php. Sergey Biryukov 2013-09-13 09:01:20 +00:00
  • 5959a7011b WordPress Core Automatic Updates: Pass the Filesystem path as $context to request_filesystem_credentials(). See #22704 Dion Hulse 2013-09-13 06:52:11 +00:00
  • 63956aa479 WordPress Core Automatic Updates: Add the first slice of Automatic Upgrades, This is presently disabled, and requires a filter to enable ( 'auto_upgrade_core' ). See #22704 Dion Hulse 2013-09-13 06:18:16 +00:00
  • 96d12ddd9d Better alignment for wp_prepare_revisions_for_js() inline docs. see #25283. Sergey Biryukov 2013-09-12 23:14:55 +00:00
  • 529c973323 Inline documentation fixes and additions for wp-admin/revision.php and wp-admin/includes/revision.php. Sergey Biryukov 2013-09-12 22:58:45 +00:00
  • 9e8bcc8bcd Twenty Fourteen: let authors customize the green "accent" color by changing to a different hex value in the Customizer. Props celloexpressions. Lance Willett 2013-09-12 22:05:06 +00:00
  • 4585c81b37 Twenty Fourteen: prefix Genericons enqueue handle so that the theme uses the its own version of the font CSS. Fixes a few display issues when plugins like Jetpack enqueue a different version of Genericons. See #25085. Lance Willett 2013-09-12 21:44:49 +00:00
  • bb2908d613 Clear all transients (regardless of expiration) on all database upgrades. see #20316. Andrew Nacin 2013-09-12 21:13:18 +00:00
  • 9d9a28b3e0 Test framework: Update path to multisite.xml. Andrew Nacin 2013-09-12 21:04:16 +00:00
  • 8917f2b3bd Add populate_network_meta filter to populate_network(). Andrew Nacin 2013-09-12 20:48:20 +00:00
  • 3631b81545 Fix comma placement in [25179]. Andrew Nacin 2013-09-12 20:15:30 +00:00
  • 91d14be2e2 No space between // and duplicate_hook. see #25229 Helen Hou-Sandi 2013-09-12 18:56:32 +00:00
  • 67633ef09e Inline docs for hooks in wp-admin/options-writing.php. props siobhyb. see #25229. Helen Hou-Sandi 2013-09-12 18:52:38 +00:00
  • f72bc15544 Inline docs for hooks in wp-includes/nav-menu-template.php. props Faison. see #25229. Helen Hou-Sandi 2013-09-12 18:47:27 +00:00
  • 4c8f1e263a Use @expectedDeprecated. see #25282, [25408]. Andrew Nacin 2013-09-12 18:37:32 +00:00
  • d5d476974e Test framework: Introduce the annotation @expectedDeprecated, modeled after PHPUnit's @expectedException. Andrew Nacin 2013-09-12 18:37:00 +00:00
  • 9bfe9b7230 Revert [25405] and use a file that does exist. see #25282. Andrew Nacin 2013-09-12 17:47:40 +00:00
  • e89c725696 Twenty Fourteen: fix comment for twentyfourteen_excerpt_length(), props SergeyBiryukov. Fixes #25297. Lance Willett 2013-09-12 17:43:23 +00:00
  • 8a2c79d897 Fix the failing l10n assertions: Scott Taylor 2013-09-12 17:36:45 +00:00
  • 404fd85586 Fix the failing Tests_Link::test_wp_get_shortlink() assertion: Scott Taylor 2013-09-12 17:30:01 +00:00
  • 435c2b5686 Add file size to attachment publish meta box. props desrosj. fixes #25170. Helen Hou-Sandi 2013-09-12 15:09:35 +00:00
  • 654d07ebf9 There was way too much duplicated code in my notice cleanup, it built up over time, and there's definitely a need to standardize. Scott Taylor 2013-09-12 14:47:58 +00:00
  • 1851da1382 Return false from wp_get_original_referer() if it is called before wp_validate_redirect() is defined. Andrew Nacin 2013-09-12 13:35:35 +00:00
  • cc5477c7d9 Return false from wp_get_referer() if it is called before wp_validate_redirect() is defined. Andrew Nacin 2013-09-12 13:32:41 +00:00
  • 3ae18e68ff * Fill in undefined var in Tests_Option_BlogOption * Add defined() check for BLOGSUPLOADDIR * Suppress deprecated function notices for is_blog_user() and get_dashboard_blog() * Check existence of $user in wpmu_log_new_registrations() before arbitrarily making a database query Scott Taylor 2013-09-12 07:16:30 +00:00
  • cccac649d5 Fix wp_guess_url() to work in every scenario I could find, allows us to use it to determine the correct path to the WordPress Site URL before installation for install.php and setup-config.php redirects. Fixes #24480 Fixes #16884 Dion Hulse 2013-09-12 06:56:20 +00:00
  • 285db00ed4 Suppress Non-static method PO::*() should not be called statically, assuming $this from incompatible context by using the @ silencer in tests/pomo/po.php Scott Taylor 2013-09-12 06:46:35 +00:00
  • 13381bfcdc * sort() returns a boolean, not a sorted set. Move the calls out of the assertions and fix the test methods. * Fix instances where Only variables should be passed by reference was being triggered by assigning array_keys() return value to a var Scott Taylor 2013-09-12 06:41:36 +00:00
  • d58aace6f7 Avoid undefined variable notice - wp_insert_user() expects user_pass to be passed to it. Scott Taylor 2013-09-12 06:28:25 +00:00
  • d1d5bcf036 * Add isset() checks all over WP_User_Query::prepare_query() and WP_User_Query::query(). When a WP_User_Query instance is constructed without passing args, no query vars are filled in, thus $qv doesn't contain most of the expected indices. * Suppress an undefined index notice in tests/user/query.php Scott Taylor 2013-09-12 06:24:09 +00:00
  • c0c3359572 * Suppress deprecated function notice for set_current_user() * Add assertions for wp_set_current_user() Scott Taylor 2013-09-12 06:06:07 +00:00
  • b18d047edd * Avoid Only variables should be passed by reference notice by passing a var to array_pop() in tests/user.php * Suppress a notice by silencing the passing of a non-existent object prop Scott Taylor 2013-09-12 05:56:59 +00:00
  • 6acb4cf24d Don't assume $GLOBALS['post'] is set in tests/url.php. Scott Taylor 2013-09-12 05:52:53 +00:00
  • f4ac65db2d * Suppress deprecated function notices in tests/theme/themeDir.php * Set $theme['Template Files'] and $theme['Stylesheet Files'] to a variable before calling array methods upon them - avoids Indirect modification of overloaded element has no effect notice * Clean up setUp/tearDown in tests/theme.php Scott Taylor 2013-09-12 05:48:58 +00:00
  • ee35baae6b Suppress the _doing_it_wrong notices when calling add_theme_support( 'html5' ) in tests/theme/support.php Scott Taylor 2013-09-12 05:39:45 +00:00
  • c5c88eb85b Add sanity checks to get_*_template() functions to ensure that the return value of get_queried_object() is compatible with the assumed context. Scott Taylor 2013-09-12 05:31:14 +00:00
  • 66aa532da5 When the WordPress files are in a subdirectory, correctly redirect the user to the setup-config.php page from the parent directories index.php. Fixes #24480 Dion Hulse 2013-09-12 05:12:51 +00:00
  • f9877147f6 Use reset() to access the first element of an array, don't assume there is an item at index 0. Scott Taylor 2013-09-12 05:08:33 +00:00
  • 6ced366e7c Add a post_id fixture in test/meta/slashes.php so Undefined variable: comment_post_ID notices don't fire when creating comments. Scott Taylor 2013-09-12 04:59:29 +00:00
  • 9cb4234c3f * Fix the horrendous whitespace in tests/media.php * Suppress the deprecated function notice for wp_convert_bytes_to_hr() * Add assertions for size_format() Scott Taylor 2013-09-12 04:55:24 +00:00
  • 1e460fd6e2 Avoid a notice and clean up setting/unsetting of globals by moving them into setUp() and tearDown() methods in Tests_Mail. Scott Taylor 2013-09-12 04:46:49 +00:00
  • a76e6cef7d * Avoid notice by making WP_Image_Editor_Mock::test() compatible with WP_Image_Editor::test(). * Suppress deprecated function notice for wp_load_image(). * Add assertion for wp_get_image_editor(). Scott Taylor 2013-09-12 04:40:13 +00:00
  • dc35c8d11e Pass a variable that actually exists to seems_utf8() in tests/formatting/SeemsUtf8.php Scott Taylor 2013-09-12 04:28:34 +00:00
  • 7001aeaa11 Suppress the deprecated function notice in tests/formatting/CleanPre.php Scott Taylor 2013-09-12 04:20:48 +00:00
  • 691e3f25a0 Fix the PHP 5.4 Only variables should be passed by reference notices in tests/filters.php. Scott Taylor 2013-09-12 04:16:59 +00:00
  • 62b7214706 Avoid an undefined index error in tests/phpunit/tests/dependencies/styles.php Scott Taylor 2013-09-12 04:13:11 +00:00
  • 148d8e1e29 Suppress the doing_it_wrong notice from firing in tests/phpunit/tests/dependencies/jquery.php` when running in debug mode. Scott Taylor 2013-09-12 04:08:03 +00:00
  • 591a96743e Passing non-existent object properties to WP_UnitTestCase::assertNull() produces notices, opt instead for WP_UnitTestCase::assertTrue( empty( $obj->prop ) ) in tests/db.php. Scott Taylor 2013-09-12 04:01:34 +00:00
  • 85881c19dc Fix the PHP 5.4 Only variables should be passed by reference notices in tests/action.php. Scott Taylor 2013-09-12 03:53:56 +00:00
  • 1b012770eb Inline documentation for hooks in wp-admin/options.php. Sergey Biryukov 2013-09-12 03:43:48 +00:00
  • f1ef5c0e23 Indicate that the fall-through in is_serialized() is deliberate. fixes #24023. Helen Hou-Sandi 2013-09-12 03:40:25 +00:00
  • a56e83373d Consistently call skin methods in WP_Upgrader. fixes #25254. Sergey Biryukov 2013-09-12 02:42:10 +00:00
  • c05412b16c Fix invalid markup when searching for installed themes. fixes #25288. Sergey Biryukov 2013-09-12 00:03:01 +00:00
  • f97a98011b Pass $args as an array, rather than a splat, to wp_clear_scheduled_hook(). There are comments in the code describing the deprecated argument behavior. Scott Taylor 2013-09-11 22:21:43 +00:00
  • a3a7be77e3 Suppress deprecated notices for wp_shrink_dimensions(). Scott Taylor 2013-09-11 22:16:43 +00:00
  • 6de2f44495 get_home_url() assumes $GLOBALS['pagenow'] is set. It isn't in Tests_URL... and now it is. Scott Taylor 2013-09-11 22:06:21 +00:00
  • 38474ef5d1 Fix undefined index notices in comment/slashes test cases. wp_new_comment() and edit_comment() expect more variables than were being passed. Scott Taylor 2013-09-11 21:56:31 +00:00
  • eddb6d958b Add a $post_id fixture to Tests_Comment_Query. Comments created without passing comment_post_ID produce an undefined variable notice in wp_insert_comment(). Scott Taylor 2013-09-11 21:47:14 +00:00
  • 169ddb12ad Set $_SERVER['REQUEST_METHOD'] = null in Tests_Auth::setUp() to suppress undefined index notices when wp_validate_auth_cookie() is called. Scott Taylor 2013-09-11 21:37:46 +00:00
  • e7c543f997 Restore the test code for get_theme(), add the notice suppression filters, and fix the type in the remove_filter() call. Scott Taylor 2013-09-11 21:32:14 +00:00
  • 9f00115bd9 Avoid the following notice: Use of undefined constant term_id - assumed 'term_id', while running in debug mode. Scott Taylor 2013-09-11 18:45:34 +00:00
  • 961adfb51e Update the unit test methods in Tests_Admin_includesTheme. Use wp_get_theme() instead of get_theme(). Scott Taylor 2013-09-11 18:39:09 +00:00
  • fc372eb7b8 Add action/filter to Tests_Theme::setUp() to suppress errors while running back-compat tests on get_theme(), get_themes(), get_theme_data(), get_current_theme(). Scott Taylor 2013-09-11 18:30:06 +00:00
  • 135198d66d Use get_users() instead of the deprecated get_users_of_blog() in Tests_User_Capabilities::setUp() to avoid a tornado of warnings in debug mode. Scott Taylor 2013-09-11 17:55:12 +00:00
  • 9dc7afd478 Add set_current_screen( 'front' ) to query/conditionals tests setUp routine so that cruff from previous tests doesn't cause every conditional test to fail in debug mode. Scott Taylor 2013-09-11 17:40:46 +00:00
  • d091e1d0b7 Avoid a notice by casting $args['rewrite'] to array() before adding a slug property and running array_merge(). Scott Taylor 2013-09-11 17:17:00 +00:00
  • 23d3b372d7 Fix the action that set_site_transient() fires so as not to include the private option prefix. This brings set_site_transient() back in line with it's documented behaviour, and the behaviour of all other transient functions. Fixes #25213 Dion Hulse 2013-09-11 08:45:43 +00:00
  • ea6da7d5dc Make use of the mbstring.func_overload helper functions in WP_Filesystem so byte lengths are properly determined. See #25259 Fixes #25237 Dion Hulse 2013-09-11 08:26:57 +00:00
  • 7ebad3db1c Switch WP_HTTP over to using the mbstring.func_overload helper functions. This change moves the check from within the Streaming-handling function to wrap the individual request, this fixes it for both cURL and Streams and any future changes to the transports which use strlen() on binary data. See #25259 See #16057 Dion Hulse 2013-09-11 08:12:24 +00:00
  • 47c25b41af Switch unzip_file() over to using the mbstring.func_override helper functions. See #25259 Dion Hulse 2013-09-11 08:08:35 +00:00
  • 052d276215 Add a set of helpers to turn the behaviour of mbstring.func_overload off when needed. Fixes #25259 Dion Hulse 2013-09-11 07:22:05 +00:00
  • a1470e6161 Avoid error in ms-files.php after [25317]. Andrew Nacin 2013-09-11 04:48:43 +00:00
  • adf6fab55b Bump version in trunk. Andrew Nacin 2013-09-11 04:19:36 +00:00
  • 1848709736 SimplePie: Fix use of DOMElement as array. Andrew Nacin 2013-09-11 04:01:44 +00:00
  • 760e9e02d1 Avoid string offset notices in [25319]. Andrew Nacin 2013-09-11 03:57:00 +00:00
  • 3b314a0adf Improve clarity and speed of [25320]. Andrew Nacin 2013-09-11 03:22:09 +00:00
  • cedb15724a Bump TinyMCE version for [25132]. See #25131. Andrew Nacin 2013-09-11 02:43:12 +00:00
  • 3ee8135baa Don't call sanitize_title_with_dashes( $taxonomy ) in register_taxonomy() unless $args['rewrite']['slug'] is empty. Scott Taylor 2013-09-11 00:08:04 +00:00
  • 0c0c81d81c Add term_taxonomy_id to available fields in get_term_by(). Adds unit test. Scott Taylor 2013-09-11 00:01:19 +00:00
  • a963ab0852 Remove dead code in add_query_arg(). Scott Taylor 2013-09-10 23:37:23 +00:00
  • 1a46a76c18 Use wp_get_nav_menus() instead of get_terms('nav_menu') in WP_Nav_Menu_Widget to preserve use of `wp_get_nav_menus' filter. Scott Taylor 2013-09-10 23:29:04 +00:00
  • d738f5e586 Support orderby => meta_value in WP_User_Query. Adds unit test. Scott Taylor 2013-09-10 23:09:10 +00:00
  • 270cc9702d Check $profileuser->rich_editing for empty before using it in Edit User admin code. Scott Taylor 2013-09-10 22:48:27 +00:00
  • c71a0422c0 Add an additional available param (the WP_User instance) to the user_has_cap filter. Scott Taylor 2013-09-10 22:22:34 +00:00
  • 4fccea305f Add filter flush_rewrite_rules_hard to give devs chance to prevent writing to file when hard-flushing rewrite rules. Scott Taylor 2013-09-10 22:18:21 +00:00
  • a98660d517 Introduce get_previous_post_link(), get_next_post_link(), and get_adjacent_post_link(). Allows developers to retrieve the value without echoing. Scott Taylor 2013-09-10 22:11:53 +00:00
  • 9d7689c4ba Loose validation for is_serialized() in maybe_serialize(). Andrew Nacin 2013-09-10 18:09:36 +00:00
  • 0281fc61da Better protocol validation in set_url_scheme(). Andrew Nacin 2013-09-10 18:07:19 +00:00
  • ac3361e997 Validate referrers to prevent off-domain redirects. Andrew Nacin 2013-09-10 18:06:43 +00:00
  • 31482a7968 Tighten allowed upload file types. Andrew Nacin 2013-09-10 18:03:26 +00:00
  • 2c0b23557a Ignore user ID post data. Andrew Nacin 2013-09-10 17:57:14 +00:00
  • d141191598 Consistently wrap author and excerpt nodes with CDATA in feeds. Scott Taylor 2013-09-10 16:54:16 +00:00
  • 37e5277651 Show the IP address, if available, in the comment edit screen submit meta box. props leewillis77. fixes #24638. Helen Hou-Sandi 2013-09-10 14:40:15 +00:00