INN / doubleclick-for-wp

WordPress plugin for serving Google Ad Manager ads
https://wordpress.org/plugins/doubleclick-for-wp/
GNU General Public License v2.0
25 stars 11 forks source link

various targeting fixes #61

Closed dbeniaminov closed 5 years ago

dbeniaminov commented 6 years ago
dbeniaminov commented 6 years ago

dfw-init.php.zip

benlk commented 6 years ago

Can you file this as a pull request, please?

benlk commented 5 years ago

I'm opening a PR with some of this code, adding you as a co-author, but here's some notes on the changes your file would make:

Changing is_single to is_singular is good. 👍

Changing is_home to is_front_page is good; we're working to add better support for static homepages across our products. 👍

I could find no evidence of changed conditionals for tags. ❓

Category tagging was removed on static front pages. 👍

fixed $this::enqueued syntax

I'm not sure what this means; the only change in the code was this:

$ git diff | grep enqueued
-       if ( ! $this::$enqueued ) {
+       if(!$this::$enqueued) {
            $this::$enqueued = true;

And that seems to have been part of a general whole-file replacement of the WordPress code standards with a different PHP style, including:

I'm not commiting those changes, but it's okay, you didn't know that our house style is WordPress's coding standards. This repo did not have contribution guidelines when you opened this issue, so you wouldn't've been able to know without some deep research on our team. I'll add contribution guidelines soon.

benlk commented 5 years ago

Sorry for the notification spam; it took three tries to get GitHub's Co-authored-by: syntax correct so that you'd get the credit on that commit. https://help.github.com/articles/creating-a-commit-with-multiple-authors/