Title: [PATCH] Only variables should be assigned by reference
Last modified: August 21, 2016

---

# [PATCH] Only variables should be assigned by reference

 *  Resolved [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/patch-only-variables-should-be-assigned-by-reference/)
 * PHP 5.4.10 on WP 3.6. Getting the warning
 * > Strict standards: Only variables should be assigned by reference in /path/to/
   > wp-content/plugins/wp-geo/includes/templates.php on line 101
 * In method _get\_wpgeo\_title()_ simply change
 *     ```
       $p = &get_post( $post_id );
       ```
   
 * to
 *     ```
       $p = get_post( $post_id );
       ```
   
 * [http://wordpress.org/plugins/wp-geo/](http://wordpress.org/plugins/wp-geo/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ben Huson](https://wordpress.org/support/users/husobj/)
 * (@husobj)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/patch-only-variables-should-be-assigned-by-reference/#post-4066235)
 * This will be fixed in the next version.

Viewing 1 replies (of 1 total)

The topic ‘[PATCH] Only variables should be assigned by reference’ is closed to 
new replies.

 * ![](https://ps.w.org/wp-geo/assets/icon-256x256.png?rev=993625)
 * [WP Geo](https://wordpress.org/plugins/wp-geo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-geo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-geo/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-geo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-geo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-geo/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ben Huson](https://wordpress.org/support/users/husobj/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/patch-only-variables-should-be-assigned-by-reference/#post-4066235)
 * Status: resolved