Prepare for WPVIP: wrap restricted functions

Open
#7,699 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
backend

Research direction

Start by locating usages of url_to_postid, wp_remote_get, and file_get_contents in the repository and read the surrounding callers. Check how the wpvip_com_ alternatives are expected to correspond to those functions. Done means the restricted calls are wrapped with comparable prefixed alternatives wherever this issue requires.

Written by the indexing model from the issue text.

Description

featurerequest patch welcome VIP-compliance

On WordPress VIP some functions are restricted, there are prefixed alternatives which can be used and should provide comparable functionality.

The alternative functions are prefixed with: wpvip_com_.

Functions to wrap:

  • url_to_postid
  • wp_remote_get
  • file_get_contents
Dominant language
JavaScript
Stars
2k
Forks
975
Avg merge
3d 13h
Merged PRs (30d)
36

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Yoast/wordpress-seo

All issues in Yoast/wordpress-seo

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.