Changeset 2371654
- Timestamp:
- 08/29/2020 06:34:53 PM (5 years ago)
- Location:
- portfolio-post-type
- Files:
-
- 113 added
- 4 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/.git (added)
-
tags/1.0.1/.git/COMMIT_EDITMSG (added)
-
tags/1.0.1/.git/HEAD (added)
-
tags/1.0.1/.git/ORIG_HEAD (added)
-
tags/1.0.1/.git/config (added)
-
tags/1.0.1/.git/description (added)
-
tags/1.0.1/.git/hooks (added)
-
tags/1.0.1/.git/hooks/applypatch-msg.sample (added)
-
tags/1.0.1/.git/hooks/commit-msg.sample (added)
-
tags/1.0.1/.git/hooks/fsmonitor-watchman.sample (added)
-
tags/1.0.1/.git/hooks/post-update.sample (added)
-
tags/1.0.1/.git/hooks/pre-applypatch.sample (added)
-
tags/1.0.1/.git/hooks/pre-commit.sample (added)
-
tags/1.0.1/.git/hooks/pre-merge-commit.sample (added)
-
tags/1.0.1/.git/hooks/pre-push.sample (added)
-
tags/1.0.1/.git/hooks/pre-rebase.sample (added)
-
tags/1.0.1/.git/hooks/pre-receive.sample (added)
-
tags/1.0.1/.git/hooks/prepare-commit-msg.sample (added)
-
tags/1.0.1/.git/hooks/update.sample (added)
-
tags/1.0.1/.git/index (added)
-
tags/1.0.1/.git/info (added)
-
tags/1.0.1/.git/info/exclude (added)
-
tags/1.0.1/.git/logs (added)
-
tags/1.0.1/.git/logs/HEAD (added)
-
tags/1.0.1/.git/logs/refs (added)
-
tags/1.0.1/.git/logs/refs/heads (added)
-
tags/1.0.1/.git/logs/refs/heads/develop (added)
-
tags/1.0.1/.git/logs/refs/heads/master (added)
-
tags/1.0.1/.git/logs/refs/remotes (added)
-
tags/1.0.1/.git/logs/refs/remotes/origin (added)
-
tags/1.0.1/.git/logs/refs/remotes/origin/HEAD (added)
-
tags/1.0.1/.git/logs/refs/remotes/origin/develop (added)
-
tags/1.0.1/.git/logs/refs/remotes/origin/master (added)
-
tags/1.0.1/.git/objects (added)
-
tags/1.0.1/.git/objects/05 (added)
-
tags/1.0.1/.git/objects/05/63ad2b6391a6b36e658ad46360b4769869951a (added)
-
tags/1.0.1/.git/objects/12 (added)
-
tags/1.0.1/.git/objects/12/eafe6a1b62cf1fa415c328bf23cd37cfd1f8d0 (added)
-
tags/1.0.1/.git/objects/26 (added)
-
tags/1.0.1/.git/objects/26/05eb1bdfc4b79e6e737baacbe2c5621ec89cc4 (added)
-
tags/1.0.1/.git/objects/2d (added)
-
tags/1.0.1/.git/objects/2d/155df167162a5c1c587939d250774887ff29ff (added)
-
tags/1.0.1/.git/objects/36 (added)
-
tags/1.0.1/.git/objects/36/88cfc44ff83c29ca70a6adfff05ca1c57a8663 (added)
-
tags/1.0.1/.git/objects/48 (added)
-
tags/1.0.1/.git/objects/48/f5fff6e2a3e5b1957e8558b1b7d80ef4e417f1 (added)
-
tags/1.0.1/.git/objects/4f (added)
-
tags/1.0.1/.git/objects/4f/641871a35a8dac9a7efdc7b77c58d7b549514c (added)
-
tags/1.0.1/.git/objects/51 (added)
-
tags/1.0.1/.git/objects/51/f042f04455d877696f8b988b3931e5bd3093e1 (added)
-
tags/1.0.1/.git/objects/5a (added)
-
tags/1.0.1/.git/objects/5a/2609ba203985bffcfa46c897bfc206957156fe (added)
-
tags/1.0.1/.git/objects/74 (added)
-
tags/1.0.1/.git/objects/74/2753e17bbb0ce75add8020863c52b2d4c755bf (added)
-
tags/1.0.1/.git/objects/77 (added)
-
tags/1.0.1/.git/objects/77/f87ae9cd3d96271e2ea66bd99ec32fdfac0f45 (added)
-
tags/1.0.1/.git/objects/96 (added)
-
tags/1.0.1/.git/objects/96/5edab48734b109db17dc074f159947b74e0f08 (added)
-
tags/1.0.1/.git/objects/b4 (added)
-
tags/1.0.1/.git/objects/b4/0182f304ed791dd40ff5f06412b648f5d6ea29 (added)
-
tags/1.0.1/.git/objects/b4/aec387ccd989f4d61c53cf784941e5204c7f9b (added)
-
tags/1.0.1/.git/objects/b6 (added)
-
tags/1.0.1/.git/objects/b6/52c7f7805d686f325d64548dd8a3576bcba907 (added)
-
tags/1.0.1/.git/objects/bb (added)
-
tags/1.0.1/.git/objects/bb/eafab20508571bd8b1810c9573cedcbb17cfc8 (added)
-
tags/1.0.1/.git/objects/d7 (added)
-
tags/1.0.1/.git/objects/d7/7f4bdf796e873319ec742ea9e3739a299fd356 (added)
-
tags/1.0.1/.git/objects/d7/b8f86fb6431aaf8d57e928e824ced3273f909a (added)
-
tags/1.0.1/.git/objects/df (added)
-
tags/1.0.1/.git/objects/df/d16c1adf1f053696cd7decdc99e9a3bcccb290 (added)
-
tags/1.0.1/.git/objects/e0 (added)
-
tags/1.0.1/.git/objects/e0/a33960454e06d37c100c6db6fca0bea0645c93 (added)
-
tags/1.0.1/.git/objects/e3 (added)
-
tags/1.0.1/.git/objects/e3/ef4a444cefd26826a6187602f182c39fc6294f (added)
-
tags/1.0.1/.git/objects/fa (added)
-
tags/1.0.1/.git/objects/fa/30fd64dfaf686777e8013b8b5f0264692912b9 (added)
-
tags/1.0.1/.git/objects/info (added)
-
tags/1.0.1/.git/objects/pack (added)
-
tags/1.0.1/.git/objects/pack/pack-d97491593bb985402908be7a47be3aba9f061754.idx (added)
-
tags/1.0.1/.git/objects/pack/pack-d97491593bb985402908be7a47be3aba9f061754.pack (added)
-
tags/1.0.1/.git/packed-refs (added)
-
tags/1.0.1/.git/refs (added)
-
tags/1.0.1/.git/refs/heads (added)
-
tags/1.0.1/.git/refs/heads/develop (added)
-
tags/1.0.1/.git/refs/heads/master (added)
-
tags/1.0.1/.git/refs/remotes (added)
-
tags/1.0.1/.git/refs/remotes/origin (added)
-
tags/1.0.1/.git/refs/remotes/origin/HEAD (added)
-
tags/1.0.1/.git/refs/remotes/origin/develop (added)
-
tags/1.0.1/.git/refs/remotes/origin/master (added)
-
tags/1.0.1/.git/refs/tags (added)
-
tags/1.0.1/.gitignore (added)
-
tags/1.0.1/includes (added)
-
tags/1.0.1/includes/class-gamajo-dashboard-glancer.php (added)
-
tags/1.0.1/includes/class-gamajo-post-type.php (added)
-
tags/1.0.1/includes/class-gamajo-single-entry-term-body-classes.php (added)
-
tags/1.0.1/includes/class-gamajo-taxonomy.php (added)
-
tags/1.0.1/includes/class-portfolio-post-type-admin.php (added)
-
tags/1.0.1/includes/class-portfolio-post-type-post-type.php (added)
-
tags/1.0.1/includes/class-portfolio-post-type-registrations.php (added)
-
tags/1.0.1/includes/class-portfolio-post-type-taxonomy-category.php (added)
-
tags/1.0.1/includes/class-portfolio-post-type-taxonomy-tag.php (added)
-
tags/1.0.1/includes/class-portfolio-post-type.php (added)
-
tags/1.0.1/includes/interface-gamajo-registerable.php (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/portfolio-post-type-pt_PT.mo (added)
-
tags/1.0.1/languages/portfolio-post-type-pt_PT.po (added)
-
tags/1.0.1/languages/portfolio-post-type-sv_SE.mo (added)
-
tags/1.0.1/languages/portfolio-post-type-sv_SE.po (added)
-
tags/1.0.1/languages/portfolio-post-type.pot (added)
-
tags/1.0.1/portfolio-post-type.php (added)
-
tags/1.0.1/readme.txt (added)
-
trunk/includes/class-gamajo-dashboard-glancer.php (modified) (1 diff)
-
trunk/includes/class-portfolio-post-type-admin.php (modified) (3 diffs)
-
trunk/portfolio-post-type.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
portfolio-post-type/trunk/includes/class-gamajo-dashboard-glancer.php
r1988321 r2371654 83 83 * @return array Filtered "At a Glance" items. 84 84 */ 85 public function show( array$items ) {85 public function show( $items ) { 86 86 foreach ( $this->items as $item ) { 87 87 $item_markup = $this->get_single_item( $item ); -
portfolio-post-type/trunk/includes/class-portfolio-post-type-admin.php
r1988321 r2371654 49 49 50 50 // Show post counts in the dashboard 51 add_action( 'right_now_content_table_end', array( $this, 'add_rightnow_counts' ) );52 51 add_filter( 'dashboard_glance_items', array( $this, 'add_glance_counts' ), 10, 1 ); 52 53 // Adds portfolio icon to the dashboard "At a Glance" 54 add_action( 'admin_head', array( $this, 'add_glance_icon' ) ); 53 55 } 54 56 … … 168 170 * @since Unknown 169 171 */ 170 public function add_glance_counts( array$items ) {172 public function add_glance_counts( $items ) { 171 173 $glancer = new Gamajo_Dashboard_Glancer; 172 174 $glancer->add( $this->registration_handler->post_type, array( 'publish', 'pending' ) ); … … 174 176 return $items; 175 177 } 176 177 /** 178 * Add counts to "Right Now" dashboard widget in WP 3.7-. 179 * 180 * @since Unknown 181 */ 182 public function add_rightnow_counts() { 183 $glancer = new Gamajo_Dashboard_RightNow; 184 $glancer->add( $this->registration_handler->post_type, array( 'publish', 'pending' ) ); 178 179 /** 180 * Displays the portfolio icon in the glance view in the dashboard. 181 */ 182 public function add_glance_icon() { 183 // Styling only needed on dashboard page. 184 $screen = get_current_screen(); 185 if ( ! is_object( $screen ) || $screen->id !== 'dashboard' ) { 186 return; 187 } 188 ?> 189 <style> 190 #dashboard_right_now .portfolio-count:before { 191 content: "\f322"; 192 } 193 </style> 194 <?php 185 195 } 186 196 -
portfolio-post-type/trunk/portfolio-post-type.php
r1988321 r2371654 13 13 * Plugin URI: https://wptheming.com/portfolio-post-type/ 14 14 * Description: Enables a portfolio post type and taxonomies. 15 * Version: 1.0. 015 * Version: 1.0.1 16 16 * Author: Devin Price 17 17 * Author URI: https://www.wptheming.com/ -
portfolio-post-type/trunk/readme.txt
r1988321 r2371654 2 2 Contributors: downstairsdev, GaryJ 3 3 Tags: portfolio, post type 4 Requires at least: 3. 75 Tested up to: 5. 0.06 Stable tag: 1.0. 04 Requires at least: 3.8 5 Tested up to: 5.5 6 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 … … 32 32 33 33 == Changelog == 34 35 = 1.0.1 = 36 37 * Update: Show portfolio icon in dashboard glance. Removed by mistake in v1.0.0, props @chesio for bug report. 38 * Update: Fix for PHP 7.4.9 notices 34 39 35 40 = 1.0.0 =
Note: See TracChangeset
for help on using the changeset viewer.