The Wordpress 4.9.1. has just been released. I have tried to enable the customize tag e.g. script in my post, and it throws the following warning: ``` Warning: in_array() expects parameter 2 to be array, null given in wp-includes/kses.php on line 1416 ``` Screenshot: ![wordpress-bug.jpg](https://res.cloudinary.com/hpiynhbhq/image/upload/v1512076729/gcvsltd96iqef9xk8vca.jpg) # The steps to reproduce: 1. add `define('CUSTOM_TAGS', true);` in `wp_config.php` under your wordpress root directory. 2. add the following to `functions.php` template ``` function add_scriptfilter( $string ) { global $allowedtags; $allowedtags['script'] = array( 'src' => array () ); return $string; } add_filter( 'pre_kses', 'add_scriptfilter' ); ``` and then the warning will be thrown on all pages/posts. <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@justyy/wordpress-4-9-1-bug-of-customtags-throws-warning">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
post_id | 19,152,948 | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
author | justyy | ||||||||||||||||||||||||||||||||||||||||||||||||
permlink | wordpress-4-9-1-bug-of-customtags-throws-warning | ||||||||||||||||||||||||||||||||||||||||||||||||
category | utopian-io | ||||||||||||||||||||||||||||||||||||||||||||||||
json_metadata | "{"type": "bug-hunting", "repository": {"id": 2889328, "watchers": 10166, "events_url": "https://api.github.com/repos/WordPress/WordPress/events", "forks": 5862, "name": "WordPress", "issues_url": "https://api.github.com/repos/WordPress/WordPress/issues{/number}", "trees_url": "https://api.github.com/repos/WordPress/WordPress/git/trees{/sha}", "fork": false, "git_url": "git://github.com/WordPress/WordPress.git", "assignees_url": "https://api.github.com/repos/WordPress/WordPress/assignees{/user}", "size": 179321, "owner": {"id": 276006, "following_url": "https://api.github.com/users/WordPress/following{/other_user}", "starred_url": "https://api.github.com/users/WordPress/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/WordPress/subscriptions", "repos_url": "https://api.github.com/users/WordPress/repos", "login": "WordPress", "gists_url": "https://api.github.com/users/WordPress/gists{/gist_id}", "followers_url": "https://api.github.com/users/WordPress/followers", "received_events_url": "https://api.github.com/users/WordPress/received_events", "type": "Organization", "avatar_url": "https://avatars0.githubusercontent.com/u/276006?v=4", "site_admin": false, "organizations_url": "https://api.github.com/users/WordPress/orgs", "gravatar_id": "", "events_url": "https://api.github.com/users/WordPress/events{/privacy}", "url": "https://api.github.com/users/WordPress", "html_url": "https://github.com/WordPress"}, "forks_count": 5862, "git_refs_url": "https://api.github.com/repos/WordPress/WordPress/git/refs{/sha}", "blobs_url": "https://api.github.com/repos/WordPress/WordPress/git/blobs{/sha}", "pushed_at": "2017-11-30T16:24:11Z", "watchers_count": 10166, "teams_url": "https://api.github.com/repos/WordPress/WordPress/teams", "comments_url": "https://api.github.com/repos/WordPress/WordPress/comments{/number}", "archived": false, "svn_url": "https://github.com/WordPress/WordPress", "merges_url": "https://api.github.com/repos/WordPress/WordPress/merges", "subscribers_url": "https://api.github.com/repos/WordPress/WordPress/subscribers", "issue_events_url": "https://api.github.com/repos/WordPress/WordPress/issues/events{/number}", "stargazers_url": "https://api.github.com/repos/WordPress/WordPress/stargazers", "mirror_url": null, "statuses_url": "https://api.github.com/repos/WordPress/WordPress/statuses/{sha}", "has_projects": true, "milestones_url": "https://api.github.com/repos/WordPress/WordPress/milestones{/number}", "description": "WordPress, Git-ified. Synced via SVN every 15 minutes, including branches and tags! This repository is just a mirror of the WordPress subversion repository. Please do not send pull requests. Submit patches to https://core.trac.wordpress.org/ instead.", "keys_url": "https://api.github.com/repos/WordPress/WordPress/keys{/key_id}", "open_issues": 5, "compare_url": "https://api.github.com/repos/WordPress/WordPress/compare/{base}...{head}", "ssh_url": "git@github.com:WordPress/WordPress.git", "license": {"name": "Other", "key": "other", "url": null, "spdx_id": null}, "html_url": "https://github.com/WordPress/WordPress", "commits_url": "https://api.github.com/repos/WordPress/WordPress/commits{/sha}", "open_issues_count": 5, "stargazers_count": 10166, "branches_url": "https://api.github.com/repos/WordPress/WordPress/branches{/branch}", "full_name": "WordPress/WordPress", "forks_url": "https://api.github.com/repos/WordPress/WordPress/forks", "score": 106.589325, "deployments_url": "https://api.github.com/repos/WordPress/WordPress/deployments", "contributors_url": "https://api.github.com/repos/WordPress/WordPress/contributors", "homepage": "https://wordpress.org/", "contents_url": "https://api.github.com/repos/WordPress/WordPress/contents/{+path}", "has_downloads": true, "collaborators_url": "https://api.github.com/repos/WordPress/WordPress/collaborators{/collaborator}", "created_at": "2011-12-01T07:05:17Z", "git_commits_url": "https://api.github.com/repos/WordPress/WordPress/git/commits{/sha}", "releases_url": "https://api.github.com/repos/WordPress/WordPress/releases{/id}", "private": false, "pulls_url": "https://api.github.com/repos/WordPress/WordPress/pulls{/number}", "git_tags_url": "https://api.github.com/repos/WordPress/WordPress/git/tags{/sha}", "notifications_url": "https://api.github.com/repos/WordPress/WordPress/notifications{?since,all,participating}", "language": "PHP", "updated_at": "2017-11-30T20:40:44Z", "has_wiki": false, "downloads_url": "https://api.github.com/repos/WordPress/WordPress/downloads", "hooks_url": "https://api.github.com/repos/WordPress/WordPress/hooks", "languages_url": "https://api.github.com/repos/WordPress/WordPress/languages", "default_branch": "master", "labels_url": "https://api.github.com/repos/WordPress/WordPress/labels{/name}", "url": "https://api.github.com/repos/WordPress/WordPress", "has_pages": false, "tags_url": "https://api.github.com/repos/WordPress/WordPress/tags", "clone_url": "https://github.com/WordPress/WordPress.git", "archive_url": "https://api.github.com/repos/WordPress/WordPress/{archive_format}{/ref}", "has_issues": false, "issue_comment_url": "https://api.github.com/repos/WordPress/WordPress/issues/comments{/number}", "subscription_url": "https://api.github.com/repos/WordPress/WordPress/subscription"}, "pullRequests": [], "format": "markdown", "image": ["https://res.cloudinary.com/hpiynhbhq/image/upload/v1512076729/gcvsltd96iqef9xk8vca.jpg"], "links": ["https://res.cloudinary.com/hpiynhbhq/image/upload/v1512076729/gcvsltd96iqef9xk8vca.jpg"], "app": "utopian/1.0.0", "platform": "github", "tags": ["utopian-io", "wordpress", "kses", "warning"], "community": "utopian"}" | ||||||||||||||||||||||||||||||||||||||||||||||||
created | 2017-11-30 21:21:18 | ||||||||||||||||||||||||||||||||||||||||||||||||
last_update | 2017-11-30 21:21:18 | ||||||||||||||||||||||||||||||||||||||||||||||||
depth | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
children | 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
net_rshares | 8,790,741,359,282 | ||||||||||||||||||||||||||||||||||||||||||||||||
last_payout | 2017-12-07 21:21:18 | ||||||||||||||||||||||||||||||||||||||||||||||||
cashout_time | 1969-12-31 23:59:59 | ||||||||||||||||||||||||||||||||||||||||||||||||
total_payout_value | 17.068 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
curator_payout_value | 6.072 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
pending_payout_value | 0.000 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
promoted | 0.000 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
body_length | 988 | ||||||||||||||||||||||||||||||||||||||||||||||||
author_reputation | 2,057,469,156,047,835 | ||||||||||||||||||||||||||||||||||||||||||||||||
root_title | "Wordpress 4.9.1 Bug of CUSTOM_TAGS throws Warning" | ||||||||||||||||||||||||||||||||||||||||||||||||
beneficiaries |
| ||||||||||||||||||||||||||||||||||||||||||||||||
max_accepted_payout | 1,000,000.000 SBD | ||||||||||||||||||||||||||||||||||||||||||||||||
percent_steem_dollars | 0 | ||||||||||||||||||||||||||||||||||||||||||||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
fundurian | 0 | 34,215,528,497 | 30% | ||
arcange | 0 | 26,331,866,065 | 6% | ||
raphaelle | 0 | 3,778,405,306 | 6% | ||
joythewanderer | 0 | 103,337,120,718 | 20% | ||
ace108 | 0 | 253,118,778,106 | 17% | ||
tensaix2j | 0 | 2,921,466,912 | 100% | ||
archiles | 0 | 115,183,954 | 100% | ||
ericsim1991 | 0 | 111,758,841 | 100% | ||
ericsim1989 | 0 | 110,999,497 | 100% | ||
justyy | 0 | 453,817,294,012 | 100% | ||
luneknight | 0 | 965,616,762 | 100% | ||
happyukgo | 0 | 986,903,456 | 100% | ||
bring | 0 | 8,258,857,666 | 100% | ||
coldhair | 0 | 19,007,411,762 | 7% | ||
hammadakhtar | 0 | 264,154,247 | 10% | ||
htliao | 0 | 74,412,489,947 | 23% | ||
sv67216721 | 0 | 1,992,909,168 | 5% | ||
frankintaiwan | 0 | 82,151,670 | 20% | ||
nanosesame | 0 | 2,754,348,676 | 6.9% | ||
shenchensucc | 0 | 7,185,630,889 | 100% | ||
susanli3769 | 0 | 18,801,751,557 | 100% | ||
incrediblesnow | 0 | 18,304,440,632 | 100% | ||
davidmendel | 0 | 684,416,873 | 100% | ||
hannahwu | 0 | 7,381,258,204 | 23% | ||
oldman28 | 0 | 16,157,058,917 | 52% | ||
kangnajiang | 0 | 1,423,864,630 | 100% | ||
jessicameng | 0 | 1,364,037,491 | 23% | ||
herlife | 0 | 1,791,240,508 | 23% | ||
geass | 0 | 1,174,205,868 | 100% | ||
moonvoid | 0 | 609,025,566 | 100% | ||
icedream | 0 | 2,392,117,608 | 23% | ||
ericsim | 0 | 281,881,600 | 100% | ||
ytienchu | 0 | 420,627,481 | 23% | ||
xuran | 0 | 6,091,154,312 | 100% | ||
awiwea1974 | 0 | 1,239,765,345 | 100% | ||
superbing | 0 | 6,060,954,636 | 100% | ||
dailyfortune | 0 | 4,543,118,622 | 100% | ||
xiaoshancun | 0 | 541,428,096 | 100% | ||
dailystats | 0 | 4,879,245,361 | 100% | ||
wangwenjing | 0 | 1,938,586,625 | 30% | ||
ayman101 | 0 | 595,132,402 | 100% | ||
vandadream | 0 | 3,454,443,182 | 100% | ||
ivysrono | 0 | 447,087,925 | 1% | ||
utopian-io | 0 | 7,666,974,003,221 | 5% | ||
nada101 | 0 | 633,209,126 | 100% | ||
nileelily | 0 | 2,105,269,729 | 100% | ||
stabilowl | 0 | 18,202,348,339 | 49% | ||
douf | 0 | 1,154,743,877 | 100% | ||
weisheng167388 | 0 | 7,326,065,398 | 100% | ||
ldsn001 | 0 | 0 | 50% |
Thank you for the contribution. It has been approved. You can contact us on [Discord](https://discord.gg/UCvqCsx). **[[utopian-moderator]](https://utopian.io/moderators)**
post_id | 19,307,121 |
---|---|
author | espoem |
permlink | re-justyy-wordpress-4-9-1-bug-of-customtags-throws-warning-20171202t183747683z |
category | utopian-io |
json_metadata | "{"app": "busy/1.0.0", "community": "busy", "tags": ["utopian-io"]}" |
created | 2017-12-02 18:37:48 |
last_update | 2017-12-02 18:37:48 |
depth | 1 |
children | 1 |
net_rshares | 0 |
last_payout | 2017-12-09 18:37:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 172 |
author_reputation | 59,186,440,518,630 |
root_title | "Wordpress 4.9.1 Bug of CUSTOM_TAGS throws Warning" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
Thank you!
post_id | 19,307,549 |
---|---|
author | justyy |
permlink | re-espoem-re-justyy-wordpress-4-9-1-bug-of-customtags-throws-warning-20171202t184436727z |
category | utopian-io |
json_metadata | "{"app": "steemit/0.1", "tags": ["utopian-io"]}" |
created | 2017-12-02 18:44:36 |
last_update | 2017-12-02 18:44:36 |
depth | 2 |
children | 0 |
net_rshares | 0 |
last_payout | 2017-12-09 18:44:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 10 |
author_reputation | 2,057,469,156,047,835 |
root_title | "Wordpress 4.9.1 Bug of CUSTOM_TAGS throws Warning" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |
### Hey @justyy I am @utopian-io. I have just upvoted you! #### Achievements - Seems like you contribute quite often. AMAZING! #### Suggestions - Contribute more often to get higher and higher rewards. I wish to see you often! - Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck! #### Get Noticed! - Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions! #### Community-Driven Witness! I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER! - <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a> - <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a> - Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a> [![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses) **Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
post_id | 19,333,403 |
---|---|
author | utopian-io |
permlink | re-justyy-wordpress-4-9-1-bug-of-customtags-throws-warning-20171203t035606428z |
category | utopian-io |
json_metadata | "{"app": "utopian/1.0.0", "community": "utopian", "tags": ["utopian-io"]}" |
created | 2017-12-03 03:56:06 |
last_update | 2017-12-03 03:56:06 |
depth | 1 |
children | 0 |
net_rshares | 0 |
last_payout | 2017-12-10 03:56:06 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 SBD |
curator_payout_value | 0.000 SBD |
pending_payout_value | 0.000 SBD |
promoted | 0.000 SBD |
body_length | 1,426 |
author_reputation | 152,913,012,544,965 |
root_title | "Wordpress 4.9.1 Bug of CUSTOM_TAGS throws Warning" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 SBD |
percent_steem_dollars | 10,000 |