Changeset 1766485
- Timestamp:
- 11/14/2017 10:07:39 PM (8 years ago)
- Location:
- exposify/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
exposify.php (modified) (1 diff)
-
public.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
exposify/trunk/README.txt
r1755493 r1766485 4 4 Requires at least: 4.5.0 5 5 Tested up to: 4.6.1 6 Stable tag: 1. 66 Stable tag: 1.7 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 50 = 1.7 = 51 * Use property description as meta tag if YOAST is installed 50 52 = 1.6 = 51 53 * Update plugin to insert page titles correctly -
exposify/trunk/exposify.php
r1755493 r1766485 5 5 Plugin URI: https://exposify.de 6 6 Description: Zeigt alle eigenen Immobilienangebote von Exposify. 7 Version: 1. 67 Version: 1.7 8 8 Author: Exposify 9 9 Author URI: https://exposify.de -
exposify/trunk/public.php
r1755493 r1766485 26 26 add_filter('the_title', [$this, 'changePageTitle'], 10, 2); 27 27 add_filter('pre_get_document_title', [$this, 'changeSiteTitle']); 28 // this is a YOAST frontend filter, it will only be applied if YOAST is installed 29 add_filter('wpseo_metadesc', [$this, 'changeMetaDescription']); 28 30 } 29 31 … … 126 128 127 129 /** 130 * Change the meta description of the site if YOAST is installed. 131 * 132 * @param string $oldDescription 133 * @return string|bool 134 */ 135 public function changeMetaDescription($oldDescription) 136 { 137 if ($description = $this->exposify->html->getDescription()) { 138 return $description; 139 } 140 141 return false; 142 } 143 144 /** 128 145 * Insert all external CSS and JS files in the page. 129 146 *
Note: See TracChangeset
for help on using the changeset viewer.