/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. * Remove the bulk edit capability from the proper default roles.
  9. *
  10. * Contributor is still removed for legacy reasons.
  11. *
  12. * @deprecated 5.5
  13. */
  14. function wpseo_remove_capabilities() {
  15. _deprecated_function( __FUNCTION__, 'WPSEO 5.5.0', 'WPSEO_Capability_Manager_Factory::get()->remove()' );
  16. WPSEO_Capability_Manager_Factory::get()->remove();
  17. }
  18. /**
  19. * Add the bulk edit capability to the proper default roles.
  20. *
  21. * @deprecated 5.5.0
  22. */
  23. function wpseo_add_capabilities() {
  24. _deprecated_function( __FUNCTION__, 'WPSEO 5.5.0', 'WPSEO_Capability_Manager_Factory::get()->add()' );
  25. WPSEO_Capability_Manager_Factory::get()->add();
  26. }