Thanks for taking the time to contribute! This repository mirrors the plugin distributed on WordPress.org.
Open an issue with:
- WordPress version, PHP version, and the plugin version (
Version:header inerdo-draft-links.php) - Steps to reproduce
- What you expected vs. what happened
- Any relevant errors from the browser console or
debug.log
Open a feature request issue describing the problem you're trying to solve (not just the solution) — it helps evaluate whether it fits the plugin's scope.
- Fork the repo and create a branch from
master - Keep the change focused — one bug fix or one feature per PR
- Match the existing code style (see below) and the patterns already used in the file you're editing
- Update
readme.txt(WordPress.org changelog) if the change is user-facing - Open the PR against
masterwith a clear description of what changed and why
This is a dependency-free PHP codebase (no Composer) with a small @wordpress/scripts build for the Block Editor sidebar and Classic Editor JS.
- PHP: follow WordPress Coding Standards. New classes go in
includes/asErdo_Draft_Links_Foo_Bar→includes/class-erdo-draft-links-foo-bar.php(autoloaded by naming convention). - Security: any new endpoint must follow the patterns already in use —
hash_equals()for token comparisons,check_admin_referer()/capability checks (current_user_can( 'edit_post', $post_id )),$wpdb->prepare()for all raw queries, andsanitize_text_field( wp_unslash( ... ) )(or a more specific sanitizer) on all superglobal access. - Hooks: register actions/filters inside a class's
register()method against the sharedErdo_Draft_Links_Loader, not with a top-leveladd_action()call. - JS/CSS:
assets/js/src/(Block Editor sidebar + Classic Editor) is built vianpm install && npm run build, which regeneratesassets/js/build/*.jsand the matching*.asset.php— editingsrc/alone does not change plugin behavior, always run the build before committing.assets/js/admin-list.jsandassets/js/frontend.jsare plain, unbuilt JS edited directly.
Please do not open a public issue for a security vulnerability. Instead, contact the author directly through erdincbulat.com.