fill="#C8C8C8" cx="15" cy="36.1" rx="5.7" ry="5.6"/> SVG; } /** * Gets the plugin name from file. * * @deprecated 15.5 * @codeCoverageIgnore * * @since 2.3.3 * * @param string $plugin Plugin path relative to plugins directory. * * @return string|bool */ public static function get_plugin_name( $plugin ) { _deprecated_function( __METHOD__, 'WPSEO 15.5' ); $plugin_details = get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin ); if ( $plugin_details['Name'] !== '' ) { return $plugin_details['Name']; } return false; } /** * Returns a base64 URL for the svg for use in the menu. * * @deprecated 15.5 * @codeCoverageIgnore * * @since 3.3.0 * * @param bool $base64 Whether or not to return base64'd output. * * @return string */ public static function get_icon_svg( $base64 = true ) { _deprecated_function( __METHOD__, 'WPSEO 15.5' ); $svg = ''; if ( $base64 ) { //phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode -- This encoding is intended. return 'data:image/svg+xml;base64,' . base64_encode( $svg ); } return $svg; } /** * Checks whether the current user is allowed to access the configuration. * * @deprecated 15.5 * @codeCoverageIgnore * * @since 1.8.0 * * @return boolean */ public static function grant_access() { _deprecated_function( __METHOD__, 'WPSEO 15.5' ); if ( ! is_multisite() ) { return true; } $options = get_site_option( 'wpseo_ms' ); if ( empty( $options['access'] ) || $options['access'] === 'admin' ) { return current_user_can( 'wpseo_manage_options' ); } return is_super_admin(); } }