| [6827]
|
johnjamesjacoby
|
Counts: Introduce a cacheable parent/type/status wrapper, filter helpers.
This change introduces a common query function for totalling up all counts by type & status, and caching the results for later usages. By doing this, we can avoid running multiple queries for the same public or non-public counts.
Also uses `bbp_number_not_negative()` in a few places where negative counts are never allowed.
|
| [6610]
|
SergeyBiryukov
|
Counts: Fix typo in DB query in `bbp_get_user_reply_count_raw()`.
See #3124.
|
| [6923]
|
johnjamesjacoby
|
Counts (meta-data): full audit of forum/topic/reply, public/non-public counts.
This commit is the result of a full count audit, exposing multiple inconsistencies and voids in relation to how public and non-public counts are (re)calculated.
For instance, hidden forum replies are not counted at all, until now. By introducing a new Repair tool, hidden forum reply counts are now counted.
In addition, there were multiple bugs with topic & reply moderation, where the act of approving or unapproving topics or replies would cause the numbers to be inaccurate, or where topics & replies being caught in moderation were still increasing public counts.
It was also possible to, as a Key Master, publicly reply to unapproved topics, which was a completely unanticipated side-effect of allowing Key Masters to do pretty much anything. Going forward, the default reply status is the topic status, but is still beholden to all existing moderation settings and user role capabilities. This results in a more sane user experience, and prevents the unusual circumstance of there being "0 topics and 30 replies" in public-facing forums.
Certain count increase/decrease actions have been reprioritized to avoid collisions and race conditions, proving once again that ya gotta get up to get down.
See #2838. Fixes #1799.
|
| [3844]
|
johnjamesjacoby
|
Correctly show sticky topics when viewing a topic archive or using a topic archive shortcode.
|
| [5404]
|
johnjamesjacoby
|
Correctly compare source & destination topic `post_date` values in `bbp_merge_topic_handler()`. Fixes issue where incorrect post would be updated when merging older topics into newer ones.
Also update the reply position for all newly relocated replies. Hat-tip netweb. Fixes #2528.
|
| [2803]
|
johnjamesjacoby
|
Correctly check for WP_Error and correctly load anonymous user cookie data/avatar. Fixes #1452. Props !GautamGupta
|
| [6319]
|
johnjamesjacoby
|
Correct typos in User Template phpdoc blocks.
|
| [4936]
|
johnjamesjacoby
|
Correct typo that snuck in after testing. See #1500.
|
| [4903]
|
johnjamesjacoby
|
Correct the error ID's used when posting a new topic if the forum is closed, private, or hidden, and the user does not have proper capabilities. (trunk)
|
| [4904]
|
johnjamesjacoby
|
Correct the error ID's used when posting a new topic if the forum is closed, private, or hidden, and the user does not have proper capabilities. (2.3 branch)
|
| [4907]
|
johnjamesjacoby
|
Correct the error ID's used when posting a new reply if the forum is closed, private, or hidden, and the user does not have proper capabilities. (2.3 branch)
|
| [5474]
|
johnjamesjacoby
|
Correct inline doc in `bbp_forum_get_subforums()`.
|
| [2475]
|
chrishajer
|
Correct function name and add information to cookies for anonymous posting. Fixes #1311. Props !GautamGupta
|
| [4794]
|
johnjamesjacoby
|
Correct file description in content-statistics.php. Props alexvorn2. Fixes #2247.
|
| [3616]
|
johnjamesjacoby
|
Correct core languages path in bbp-languages/index.php
|
| [4801]
|
johnjamesjacoby
|
Correct closing HTML tag helper doc in content-single-topic-lead.php Props netweb. Fixes #2252.
|
| [2797]
|
johnjamesjacoby
|
Correct cap on Add User admin menu, and add cap check to submenus. Fixes #1368
|
| [5410]
|
johnjamesjacoby
|
Correct `bbp_stuck_topic` phpdoc. See #2494.
|
| [2554]
|
johnjamesjacoby
|
Correct @since's
|
| [2738]
|
johnjamesjacoby
|
Correct @since docs
|
| [4802]
|
johnjamesjacoby
|
Correct /users/template-tags.php inline doc typo. Props netweb. Fixes #2251.
|
| [7281]
|
johnjamesjacoby
|
Core: small updates to bbPress()->data
This change tweaks the code commentary a bit, and adds a default value of an empty array.
This is largely for the sake of code cleanliness, but also removes the potential for debug notices or errors inside of the magic methods from `data` not being initialized as an array when they are first called.
|
| [7282]
|
johnjamesjacoby
|
Core: remove reference to bbPress::setup_globals()
This method was removed long ago, and replaced by the `bbp_setup_globals` sub-action.
|
| [6039]
|
johnjamesjacoby
|
Core: pass the original text into `bbp_make_clickable` filter.
|
| [6183]
|
johnjamesjacoby
|
Core: Upgrade routine for favorites & subscriptions in 2.6.0.
* Use the new upgrade tools
* Bump the DB version to `260`
* Improve inline docs in upgrade tool functions
See #2959.
|
| [5944]
|
netweb
|
Core: Support for `WP_Hook` in `bbp_get_template_stack()`
The proposed `WP_Hook` #WP17817 breaks backward compatibility for plugins that
attempt to manipulate `$wp_filter` in certain ways. For bbPress, it means
that we cannot directly modify the callbacks that are currently registered as
an array at `$wp_filter[ $tag ]`, in `bbp_get_template_stack()`. Instead, when
`WP_Hook` is not available, we assign the callbacks to a variable (leveraging
`WP_Hook`'s `ArrayAccess`) and manipulate the variable.
Props jbrinley. Fixes #2871
|
| [7644]
|
johnjamesjacoby
|
Core: Run automatic upgrades on admin screens.
Run pending database upgrades when a forum Keymaster or site administrator opens a site or network administration screen. Move the site-admin checks for forum, topic, and reply setup into their callbacks so bbPress screen hooks remain unconditional.
In trunk, for 2.7.
|
| [7645]
|
johnjamesjacoby
|
Core: Run automatic upgrades on admin screens.
Run pending database upgrades when a forum Keymaster or site administrator opens a site or network administration screen. Move the site-admin checks for forum, topic, and reply setup into their callbacks so bbPress screen hooks remain unconditional.
In branches/2.6, for 2.6.19.
|
| [6058]
|
johnjamesjacoby
|
Core: Revert accidental removal of r6054 from r6056.
|
| [5735]
|
johnjamesjacoby
|
Core: Return the filtered results of ID's in core `_update_` functions.
This helps with various type-casting improvements going into #2801.
|
| [5945]
|
netweb
|
Core: Restore empty `$wp_filter[ $tag ]` check and update PHPDoc in `bbp_get_template_stack()`
See #2871
|
| [7872]
|
johnjamesjacoby
|
Core: Reject unknown view queries.
Return false when a view is neither registered nor supplied with filtered query arguments. This prevents unknown view IDs from falling back to the default unrestricted topic query while preserving registered and filter-provided virtual views.
In trunk, for 2.7.
Fixes #3718.
|
| [7873]
|
johnjamesjacoby
|
Core: Reject unknown view queries.
Return false when a view is neither registered nor supplied with filtered query arguments. This prevents unknown view IDs from falling back to the default unrestricted topic query while preserving registered and filter-provided virtual views.
In branches/2.6, for 2.6.20.
Fixes #3718.
|
| [6531]
|
johnjamesjacoby
|
Core: Register, then enqueue, both scripts and styles.
This commit makes sure that theme compatibility styles & scripts are properly registered & enqueued.
Props r-a-y. Fixes #3115.
|
| [7626]
|
johnjamesjacoby
|
Core: Protect bbPress-maintained metadata.
Prevent API callers from editing bbPress-maintained counts and user activity metadata. Public REST reads and bbPress's internal metadata updates continue to work.
In trunk, for 2.7.
|
| [7627]
|
johnjamesjacoby
|
Core: Protect bbPress-maintained metadata.
Prevent API callers from editing bbPress-maintained counts and user activity metadata. Public REST reads and bbPress's internal metadata updates continue to work.
In 2.6, for 2.6.19.
|
| [7866]
|
johnjamesjacoby
|
Core: Improve template function coverage.
Add comprehensive coverage for template loading, asset resolution, query-state parsing, and helper contracts. Correct empty template resolution state and restore public parameter names that PHP 8 named arguments expose as part of the API.
In trunk, for 2.7.
See #3706.
See #3716.
See #3717.
|
| [7874]
|
johnjamesjacoby
|
Core: Guard request method helpers.
Return false when the server request method is unavailable so CLI, cron, and other non-HTTP contexts do not emit warnings.
In trunk, for 2.7.
Fixes #3719.
|
| [7875]
|
johnjamesjacoby
|
Core: Guard request method helpers.
Return false when the server request method is unavailable so CLI, cron, and other non-HTTP contexts do not emit warnings.
In branches/2.6, for 2.6.20.
Fixes #3719.
|
| [6353]
|
johnjamesjacoby
|
Core: General core function clean-up.
Mostly odds & ends, formatting, type-casting, etc...
|
| [5733]
|
johnjamesjacoby
|
Core: Force-clear post caches on several common moderation actions.
Fixes inconsistencies around cached objects related to counts, which are currently stored in metadata.
Props thebrandonallen, netweb. See #2801.
|
| [7867]
|
johnjamesjacoby
|
Core: Correct template and converter compatibility.
Initialize empty template resolution state, balance the current filter stack on early return, and restore the Vanilla converter's established parent parameter name for PHP 8 named arguments. Remove the converter's redundant constructor and document the preserved template buffer parameter while satisfying current coding standards.
In branches/2.6, for 2.6.20.
Fixes #3716.
Fixes #3717.
|
| [5736]
|
johnjamesjacoby
|
Core: Correct phpdoc to `_update_` functions. Also introduce `bbp_update_reply_to_id()` to help with saving of hierarchical reply metadata. (Will be used in a future commit.)
|
| [7653]
|
johnjamesjacoby
|
Core: Correct @since provenance.
Correct first-shipped versions and Subversion revisions for core annotations verified against source history and release tags.
In trunk, for 2.7.
|
| [7662]
|
johnjamesjacoby
|
Core: Correct @since provenance.
Backport the verified first-shipped version and Subversion revision corrections for core annotations.
In branches/2.6, for 2.6.19.
|
| [6329]
|
johnjamesjacoby
|
Core: Allow custom post authors for initial content (forum/topic/reply).
|
| [7831]
|
johnjamesjacoby
|
Core: Add the public threaded-replies filter.
Preserve the legacy underscored filter, then pass its result through `bbp_allow_threaded_replies` so extensions can use the public option API consistently. Add regression coverage for both hooks and their order.
In branches/2.6, for 2.6.20.
Fixes #3707.
|
| [7830]
|
johnjamesjacoby
|
Core: Add the public threaded-replies filter.
Preserve the legacy underscored filter, then pass its result through `bbp_allow_threaded_replies` so extensions can use the public option API consistently. Add comprehensive coverage for core option defaults, lifecycle hooks, preloading strategies, feature flags, numeric settings, integration modes, and slugs.
In trunk, for 2.7.
See #3706.
See #3707.
|
| [6672]
|
johnjamesjacoby
|
Core: Add `source` parameter to API registrations.
This change makes it easier to target bbPress-specific post types & statuses, and taxonomies. `source` may not be the final key, but thankfully all of these APIs accept additional keys, and if support is added to core eventually, we can easily migrate over to it without problems.
Trunk, for 2.6. See: https://core.trac.wordpress.org/ticket/41739
|
| [3899]
|
johnjamesjacoby
|
Core:
* Add new bbp-core-functions.php file to bbp-includes.
* Move functions out of bbp-common-functions.php and into bbp-core-functions.php and bbp-topic-template.php.
* Paves way for bbPress function map API.
|
| [4209]
|
johnjamesjacoby
|
Core Functions:
* Simplify logic in bbp_has_errors().
|
| [7424]
|
johnjamesjacoby
|
Core - Theme Compat: distinguish Block Themes from classic themes with theme.json.\n\nWordPress enables block-template support for classic themes that include theme.json. Use wp_is_block_theme() so those themes continue loading their PHP bbPress template, while true Block Themes use the WordPress canvas.\n\nAdd regression coverage for classic, hybrid, Block, and child themes, and reconcile the feature annotations with its planned first release. This mirrors the BuddyPress correction for the same regression.\n\nIn trunk, for 2.7.\n\nProps obenland.\nSee #3487.\nSee #3675.\nSee https://buddypress.trac.wordpress.org/ticket/8757.
|
| [7425]
|
johnjamesjacoby
|
Core - Theme Compat: backport corrected Block Theme support.\n\nUse the WordPress template canvas only for true Block Themes. Classic PHP themes that include theme.json continue loading their bbPress template.\n\nAdd the filterable canvas-template helper and regression coverage for classic, hybrid, Block, and child themes. This mirrors the BuddyPress correction for the same regression.\n\nIn branches/2.6, for 2.6.16.\n\nProps obenland.\nSee #3487.\nFixes #3675.\nSee https://buddypress.trac.wordpress.org/ticket/8757.
|
| [7394]
|
johnjamesjacoby
|
Core - Theme Compat: add Block Theme support.
This commit includes the following changes:
* Deprecates `bbp_get_theme_compat_templates()` for a singular version
* Introduces `bbp_get_theme_canvas_template()` to retrieve a filtered path to `theme-canvas.php`
* Introduces `bbp_get_template_include_templates()` to retrieve a filtered array of checker & getter functions
* Simplifies `bbp_template_include_theme_supports()` into a foreach loop
* Simplifies `bbp_is_template_included()` usage inside of `bbp_template_include_theme_compat()` by removing the later check now that `404`'s are handled elsewhere
Props mikachan, robin-w, arafatjamil01, johnjamesjacoby.
Fixes #3487.
In trunk, for 2.7.
|
| [7348]
|
johnjamesjacoby
|
Core - Canonical: Convert `bbp_redirect_canonical()` into a sub-action.
This change abstracts the existing internal canonical redirect logic into new dedicated functions so that they can be individually improved or customized in the future.
Pagination and Editing theme-side require intercepting and preventing the core redirection when requesting certain URLs, and there are likely to be new conditions in the future.
In trunk, for 2.7.
Fixes #3648.
|
| [2470]
|
johnjamesjacoby
|
Copy paste owns me.
|
| [4201]
|
johnjamesjacoby
|
Copy /branches/plugin/ to /trunk/
|
| [6476]
|
johnjamesjacoby
|
Converters: Port r5332 to 2.5 branch.
See #2558, #3112.
|
| [7015]
|
johnjamesjacoby
|
Converters: PHP7.4 code compatibility.
This commit uses the correct array syntax in the Invision converter, to avoid fatal erroring in PHP7.4+.
Props jrf. Fixes #3299. For 2.7, trunk.
|
| [7014]
|
johnjamesjacoby
|
Converters: PHP7.4 code compatibility.
This commit uses the correct array syntax in the Invision converter, to avoid fatal erroring in PHP7.4+.
Props jrf. Fixes #3299. For 2.6.3, branches/2.6.
|
| [6449]
|
johnjamesjacoby
|
Converters: Fix formatting on several converter methods.
|
| [7541]
|
johnjamesjacoby
|
Converters: Fix PunBB password upgrades.
Verify current salted SHA-1 and legacy unsalted SHA-1 and MD5 passwords using PunBB's native formats. Preserve printable salt characters through WordPress metadata writes, import the converter class metadata, and add first-login upgrade coverage.
In trunk, for 2.7.
See #3684.
|
| [7540]
|
johnjamesjacoby
|
Converters: Fix PunBB password upgrades.
Verify current salted SHA-1 and legacy unsalted SHA-1 and MD5 passwords using PunBB's native formats. Preserve printable salt characters through WordPress metadata writes, import the converter class metadata, and add first-login upgrade coverage.
In branches/2.6, for 2.6.18.
See #3684.
|
| [7543]
|
johnjamesjacoby
|
Converters: Fix Phorum password upgrades.
Verify Phorum 5.2 passwords using their native unsalted MD5 format, remove nonexistent salt handling, and import the converter class metadata so first-login migration can run. Add coverage for metadata, verification, malformed input, and the complete WordPress password upgrade path.
In trunk, for 2.7.
See #3684.
|
| [7542]
|
johnjamesjacoby
|
Converters: Fix Phorum password upgrades.
Verify Phorum 5.2 passwords using their native unsalted MD5 format, remove nonexistent salt handling, and import the converter class metadata so first-login migration can run. Add coverage for metadata, verification, malformed input, and the complete WordPress password upgrade path.
In branches/2.6, for 2.6.18.
See #3684.
|
| [6293]
|
netweb
|
Converters: Fix PHPDoc indentation in `Invision.php`
|
| [7537]
|
johnjamesjacoby
|
Converters: Fix MyBB password upgrades.
Correct MyBB 1.6 salted MD5 verification and ensure the converter class metadata is imported so first-login password migration can run. Add coverage for password metadata, verification, malformed data, and the complete WordPress password upgrade path.
In trunk, for 2.7.
See #3684.
|
| [7536]
|
johnjamesjacoby
|
Converters: Fix MyBB password upgrades.
Correct MyBB 1.6 salted MD5 verification and ensure the converter class metadata is imported so first-login password migration can run. Add coverage for password metadata, verification, malformed data, and the complete WordPress password upgrade path.
In branches/2.6, for 2.6.18.
See #3684.
|
| [7539]
|
johnjamesjacoby
|
Converters: Fix FluxBB password upgrades.
Verify FluxBB 1.2 MD5, 1.3 salted SHA-1, and newer SHA-1 passwords using their native formats. Detect the optional legacy salt column without breaking current schemas, import the converter class metadata, and add first-login upgrade coverage.
In trunk, for 2.7.
See #3684.
|
| [7538]
|
johnjamesjacoby
|
Converters: Fix FluxBB password upgrades.
Verify FluxBB 1.2 MD5, 1.3 salted SHA-1, and newer SHA-1 passwords using their native formats. Detect the optional legacy salt column without breaking current schemas, import the converter class metadata, and add first-login upgrade coverage.
In branches/2.6, for 2.6.18.
See #3684.
|
| [7545]
|
johnjamesjacoby
|
Converters: Delay source database connections until import.
First-login password upgrades use the legacy hash and salt already stored in WordPress user metadata, but converter construction also required the source database to remain available. Connect to the source database only when table conversion begins so imported users can upgrade their passwords after the source database has been retired.
This preserves converter construction and extension points, retains the existing import connection error, and adds coverage for successful and unsuccessful first-login attempts without a source database connection.
In trunk, for 2.7.
See #3684.
|
| [7544]
|
johnjamesjacoby
|
Converters: Delay source database connections until import.
First-login password upgrades use the legacy hash and salt already stored in WordPress user metadata, but converter construction also required the source database to remain available. Connect to the source database only when table conversion begins so imported users can upgrade their passwords after the source database has been retired.
This preserves converter construction and extension points, retains the existing import connection error, and adds coverage for successful and unsuccessful first-login attempts without a source database connection.
In branches/2.6, for 2.6.18.
See #3684.
|
| [7587]
|
johnjamesjacoby
|
Converters: Correct PHPWind 9 password imports.
Use PHPWind 9's WindID user tables for account data, preserve its login hash and salt as converter metadata, and verify the WindID password formula on first login.
This change applies to new and repeated imports and does not attempt to recover incomplete password data from earlier imports.
In trunk, for 2.7.
See #3684.
|
| [7586]
|
johnjamesjacoby
|
Converters: Correct PHPWind 9 password imports.
Use PHPWind 9's WindID user tables for account data, preserve its login hash and salt as converter metadata, and verify the WindID password formula on first login.
This change applies to new and repeated imports and does not attempt to recover incomplete password data from earlier imports.
In branches/2.6, for 2.6.18.
See #3684.
|
| [4102]
|
johnjamesjacoby
|
Converters:
* Revert whitespace changes in r4101.
* See #1886.
* Antiprops netweb.
|
| [4101]
|
johnjamesjacoby
|
Converters:
* Classes are case sensitive when being loaded by the main converter.
* Fixes #1886.
* Props netweb.
|
| [4119]
|
johnjamesjacoby
|
Converters:
* Classes are case sensitive when being loaded by the main converter.
* Fixes #1886.
* For 2.1 branch.
* Props netweb.
|
| [6665]
|
johnjamesjacoby
|
Converter: use `esc_like()` to avoid debug notice when cleaning users.
This change runs the `_bbp_` `meta_key` prefix through `esc_like()`, ensuring that the subsequent `prepare()` call has a value passed into it.
Trunk, for 2.6.
|
| [6809]
|
johnjamesjacoby
|
Converter: update phpBB importer to use `user_form_salt`.
Props jrf. Fixes #3192.
|
| [6671]
|
johnjamesjacoby
|
Converter: softer verbiage on the importer buttons.
This changes "Stop" to "Pause" and "Continue" to "Resume". This more accurately represents the actions these buttons perform, while also inspiring a bit more confidence that the converter can be halted and resumed at anytime.
Trunk, for 2.6.
|
| [6820]
|
johnjamesjacoby
|
Converter: remove `safe_mode` check from `BBP_Converter::maybe_set_memory()`.
This was deprecated in PHP 5.3.0 and removed in 5.4.0. Instead, this change employs the following:
* Moves keys and values into a filterable array
* Looks for disabled functions and avoids them
* Adds error control operators as needed
|
| [7244]
|
johnjamesjacoby
|
Converter: remove `_bbp_class` key on successful authentication.
This change cleans up the usermeta key that is used to determine if the relative user has a password from a converted platform that still needs to be rehashed.
Cleaning this up fixes a bug that would cause recurrent conversions from some platforms.
In trunk, for 2.7.0.
Props sirlouen. Fixes #3419.
|
| [7243]
|
johnjamesjacoby
|
Converter: remove `_bbp_class` key on successful authentication.
This change cleans up the usermeta key that is used to determine if the relative user has a password from a converted platform that still needs to be rehashed.
Cleaning this up fixes a bug that would cause recurrent conversions from some platforms.
In branches/2.6, for 2.6.10.
Props sirlouen. Fixes #3419.
|
| [7256]
|
johnjamesjacoby
|
Converter: remove `__destruct()` registration
This change removes the need for `wpdb` extensions (like in the Converter) to register their own shutdown methods.
This is necessary because the `__destruct()` method was removed in the parent `wpdb` class, so attempting to add it in the subclass will generate PHP errors.
See #WP21402.
Fixes #3508.
Props GDragoN, dd32.
In branches/2.6, for 2.6.10.
|
| [6785]
|
johnjamesjacoby
|
Converter: remove `WP_SETUP_CONFIG` constant setting from converter process.
This introduces a helper database class to avoid directly connecting to the external database. Instead, we'll attempt to control that connection, and provide feedback to the user in the event a connection cannot be made. The `WP_SETUP_CONFIG` was causing calls to the options API to fail, resulting in broken calculations and invalid offsets.
This commit includes some general load order clean-up, which also fixes a regression causing fatal errors when attempting to upgrade converted user passwords from the old platform. It also fixes the condition where boundaries being converted would display beyond their maximums.
Fixes #3191.
|
| [6666]
|
johnjamesjacoby
|
Converter: reduce `meta_key` and `meta_value` length to `75`.
This change lowers the maximum allowed string length from `191` (which was used based on what's in WordPress core.) After further review, `75` is a reasonable maximum to try for now, though it could likely be tuned further if needed.
Trunk, for 2.6. Fixes #3145.
|
| [6681]
|
johnjamesjacoby
|
Converter: progress bars and percentages.
This change incorporates 2 horizontal bars in the importer header area. One indicates how far the current step has progressed, and the other indicates total progress. Pretty sweet.
Trunk, for 2.6.
|
| [6670]
|
johnjamesjacoby
|
Converter: more OOP, specifically for the BBCode parser.
This change introduces a `bbcode_parser_properties` array to the base converter, allowing custom BBCode parser properties to be passed into the parent method via the child, minimizing the amount of code in each individual forum converter.
Trunk, for 2.6.
|
| [6832]
|
johnjamesjacoby
|
Converter: make a few `private` properties `protected` so subclasses can reach them.
This change fixes a bug causing the e107v1 converter to fail.
Props wpdennis. Fixes #3207.
|
| [7245]
|
johnjamesjacoby
|
Converter: improvements to `bbp_user_maybe_convert_pass()`:
* Unslash 'log' posted value
* Trim 'pwd' posted value
* Bail early if either are empty
* Use `get_user_by()` and `get_user_meta()` instead of direct MySQL query
* Bail if user/meta are not found
* Bail if converter not string or not found
This change ensures that users who sign in via either their username or email are converted. Before this change, signing in via email would not trigger a conversion.
In trunk, for 2.7.0.
See #3419.
|
| [7246]
|
johnjamesjacoby
|
Converter: improvements to `bbp_user_maybe_convert_pass()`:
* Unslash 'log' posted value
* Trim 'pwd' posted value
* Bail early if either are empty
* Use `get_user_by()` and `get_user_meta()` instead of direct MySQL query
* Bail if user/meta are not found
* Bail if converter not string or not found
This change ensures that users who sign in via either their username or email are converted. Before this change, signing in via email would not trigger a conversion.
In branches/2.6, for 2.6.10.
See #3419.
|
| [6663]
|
johnjamesjacoby
|
Converter: ensure UI state variables are correctly localized.
This change combines the new UI state variables into an array, so they retain their type-casting through the localization API. It also inverts the logic in 1 comparison to make sure the correct user feedback is displayed in its intended location.
Trunk, for 2.6. Props jrf. Fixes #3146.
|
| [6661]
|
johnjamesjacoby
|
Converter: bind number-of-rows attribute to between 1 and 5000.
This change adds validation to ensure no unexpected number of database rows are queried.
Trunk, for 2.6. Props jrf. See #3148.
|
| [6662]
|
johnjamesjacoby
|
Converter: bind number-of-rows attribute to between 1 and 5000.
This change adds validation to ensure no unexpected number of database rows are queried, and also back-ports sanitization to database connection values from trunk.
2.5 branch, for 2.5.14. Props jrf. Fixes #3148.
|
| [6763]
|
johnjamesjacoby
|
Converter: add inline documentation for `wp_insert_user()`.
This change adds an inline reminder about what `wp_insert_user()` does internally, so our future selves know at a glance why else a user might be skipped.
|
| [6788]
|
johnjamesjacoby
|
Converter: add filter to `bbp_new_converter()`.
This change makes it possible to include a custom converter class for the platform being converted from, especially useful if you've changed password storage schemas or want to handle data migration in a way that is specific to your needs.
See #3191.
|
| [6490]
|
johnjamesjacoby
|
Converter: Use the port number in the server address if available.
Fixes #3022.
|
| [6633]
|
johnjamesjacoby
|
Converter: Use error control operator on `Internal_UpdateParamsForMissingEndTag()`
Avoids polluting the php error logs if position is not byref.
|
| [6639]
|
johnjamesjacoby
|
Converter: Use `false` as the default value for some options.
This ensures that `default_option_` values are still overloadable when converting.
|
| [6678]
|
johnjamesjacoby
|
Converter: Update the options labels and descriptions.
This change should bring increased clarity to what the converter options are for.
Trunk, for 2.6.
|