PageRenderTime 17ms CodeModel.GetById 12ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/plugins/wordpress-seo/inc/wpseo-functions-deprecated.php

https://bitbucket.org/carloskikea/helpet
PHP | 30 lines | 9 code | 4 blank | 17 comment | 0 complexity | 889259fb72cf846e7e9fda0317511fc9 MD5 | raw file
 1<?php
 2/**
 3 * WPSEO plugin file.
 4 *
 5 * @package WPSEO\Deprecated
 6 */
 7
 8/**
 9 * Remove the bulk edit capability from the proper default roles.
10 *
11 * Contributor is still removed for legacy reasons.
12 *
13 * @deprecated 5.5
14 */
15function wpseo_remove_capabilities() {
16	_deprecated_function( __FUNCTION__, 'WPSEO 5.5.0', 'WPSEO_Capability_Manager_Factory::get()->remove()' );
17
18	WPSEO_Capability_Manager_Factory::get()->remove();
19}
20
21/**
22 * Add the bulk edit capability to the proper default roles.
23 *
24 * @deprecated 5.5.0
25 */
26function wpseo_add_capabilities() {
27	_deprecated_function( __FUNCTION__, 'WPSEO 5.5.0', 'WPSEO_Capability_Manager_Factory::get()->add()' );
28
29	WPSEO_Capability_Manager_Factory::get()->add();
30}