wp-graphql / wp-graphql-acf

WPGraphQL for Advanced Custom Fields
https://wpgraphql.com/acf
627 stars 123 forks source link

fix: deprecation warning #389

Closed josephfusco closed 3 months ago

josephfusco commented 3 months ago

This PR includes cherry picked changes from develop that were missing from master in order to resolve https://github.com/wp-graphql/wp-graphql-acf/issues/382

jasonbahl commented 3 months ago

The Docker environment for automated tests is currently broken and we will not be fixing it in this repo as it will be archived in favor of the re-architected version of the WPGraphQL for ACF plugin: https://github.com/wp-graphql/wpgraphql-acf

To test this functionality I:

{
  post(id: 7229, idType: DATABASE_ID) {
    id
    databaseId
    uri
    acfDeprecationTest {
      imageFieldTest {
        sourceUrl
      }
      taxomomyFieldTest {
        name
        slug
      }
    }
  }
}

Data is returned as expected and the deprectated methods are no longer executed.